File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
compiler/rustc_passes/src Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -141,16 +141,6 @@ impl<'tcx> ReachableContext<'tcx> {
141
141
if !self . any_library {
142
142
// If we are building an executable, only explicitly extern
143
143
// types need to be exported.
144
- let reachable =
145
- if let Node :: Item ( hir:: Item { kind : hir:: ItemKind :: Fn ( sig, ..) , .. } )
146
- | Node :: ImplItem ( hir:: ImplItem {
147
- kind : hir:: ImplItemKind :: Fn ( sig, ..) , ..
148
- } ) = * node
149
- {
150
- sig. header . abi != Abi :: Rust
151
- } else {
152
- false
153
- } ;
154
144
let codegen_attrs = if self . tcx . def_kind ( search_item) . has_codegen_attrs ( ) {
155
145
self . tcx . codegen_fn_attrs ( search_item)
156
146
} else {
@@ -159,7 +149,7 @@ impl<'tcx> ReachableContext<'tcx> {
159
149
let is_extern = codegen_attrs. contains_extern_indicator ( ) ;
160
150
let std_internal =
161
151
codegen_attrs. flags . contains ( CodegenFnAttrFlags :: RUSTC_STD_INTERNAL_SYMBOL ) ;
162
- if reachable || is_extern || std_internal {
152
+ if is_extern || std_internal {
163
153
self . reachable_symbols . insert ( search_item) ;
164
154
}
165
155
} else {
You can’t perform that action at this time.
0 commit comments