Skip to content

Commit 29e9574

Browse files
committed
fix fixmes
1 parent c0683a5 commit 29e9574

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

compiler/rustc_metadata/src/rmeta/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ pub(crate) struct CrateRoot {
258258
panic_in_drop_strategy: PanicStrategy,
259259
edition: Edition,
260260

261-
// TODO: these booleans can be replaced by the entries in `externally_implementable_items`
261+
// FIXME(jdonszelmann): these booleans can be replaced by the entries in `externally_implementable_items`
262262
has_global_allocator: bool,
263263
has_alloc_error_handler: bool,
264264
has_default_lib_allocator: bool,

compiler/rustc_middle/src/middle/codegen_fn_attrs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ bitflags::bitflags! {
108108
/// `#[no_mangle]`: an indicator that the function's name should be the same
109109
/// as its symbol.
110110
const NO_MANGLE = 1 << 5;
111-
// TODO: EIIs can replace this, most likely
111+
// FIXME(jdonszelmann): EIIs can replace this, most likely
112112
/// `#[rustc_std_internal_symbol]`: an indicator that this symbol is a
113113
/// "weird symbol" for the standard library in that it has slightly
114114
/// different linkage, visibility, and reachability rules.

compiler/rustc_monomorphize/src/collector.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ impl<'v> RootCollector<'_, 'v> {
15351535

15361536
self.entry_fn.and_then(|(id, _)| id.as_local()) == Some(def_id)
15371537
|| self.tcx.is_reachable_non_generic(def_id)
1538-
// TODO: EII might remove this:
1538+
// FIXME(jdonszelmann): EII might remove this:
15391539
|| cfa
15401540
.flags
15411541
.contains(CodegenFnAttrFlags::RUSTC_STD_INTERNAL_SYMBOL)

compiler/rustc_monomorphize/src/partitioning.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -770,8 +770,6 @@ fn mono_item_linkage_and_visibility<'tcx>(
770770
// libraries. And shared libraries may later be linked together, both implementing the EII.
771771
// This conflicting implementations may show up. We want to ignore this and just link em
772772
// together anyway. LLVM ensures the last one is the one that's chosen
773-
// TODO: this isn't the problem if they both decided to choose either the default or the
774-
// same explicit impl but if their view on it differs it is a problem!
775773
if let MonoItem::Fn(Instance { def: InstanceKind::EiiShim { weak_linkage, .. }, .. }) =
776774
mono_item
777775
{
@@ -947,7 +945,7 @@ fn mono_item_visibility<'tcx>(
947945
// LLVM internalize them as this decision is left up to the linker to
948946
// omit them, so prevent them from being internalized.
949947
let attrs = tcx.codegen_fn_attrs(def_id);
950-
// TODO: EII might replace this
948+
// FIXME(jdonszelmann): EII might replace this
951949
if attrs.flags.contains(CodegenFnAttrFlags::RUSTC_STD_INTERNAL_SYMBOL) {
952950
*can_be_internalized = false;
953951
}

0 commit comments

Comments
 (0)