Skip to content

Commit 99e0d8e

Browse files
committed
Minor follow-up after renaming librustc(_middle)
1 parent 548afdb commit 99e0d8e

File tree

14 files changed

+23
-18
lines changed

14 files changed

+23
-18
lines changed

src/libcore/clone.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ pub struct AssertParamIsCopy<T: Copy + ?Sized> {
169169
/// Implementations of `Clone` for primitive types.
170170
///
171171
/// Implementations that cannot be described in Rust
172-
/// are implemented in `SelectionContext::copy_clone_conditions()` in librustc_middle.
172+
/// are implemented in `traits::SelectionContext::copy_clone_conditions()`
173+
/// in `rustc_trait_selection`.
173174
mod impls {
174175

175176
use super::Clone;

src/libcore/marker.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,8 @@ impl<T: ?Sized> Unpin for *mut T {}
759759
/// Implementations of `Copy` for primitive types.
760760
///
761761
/// Implementations that cannot be described in Rust
762-
/// are implemented in `SelectionContext::copy_clone_conditions()` in librustc_middle.
762+
/// are implemented in `traits::SelectionContext::copy_clone_conditions()`
763+
/// in `rustc_trait_selection`.
763764
mod copy_impls {
764765

765766
use super::Copy;

src/libcore/raw.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
//! They can be used as targets of transmutes in unsafe code for manipulating
77
//! the raw representations directly.
88
//!
9-
//! Their definition should always match the ABI defined in `rustc_target::abi`.
9+
//! Their definition should always match the ABI defined in
10+
//! `rustc_middle::ty::layout`.
1011
1112
/// The representation of a trait object like `&SomeTrait`.
1213
///

src/librustc_infer/infer/lexical_region_resolve/graphviz.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! This module provides linkage between libgraphviz traits and
2-
//! `rustc_middle::middle::typeck::infer::region_constraints`, generating a
2+
//! `rustc_trait_selection::infer::region_constraints`, generating a
33
//! rendering of the graph represented by the list of `Constraint`
44
//! instances (which make up the edges of the graph), as well as the
55
//! origin for each constraint (which are attached to the labels on

src/librustc_mir/borrow_check/region_infer/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ pub(crate) enum Cause {
202202
///
203203
/// For more information about this translation, see
204204
/// `InferCtxt::process_registered_region_obligations` and
205-
/// `InferCtxt::type_must_outlive` in `rustc_middle::infer::outlives`.
205+
/// `InferCtxt::type_must_outlive` in `rustc_infer::infer::InferCtxt`.
206206
#[derive(Clone, Debug)]
207207
pub struct TypeTest<'tcx> {
208208
/// The type `T` that must outlive the region.

src/librustc_mir/borrow_check/type_check/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
10531053
/// regions which are extracted and stored as having occurred at
10541054
/// `locations`.
10551055
///
1056-
/// **Any `rustc_middle::infer` operations that might generate region
1056+
/// **Any `rustc_infer::infer` operations that might generate region
10571057
/// constraints should occur within this method so that those
10581058
/// constraints can be properly localized!**
10591059
fn fully_perform_op<R>(

src/librustc_passes/region.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ pub struct Context {
2727
/// of the innermost fn body. Each fn forms its own disjoint tree
2828
/// in the region hierarchy. These fn bodies are themselves
2929
/// arranged into a tree. See the "Modeling closures" section of
30-
/// the README in `infer::region_constraints` for more
31-
/// details.
30+
/// the README in `rustc_trait_selection::infer::region_constraints`
31+
/// for more details.
3232
root_id: Option<hir::ItemLocalId>,
3333

3434
/// The scope that contains any new variables declared, plus its depth in

src/librustc_passes/stability.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ fn new_index(tcx: TyCtxt<'tcx>) -> Index<'tcx> {
438438
// If the `-Z force-unstable-if-unmarked` flag is passed then we provide
439439
// a parent stability annotation which indicates that this is private
440440
// with the `rustc_private` feature. This is intended for use when
441-
// compiling librustc_middle crates themselves so we can leverage crates.io
441+
// compiling `librustc_*` crates themselves so we can leverage crates.io
442442
// while maintaining the invariant that all sysroot crates are unstable
443443
// by default and are unable to be used.
444444
if tcx.sess.opts.debugging_opts.force_unstable_if_unmarked {

src/librustc_session/filesearch.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ fn find_libdir(sysroot: &Path) -> Cow<'static, str> {
143143
// FIXME: This is a quick hack to make the rustc binary able to locate
144144
// Rust libraries in Linux environments where libraries might be installed
145145
// to lib64/lib32. This would be more foolproof by basing the sysroot off
146-
// of the directory where librustc_middle is located, rather than where the rustc
147-
// binary is.
146+
// of the directory where `librustc_driver` is located, rather than
147+
// where the rustc binary is.
148148
// If --libdir is set during configuration to the value other than
149149
// "lib" (i.e., non-default), this value is used (see issue #16552).
150150

src/librustc_session/lint.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ pub enum BuiltinLintDiagnostics {
195195
}
196196

197197
/// Lints that are buffered up early on in the `Session` before the
198-
/// `LintLevels` is calculated. These are later passed to `librustc_middle`.
198+
/// `LintLevels` is calculated.
199199
#[derive(PartialEq)]
200200
pub struct BufferedEarlyLint {
201201
/// The span of code that we are linting on.
@@ -207,7 +207,8 @@ pub struct BufferedEarlyLint {
207207
/// The `NodeId` of the AST node that generated the lint.
208208
pub node_id: NodeId,
209209

210-
/// A lint Id that can be passed to `rustc_session::lint::Lint::from_parser_lint_id`.
210+
/// A lint Id that can be passed to
211+
/// `rustc_lint::early::EarlyContextAndPass::check_id`.
211212
pub lint_id: LintId,
212213

213214
/// Customization of the `DiagnosticBuilder<'_>` for the lint.

src/librustc_trait_selection/traits/project.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ fn assemble_candidates_from_impls<'cx, 'tcx>(
10101010
// type.
10111011
//
10121012
// NOTE: This should be kept in sync with the similar code in
1013-
// `rustc_middle::ty::instance::resolve_associated_item()`.
1013+
// `rustc_ty::instance::resolve_associated_item()`.
10141014
let node_item =
10151015
assoc_ty_def(selcx, impl_data.impl_def_id, obligation.predicate.item_def_id)
10161016
.map_err(|ErrorReported| ())?;

src/librustc_traits/implied_outlives_bounds.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! Provider for the `implied_outlives_bounds` query.
2-
//! Do not call this query directory. See [`rustc_middle::traits::query::implied_outlives_bounds`].
2+
//! Do not call this query directory. See
3+
//! [`rustc_trait_selection::traits::query::type_op::implied_outlives_bounds`].
34
45
use rustc_hir as hir;
56
use rustc_infer::infer::canonical::{self, Canonical};

src/librustc_ty/instance.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ fn resolve_associated_item<'tcx>(
118118
// Since this is a trait item, we need to see if the item is either a trait default item
119119
// or a specialization because we can't resolve those unless we can `Reveal::All`.
120120
// NOTE: This should be kept in sync with the similar code in
121-
// `rustc_middle::traits::project::assemble_candidates_from_impls()`.
121+
// `rustc_trait_selection::traits::project::assemble_candidates_from_impls()`.
122122
let eligible = if leaf_def.is_final() {
123123
// Non-specializable items are always projectable.
124124
true

src/libstd/alloc.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,10 @@ pub fn rust_oom(layout: Layout) -> ! {
289289
pub mod __default_lib_allocator {
290290
use super::{GlobalAlloc, Layout, System};
291291
// These magic symbol names are used as a fallback for implementing the
292-
// `__rust_alloc` etc symbols (see `src/liballoc/alloc.rs) when there is
292+
// `__rust_alloc` etc symbols (see `src/liballoc/alloc.rs`) when there is
293293
// no `#[global_allocator]` attribute.
294294

295-
// for symbol names src/librustc_middle/middle/allocator.rs
295+
// for symbol names src/librustc_ast/expand/allocator.rs
296296
// for signatures src/librustc_allocator/lib.rs
297297

298298
// linkage directives are provided as part of the current compiler allocator

0 commit comments

Comments
 (0)