File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ pub fn add_feature_diagnostics_for_issue<G: EmissionGuarantee>(
209209/// This is basically the same as `feature_err_issue`
210210/// but without the feature issue note. If we can do a lookup for issue number from feature name,
211211/// then we should directly use `feature_err_issue` for ambiguity error of
212- /// #[unstable_feature_bound].
212+ /// ` #[unstable_feature_bound]` .
213213#[ track_caller]
214214pub fn feature_err_unstable_feature_bound (
215215 sess : & Session ,
Original file line number Diff line number Diff line change @@ -319,11 +319,6 @@ where
319319 // Note: `feature_bound_holds_in_crate` does not consider a feature to be enabled
320320 // if we are in std/core even if there is a corresponding `feature` attribute on the crate.
321321
322- if ( infcx. typing_mode ( ) == TypingMode :: PostAnalysis )
322+ ( infcx. typing_mode ( ) == TypingMode :: PostAnalysis )
323323 || infcx. cx ( ) . features ( ) . feature_bound_holds_in_crate ( symbol)
324- {
325- return true ;
326- } else {
327- return false ;
328- }
329324}
You can’t perform that action at this time.
0 commit comments