@@ -801,28 +801,28 @@ impl<'tcx> Visitor<'tcx> for Checker<'tcx> {
801801 // FIXME(jdonszelmann): make it impossible to miss the or_else in the typesystem
802802 let const_stab = attrs:: find_attr!( attrs, AttributeKind :: ConstStability { stability, ..} => * stability) ;
803803
804- let unstable_feature_stab =
804+ let unstable_feature_stab =
805805 find_attr ! ( attrs, AttributeKind :: AllowUnstableFeature ( i) => i)
806- . map ( |i| i. as_slice ( ) )
807- . unwrap_or_default ( ) ;
806+ . map ( |i| i. as_slice ( ) )
807+ . unwrap_or_default ( ) ;
808808
809809 // If this impl block has an #[unstable] attribute, give an
810810 // error if all involved types and traits are stable, because
811811 // it will have no effect.
812812 // See: https://github.com/rust-lang/rust/issues/55436
813813 //
814814 // The exception is when there is both #[unstable_feature_bound(..)] and
815- // #![unstable(feature = "..", issue = "..")] that have the same symbol because
815+ // #![unstable(feature = "..", issue = "..")] that have the same symbol because
816816 // that can effectively mark an impl as unstable.
817817 //
818818 // For example:
819819 // ```
820- // #[unstable_feature_bound(feat_foo)]
820+ // #[unstable_feature_bound(feat_foo)]
821821 // #![unstable(feature = "feat_foo", issue = "none")]
822822 // impl Foo for Bar {}
823823 // ```
824824 if let Some ( (
825- Stability { level : attrs:: StabilityLevel :: Unstable { ..} , feature} ,
825+ Stability { level : attrs:: StabilityLevel :: Unstable { .. } , feature } ,
826826 span,
827827 ) ) = stab
828828 {
@@ -831,7 +831,7 @@ impl<'tcx> Visitor<'tcx> for Checker<'tcx> {
831831 c. visit_trait_ref ( t) ;
832832
833833 // Skip the lint if the impl is marked as unstable using
834- // #[unstable_feature_bound(..)]
834+ // #[unstable_feature_bound(..)]
835835 let mut unstable_feature_bound_in_effect = false ;
836836 for ( unstable_bound_feat_name, _) in unstable_feature_stab {
837837 if * unstable_bound_feat_name == feature {
@@ -841,7 +841,10 @@ impl<'tcx> Visitor<'tcx> for Checker<'tcx> {
841841
842842 // do not lint when the trait isn't resolved, since resolution error should
843843 // be fixed first
844- if t. path . res != Res :: Err && c. fully_stable && !unstable_feature_bound_in_effect {
844+ if t. path . res != Res :: Err
845+ && c. fully_stable
846+ && !unstable_feature_bound_in_effect
847+ {
845848 self . tcx . emit_node_span_lint (
846849 INEFFECTIVE_UNSTABLE_TRAIT_IMPL ,
847850 item. hir_id ( ) ,
0 commit comments