Skip to content

Commit 3e454df

Browse files
Fix rebasing conflicts.
1 parent 994e813 commit 3e454df

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/librustc/ty/maps/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,6 @@ define_maps! { <'tcx>
302302
// Does not include external symbols that don't have a corresponding DefId,
303303
// like the compiler-generated `main` function and so on.
304304
[] fn reachable_non_generics: ReachableNonGenerics(CrateNum) -> Rc<DefIdSet>,
305-
306-
// This
307305
[] fn is_reachable_non_generic: IsReachableNonGeneric(DefId) -> bool,
308306

309307

src/librustc_mir/monomorphize/partitioning.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ fn place_root_translation_items<'a, 'tcx, I>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
385385
(Linkage::External, visibility)
386386
}
387387
MonoItem::Static(def_id) => {
388-
let visibility = if tcx.is_exported_symbol(def_id) {
388+
let visibility = if tcx.is_reachable_non_generic(def_id) {
389389
can_be_internalized = false;
390390
default_visibility(def_id)
391391
} else {

0 commit comments

Comments
 (0)