File tree 1 file changed +5
-1
lines changed
compiler/rustc_metadata/src/rmeta
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -862,6 +862,11 @@ fn should_encode_attrs(def_kind: DefKind) -> bool {
862
862
| DefKind :: Macro ( _)
863
863
| DefKind :: Field
864
864
| DefKind :: Impl { .. } => true ,
865
+ // Tools may want to be able to detect their tool lints on
866
+ // closures from upstream crates, too. This is used by
867
+ // https://github.com/model-checking/kani and is not a performance
868
+ // or maintenance issue for us.
869
+ DefKind :: Closure => true ,
865
870
DefKind :: TyParam
866
871
| DefKind :: ConstParam
867
872
| DefKind :: Ctor ( ..)
@@ -874,7 +879,6 @@ fn should_encode_attrs(def_kind: DefKind) -> bool {
874
879
| DefKind :: ImplTraitPlaceholder
875
880
| DefKind :: LifetimeParam
876
881
| DefKind :: GlobalAsm
877
- | DefKind :: Closure
878
882
| DefKind :: Generator => false ,
879
883
}
880
884
}
You can’t perform that action at this time.
0 commit comments