Skip to content

Commit 37de857

Browse files
committed
add fixmes
1 parent dbc585e commit 37de857

File tree

15 files changed

+19
-0
lines changed

15 files changed

+19
-0
lines changed

compiler/rustc_codegen_ssa/src/codegen_attrs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ fn codegen_fn_attrs(tcx: TyCtxt<'_>, did: LocalDefId) -> CodegenFnAttrs {
292292
//
293293
// This exception needs to be kept in sync with allowing
294294
// `#[target_feature]` on `main` and `start`.
295+
// FIXME: sync me
295296
} else if !tcx.features().target_feature_11() {
296297
feature_err(
297298
&tcx.sess,

compiler/rustc_errors/src/emitter.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3186,6 +3186,7 @@ fn num_decimal_digits(num: usize) -> usize {
31863186

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

compiler/rustc_metadata/src/native_libs.rs

Lines changed: 1 addition & 0 deletions
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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ macro_rules! define_dep_nodes {
2828
// struct, and there we can take advantage of the unused bits in the u16.
2929
#[allow(non_camel_case_types)]
3030
#[repr(u16)] // Must be kept in sync with the inner type of `DepKind`.
31+
// FIXME: sync me
3132
enum DepKindDefs {
3233
$( $( #[$attr] )* $variant),*
3334
}
@@ -38,6 +39,7 @@ macro_rules! define_dep_nodes {
3839

3940
$(
4041
// The `as u16` cast must be kept in sync with the inner type of `DepKind`.
42+
// FIXME: sync me
4143
pub const $variant: DepKind = DepKind::new(DepKindDefs::$variant as u16);
4244
)*
4345
}

compiler/rustc_middle/src/mir/terminator.rs

Lines changed: 2 additions & 0 deletions
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",
@@ -306,6 +307,7 @@ impl<O> AssertKind<O> {
306307
/// `AssertKind::panic_function` and the lang items mentioned in its docs).
307308
/// Note that we deliberately show more details here than we do at runtime, such as the actual
308309
/// numbers that overflowed -- it is much easier to do so here than at runtime.
310+
// FIXME: sync me
309311
pub fn diagnostic_message(&self) -> DiagMessage {
310312
use AssertKind::*;
311313

compiler/rustc_middle/src/ty/instance.rs

Lines changed: 2 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ fn coverage_ids_info<'tcx>(
101101
// to any particular point in the control-flow graph.
102102
// (Keep this in sync with the injection of `ExpressionUsed`
103103
// statements in the `InstrumentCoverage` MIR pass.)
104+
// FIXME: sync me
104105
if let MappingKind::Code(CovTerm::Expression(id)) = mapping.kind {
105106
expressions_seen.remove(id);
106107
}

compiler/rustc_mir_transform/src/mentioned_items.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ impl<'tcx> crate::MirPass<'tcx> for MentionedItems {
3737
// visiting the exact same places but then instead of monomorphizing and creating `MonoItems`, we
3838
// have to remain generic and just recording the relevant information in `mentioned_items`, where it
3939
// will then be monomorphized later during "mentioned items" collection.
40+
// FIXME: sync me
4041
impl<'tcx> Visitor<'tcx> for MentionedItemsVisitor<'_, 'tcx> {
4142
fn visit_terminator(&mut self, terminator: &mir::Terminator<'tcx>, location: Location) {
4243
self.super_terminator(terminator, location);

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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ pub(crate) fn default_configuration(sess: &Session) -> Cfg {
177177
//
178178
// NOTE: These insertions should be kept in sync with
179179
// `CheckCfg::fill_well_known` below.
180+
// FIXME: sync me
180181

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

compiler/rustc_span/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2276,6 +2276,7 @@ pub fn char_width(ch: char) -> usize {
22762276
// Keep the following list in sync with `rustc_errors::emitter::OUTPUT_REPLACEMENTS`. These
22772277
// are control points that we replace before printing with a visible codepoint for the sake
22782278
// of being able to point at them with underlines.
2279+
// FIXME: sync me
22792280
'\u{0000}' | '\u{0001}' | '\u{0002}' | '\u{0003}' | '\u{0004}' | '\u{0005}'
22802281
| '\u{0006}' | '\u{0007}' | '\u{0008}' | '\u{000B}' | '\u{000C}' | '\u{000D}'
22812282
| '\u{000E}' | '\u{000F}' | '\u{0010}' | '\u{0011}' | '\u{0012}' | '\u{0013}'

compiler/rustc_trait_selection/src/traits/dyn_compatibility.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ fn virtual_call_violations_for_method<'tcx>(
428428
} else {
429429
// We confirm that the `receiver_is_dispatchable` is accurate later,
430430
// see `check_receiver_correct`. It should be kept in sync with this code.
431+
// FIXME: sync me
431432
}
432433
}
433434

compiler/rustc_trait_selection/src/traits/effects.rs

Lines changed: 1 addition & 0 deletions
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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ fn panic_null_pointer_dereference() -> ! {
320320
#[rustc_nounwind]
321321
fn panic_cannot_unwind() -> ! {
322322
// Keep the text in sync with `UnwindTerminateReason::as_str` in `rustc_middle`.
323+
// FIXME: sync me
323324
panic_nounwind("panic in a function that cannot unwind")
324325
}
325326

@@ -336,6 +337,7 @@ fn panic_cannot_unwind() -> ! {
336337
#[rustc_nounwind]
337338
fn panic_in_cleanup() -> ! {
338339
// Keep the text in sync with `UnwindTerminateReason::as_str` in `rustc_middle`.
340+
// FIXME: sync me
339341
panic_nounwind_nobacktrace("panic in a destructor during cleanup")
340342
}
341343

0 commit comments

Comments
 (0)