We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa746cb commit dc8f28fCopy full SHA for dc8f28f
compiler/rustc_type_ir/src/infer_ctxt.rs
@@ -319,11 +319,6 @@ where
319
// Note: `feature_bound_holds_in_crate` does not consider a feature to be enabled
320
// if we are in std/core even if there is a corresponding `feature` attribute on the crate.
321
322
- if (infcx.typing_mode() == TypingMode::PostAnalysis)
+ (infcx.typing_mode() == TypingMode::PostAnalysis)
323
|| infcx.cx().features().feature_bound_holds_in_crate(symbol)
324
- {
325
- return true;
326
- } else {
327
- return false;
328
- }
329
}
0 commit comments