diff --git a/src/librustc/ty/maps/plumbing.rs b/src/librustc/ty/maps/plumbing.rs index 5c0f97c5194f2..5c9f66bb4ec77 100644 --- a/src/librustc/ty/maps/plumbing.rs +++ b/src/librustc/ty/maps/plumbing.rs @@ -217,7 +217,7 @@ impl<'a, 'tcx, Q: QueryDescription<'tcx>> JobOwner<'a, 'tcx, Q> { // Extract the diagnostic from the job let diagnostics = mem::replace(&mut *self.job.diagnostics.lock(), Vec::new()); - Ok((r, diagnostics)) + (r, diagnostics) } }