Skip to content

Commit 02f780f

Browse files
committed
fmt
1 parent dcb9859 commit 02f780f

File tree

1 file changed

+6
-3
lines changed
  • compiler/rustc_trait_selection/src/traits

1 file changed

+6
-3
lines changed

compiler/rustc_trait_selection/src/traits/fulfill.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -777,12 +777,15 @@ impl<'a, 'tcx> ObligationProcessor for FulfillProcessor<'a, 'tcx> {
777777
}
778778
}
779779
// Check if feature is enabled at crate level with #[feature(..)] or if we are currently in codegen.
780-
if self.selcx.tcx().features().enabled(symbol) || (self.selcx.infcx.typing_mode() == TypingMode::PostAnalysis) {
780+
if self.selcx.tcx().features().enabled(symbol)
781+
|| (self.selcx.infcx.typing_mode() == TypingMode::PostAnalysis)
782+
{
781783
return ProcessResult::Changed(Default::default());
782784
} else {
783-
return ProcessResult::Error(FulfillmentErrorCode::Ambiguity { overflow: None });
785+
return ProcessResult::Error(FulfillmentErrorCode::Ambiguity {
786+
overflow: None,
787+
});
784788
}
785-
786789
}
787790
},
788791
}

0 commit comments

Comments
 (0)