Skip to content

Commit 7bd295e

Browse files
committed
Update docs in rustc_public_bridge
1 parent 922b034 commit 7bd295e

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

compiler/rustc_public_bridge/src/alloc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Internal memory allocator implementation for StableMIR.
1+
//! Internal memory allocator implementation for rustc_public.
22
//!
33
//! This module handles all direct interactions with rustc queries and performs
44
//! the actual memory allocations. The stable interface in `rustc_public::alloc`

compiler/rustc_public_bridge/src/builder.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
//! Logic required to produce a monomorphic stable body.
1+
//! Logic required to produce a monomorphic body.
22
//!
3-
//! We first retrieve and monomorphize the rustc body representation, i.e., we generate a
3+
//! We retrieve and monomorphize the rustc body representation, i.e., we generate a
44
//! monomorphic body using internal representation.
5-
//! After that, we convert the internal representation into a stable one.
65
76
use rustc_hir::def::DefKind;
87
use rustc_middle::mir;
@@ -25,7 +24,7 @@ impl<'tcx> BodyBuilder<'tcx> {
2524
BodyBuilder { tcx, instance }
2625
}
2726

28-
/// Build a stable monomorphic body for a given instance based on the MIR body.
27+
/// Build a monomorphic body for a given instance based on the MIR body.
2928
///
3029
/// All constants are also evaluated.
3130
pub(crate) fn build(mut self) -> mir::Body<'tcx> {

compiler/rustc_public_bridge/src/context/impls.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Implementation of StableMIR Context.
1+
//! Implementation of CompilerCtxt.
22
33
#![allow(rustc::usage_of_qualified_ty)]
44

@@ -85,7 +85,7 @@ impl<'tcx, B: Bridge> CompilerCtxt<'tcx, B> {
8585
/// Return whether the item has a body defined by the user.
8686
///
8787
/// Note that intrinsics may have a placeholder body that shouldn't be used in practice.
88-
/// In StableMIR, we handle this case as if the body is not available.
88+
/// In rustc_public, we handle this case as if the body is not available.
8989
pub(crate) fn item_has_body(&self, def_id: DefId) -> bool {
9090
let must_override = if let Some(intrinsic) = self.tcx.intrinsic(def_id) {
9191
intrinsic.must_be_overridden

compiler/rustc_public_bridge/src/context/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Implementation of StableMIR Context.
1+
//! Implementation of CompilerCtxt.
22
33
#![allow(rustc::usage_of_qualified_ty)]
44

@@ -19,7 +19,7 @@ pub use helpers::*;
1919
/// Provides direct access to rustc's internal queries.
2020
///
2121
/// `CompilerInterface` must go through
22-
/// this context to obtain rustc-level information.
22+
/// this context to obtain internal information.
2323
pub struct CompilerCtxt<'tcx, B: Bridge> {
2424
pub tcx: TyCtxt<'tcx>,
2525
_marker: PhantomData<B>,

compiler/rustc_public_bridge/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
//! Crate that implements what will become the rustc side of Stable MIR.
1+
//! Crate that implements what will become the rustc side of rustc_public.
22
//!
3-
//! This crate is responsible for building Stable MIR components from internal components.
3+
//! This crate serves as a proxy for making calls to rustc queries.
44
//!
55
//! This crate is not intended to be invoked directly by users.
66
//! This crate is the public API of rustc that will be invoked by the `rustc_public` crate.
@@ -210,7 +210,7 @@ impl<'tcx, B: Bridge> Tables<'tcx, B> {
210210
}
211211
}
212212

213-
/// A trait defining types that are used to emulate StableMIR components, which is really
213+
/// A trait defining types that are used to emulate rustc_public components, which is really
214214
/// useful when programming in rustc_public-agnostic settings.
215215
pub trait Bridge: Sized {
216216
type DefId: Copy + Debug + PartialEq + IndexedVal;

0 commit comments

Comments
 (0)