From c9e2aa4d7f9904046127c3f356a393b2532b887e Mon Sep 17 00:00:00 2001 From: Takayuki Maeda Date: Tue, 5 Jul 2022 18:28:36 +0900 Subject: [PATCH] refactor: remove a redundant mutable variable --- compiler/rustc_trait_selection/src/traits/fulfill.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/compiler/rustc_trait_selection/src/traits/fulfill.rs b/compiler/rustc_trait_selection/src/traits/fulfill.rs index d61166437d75..6663ff6bbe91 100644 --- a/compiler/rustc_trait_selection/src/traits/fulfill.rs +++ b/compiler/rustc_trait_selection/src/traits/fulfill.rs @@ -131,8 +131,6 @@ fn select(&mut self, selcx: &mut SelectionContext<'a, 'tcx>) -> Vec = self.predicates.process_obligations(&mut FulfillProcessor { selcx, @@ -142,7 +140,8 @@ fn select(&mut self, selcx: &mut SelectionContext<'a, 'tcx>) -> Vec> = + outcome.errors.into_iter().map(to_fulfillment_error).collect(); debug!( "select({} predicates remaining, {} errors) done", @@ -728,7 +727,7 @@ fn process_projection_obligation( } return ProcessResult::Changed(vec![]); } else { - tracing::debug!("Does NOT hold: {:?}", obligation); + debug!("Does NOT hold: {:?}", obligation); } }