Skip to content

Commit 429ca32

Browse files
committed
add fixmes
1 parent 10d4a98 commit 429ca32

File tree

15 files changed

+19
-0
lines changed

15 files changed

+19
-0
lines changed

compiler/rustc_codegen_ssa/src/codegen_attrs.rs

+1
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,7 @@ fn codegen_fn_attrs(tcx: TyCtxt<'_>, did: LocalDefId) -> CodegenFnAttrs {
279279
//
280280
// This exception needs to be kept in sync with allowing
281281
// `#[target_feature]` on `main` and `start`.
282+
// FIXME: sync me
282283
} else if !tcx.features().target_feature_11() {
283284
feature_err(
284285
&tcx.sess,

compiler/rustc_errors/src/emitter.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3188,6 +3188,7 @@ fn num_decimal_digits(num: usize) -> usize {
31883188

31893189
// We replace some characters so the CLI output is always consistent and underlines aligned.
31903190
// Keep the following list in sync with `rustc_span::char_width`.
3191+
// FIXME: sync me
31913192
const OUTPUT_REPLACEMENTS: &[(char, &str)] = &[
31923193
// In terminals without Unicode support the following will be garbled, but in *all* terminals
31933194
// the underlying codepoint will be as well. We could gate this replacement behind a "unicode

compiler/rustc_metadata/src/native_libs.rs

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ pub fn walk_native_lib_search_dirs<R>(
5757
// FIXME: On AIX this also has the side-effect of making the list of library search paths
5858
// non-empty, which is needed or the linker may decide to record the LIBPATH env, if
5959
// defined, as the search path instead of appending the default search paths.
60+
// FIXME: sync me
6061
if sess.target.vendor == "fortanix"
6162
|| sess.target.os == "linux"
6263
|| sess.target.os == "fuchsia"

compiler/rustc_middle/src/dep_graph/dep_node.rs

+2
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ macro_rules! define_dep_nodes {
8686
// struct, and there we can take advantage of the unused bits in the u16.
8787
#[allow(non_camel_case_types)]
8888
#[repr(u16)] // Must be kept in sync with the inner type of `DepKind`.
89+
// FIXME: sync me
8990
enum DepKindDefs {
9091
$( $( #[$attr] )* $variant),*
9192
}
@@ -96,6 +97,7 @@ macro_rules! define_dep_nodes {
9697

9798
$(
9899
// The `as u16` cast must be kept in sync with the inner type of `DepKind`.
100+
// FIXME: sync me
99101
pub const $variant: DepKind = DepKind::new(DepKindDefs::$variant as u16);
100102
)*
101103
}

compiler/rustc_middle/src/mir/terminator.rs

+2
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ impl UnwindAction {
136136
impl UnwindTerminateReason {
137137
pub fn as_str(self) -> &'static str {
138138
// Keep this in sync with the messages in `core/src/panicking.rs`.
139+
// FIXME: sync me
139140
match self {
140141
UnwindTerminateReason::Abi => "panic in a function that cannot unwind",
141142
UnwindTerminateReason::InCleanup => "panic in a destructor during cleanup",
@@ -304,6 +305,7 @@ impl<O> AssertKind<O> {
304305
/// `AssertKind::panic_function` and the lang items mentioned in its docs).
305306
/// Note that we deliberately show more details here than we do at runtime, such as the actual
306307
/// numbers that overflowed -- it is much easier to do so here than at runtime.
308+
// FIXME: sync me
307309
pub fn diagnostic_message(&self) -> DiagMessage {
308310
use AssertKind::*;
309311

compiler/rustc_middle/src/ty/instance.rs

+2
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,7 @@ impl<'tcx> Instance<'tcx> {
900900

901901
#[inline(always)]
902902
// Keep me in sync with try_instantiate_mir_and_normalize_erasing_regions
903+
// FIXME: sync me
903904
pub fn instantiate_mir_and_normalize_erasing_regions<T>(
904905
&self,
905906
tcx: TyCtxt<'tcx>,
@@ -918,6 +919,7 @@ impl<'tcx> Instance<'tcx> {
918919

919920
#[inline(always)]
920921
// Keep me in sync with instantiate_mir_and_normalize_erasing_regions
922+
// FIXME: sync me
921923
pub fn try_instantiate_mir_and_normalize_erasing_regions<T>(
922924
&self,
923925
tcx: TyCtxt<'tcx>,

compiler/rustc_middle/src/ty/predicate.rs

+1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ impl<'tcx> Predicate<'tcx> {
138138
/// unsoundly accept some programs. See #91068.
139139
#[inline]
140140
pub fn allow_normalization(self) -> bool {
141+
// FIXME: sync me
141142
// Keep this in sync with the one in `rustc_type_ir::inherent`!
142143
match self.kind().skip_binder() {
143144
PredicateKind::Clause(ClauseKind::WellFormed(_))

compiler/rustc_mir_transform/src/coverage/query.rs

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ fn coverage_ids_info<'tcx>(
109109
// to any particular point in the control-flow graph.
110110
// (Keep this in sync with the injection of `ExpressionUsed`
111111
// statements in the `InstrumentCoverage` MIR pass.)
112+
// FIXME: sync me
112113
if let MappingKind::Code(CovTerm::Expression(id)) = mapping.kind {
113114
expressions_seen.remove(id);
114115
}

compiler/rustc_mir_transform/src/mentioned_items.rs

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ impl<'tcx> crate::MirPass<'tcx> for MentionedItems {
3333
// visiting the exact same places but then instead of monomorphizing and creating `MonoItems`, we
3434
// have to remain generic and just recording the relevant information in `mentioned_items`, where it
3535
// will then be monomorphized later during "mentioned items" collection.
36+
// FIXME: sync me
3637
impl<'tcx> Visitor<'tcx> for MentionedItemsVisitor<'_, 'tcx> {
3738
fn visit_terminator(&mut self, terminator: &mir::Terminator<'tcx>, location: Location) {
3839
self.super_terminator(terminator, location);

compiler/rustc_next_trait_solver/src/solve/assembly/structural_traits.rs

+1
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,7 @@ pub(in crate::solve) fn extract_fn_def_from_const_callable<I: Interner>(
716716

717717
// NOTE: Keep this in sync with `evaluate_host_effect_for_destruct_goal` in
718718
// the old solver, for as long as that exists.
719+
// FIXME: sync me
719720
pub(in crate::solve) fn const_conditions_for_destruct<I: Interner>(
720721
cx: I,
721722
self_ty: I::Ty,

compiler/rustc_session/src/config/cfg.rs

+1
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ pub(crate) fn default_configuration(sess: &Session) -> Cfg {
176176
//
177177
// NOTE: These insertions should be kept in sync with
178178
// `CheckCfg::fill_well_known` below.
179+
// FIXME: sync me
179180

180181
if sess.opts.debug_assertions {
181182
ins_none!(sym::debug_assertions);

compiler/rustc_span/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2210,6 +2210,7 @@ pub fn char_width(ch: char) -> usize {
22102210
// Keep the following list in sync with `rustc_errors::emitter::OUTPUT_REPLACEMENTS`. These
22112211
// are control points that we replace before printing with a visible codepoint for the sake
22122212
// of being able to point at them with underlines.
2213+
// FIXME: sync me
22132214
'\u{0000}' | '\u{0001}' | '\u{0002}' | '\u{0003}' | '\u{0004}' | '\u{0005}'
22142215
| '\u{0006}' | '\u{0007}' | '\u{0008}' | '\u{000B}' | '\u{000C}' | '\u{000D}'
22152216
| '\u{000E}' | '\u{000F}' | '\u{0010}' | '\u{0011}' | '\u{0012}' | '\u{0013}'

compiler/rustc_trait_selection/src/traits/dyn_compatibility.rs

+1
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ fn virtual_call_violations_for_method<'tcx>(
439439
} else {
440440
// We confirm that the `receiver_is_dispatchable` is accurate later,
441441
// see `check_receiver_correct`. It should be kept in sync with this code.
442+
// FIXME: sync me
442443
}
443444
}
444445

compiler/rustc_trait_selection/src/traits/effects.rs

+1
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ fn evaluate_host_effect_from_builtin_impls<'tcx>(
245245
}
246246

247247
// NOTE: Keep this in sync with `const_conditions_for_destruct` in the new solver.
248+
// FIXME: sync me
248249
fn evaluate_host_effect_for_destruct_goal<'tcx>(
249250
selcx: &mut SelectionContext<'_, 'tcx>,
250251
obligation: &HostEffectObligation<'tcx>,

library/core/src/panicking.rs

+2
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ fn panic_misaligned_pointer_dereference(required: usize, found: usize) -> ! {
304304
#[rustc_nounwind]
305305
fn panic_cannot_unwind() -> ! {
306306
// Keep the text in sync with `UnwindTerminateReason::as_str` in `rustc_middle`.
307+
// FIXME: sync me
307308
panic_nounwind("panic in a function that cannot unwind")
308309
}
309310

@@ -320,6 +321,7 @@ fn panic_cannot_unwind() -> ! {
320321
#[rustc_nounwind]
321322
fn panic_in_cleanup() -> ! {
322323
// Keep the text in sync with `UnwindTerminateReason::as_str` in `rustc_middle`.
324+
// FIXME: sync me
323325
panic_nounwind_nobacktrace("panic in a destructor during cleanup")
324326
}
325327

0 commit comments

Comments
 (0)