Skip to content

Commit 16e117c

Browse files
committedJan 5, 2024
Remove outdated references to librustc_middle.
1 parent f688dd6 commit 16e117c

File tree

7 files changed

+9
-10
lines changed

7 files changed

+9
-10
lines changed
 

‎compiler/rustc_const_eval/src/const_eval/error.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ impl MachineStopType for ConstEvalErrKind {
5050
}
5151
}
5252

53-
// The errors become `MachineStop` with plain strings when being raised.
54-
// `ConstEvalErr` (in `librustc_middle/mir/interpret/error.rs`) knows to
55-
// handle these.
53+
/// The errors become [`InterpError::MachineStop`] when being raised.
5654
impl<'tcx> Into<InterpErrorInfo<'tcx>> for ConstEvalErrKind {
5755
fn into(self) -> InterpErrorInfo<'tcx> {
5856
err_machine_stop!(self).into()

‎compiler/rustc_data_structures/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ pub fn make_display(f: impl Fn(&mut fmt::Formatter<'_>) -> fmt::Result) -> impl
147147
Printer { f }
148148
}
149149

150-
// See comments in src/librustc_middle/lib.rs
150+
// See comments in compiler/rustc_middle/src/tests.rs
151151
#[doc(hidden)]
152152
pub fn __noop_fix_for_27438() {}
153153

‎compiler/rustc_error_codes/src/error_codes/E0264.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extern "C" {
1313
```
1414

1515
A list of available external lang items is available in
16-
`src/librustc_middle/middle/weak_lang_items.rs`. Example:
16+
`compiler/rustc_hir/src/weak_lang_items.rs`. Example:
1717

1818
```
1919
#![feature(lang_items)]

‎compiler/rustc_errors/src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,8 @@ impl DiagCtxt {
639639
}
640640

641641
// This is here to not allow mutation of flags;
642-
// as of this writing it's only used in tests in librustc_middle.
642+
// as of this writing it's used in Session::consider_optimizing and
643+
// in tests in rustc_interface.
643644
pub fn can_emit_warnings(&self) -> bool {
644645
self.inner.borrow_mut().flags.can_emit_warnings
645646
}

‎compiler/rustc_lint/src/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ use crate::nonstandard_style::{method_context, MethodLateContext};
7272

7373
use std::fmt::Write;
7474

75-
// hardwired lints from librustc_middle
75+
// hardwired lints from rustc_lint_defs
7676
pub use rustc_session::lint::builtin::*;
7777

7878
declare_lint! {

‎compiler/rustc_middle/src/arena.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ macro_rules! arena_types {
9494

9595
// Note that this deliberately duplicates items in the `rustc_hir::arena`,
9696
// since we need to allocate this type on both the `rustc_hir` arena
97-
// (during lowering) and the `librustc_middle` arena (for decoding MIR)
97+
// (during lowering) and the `rustc_middle` arena (for decoding MIR)
9898
[decode] asm_template: rustc_ast::InlineAsmTemplatePiece,
9999
[decode] used_trait_imports: rustc_data_structures::unord::UnordSet<rustc_hir::def_id::LocalDefId>,
100100
[decode] is_late_bound_map: rustc_data_structures::fx::FxIndexSet<rustc_hir::ItemLocalId>,

‎compiler/rustc_middle/src/tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use super::*;
22

3-
// FIXME(#27438): right now the unit tests of librustc_middle don't refer to any actual
4-
// functions generated in librustc_data_structures (all
3+
// FIXME(#27438): right now the unit tests of rustc_middle don't refer to any actual
4+
// functions generated in rustc_data_structures (all
55
// references are through generic functions), but statics are
66
// referenced from time to time. Due to this bug we won't
77
// actually correctly link in the statics unless we also

0 commit comments

Comments
 (0)
Please sign in to comment.