File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
compiler/rustc_metadata/src/rmeta Expand file tree Collapse file tree 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 {
862862 | DefKind :: Macro ( _)
863863 | DefKind :: Field
864864 | 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 ,
865870 DefKind :: TyParam
866871 | DefKind :: ConstParam
867872 | DefKind :: Ctor ( ..)
@@ -874,7 +879,6 @@ fn should_encode_attrs(def_kind: DefKind) -> bool {
874879 | DefKind :: ImplTraitPlaceholder
875880 | DefKind :: LifetimeParam
876881 | DefKind :: GlobalAsm
877- | DefKind :: Closure
878882 | DefKind :: Generator => false ,
879883 }
880884}
You can’t perform that action at this time.
0 commit comments