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> {
141141 if !self . any_library {
142142 // If we are building an executable, only explicitly extern
143143 // 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- } ;
154144 let codegen_attrs = if self . tcx . def_kind ( search_item) . has_codegen_attrs ( ) {
155145 self . tcx . codegen_fn_attrs ( search_item)
156146 } else {
@@ -159,7 +149,7 @@ impl<'tcx> ReachableContext<'tcx> {
159149 let is_extern = codegen_attrs. contains_extern_indicator ( ) ;
160150 let std_internal =
161151 codegen_attrs. flags . contains ( CodegenFnAttrFlags :: RUSTC_STD_INTERNAL_SYMBOL ) ;
162- if reachable || is_extern || std_internal {
152+ if is_extern || std_internal {
163153 self . reachable_symbols . insert ( search_item) ;
164154 }
165155 } else {
You can’t perform that action at this time.
0 commit comments