Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
eda2d0d
fix typos
ffengyu Jul 18, 2025
de3578a
Merge pull request #2511 from ffengyu/errata
tshepang Jul 18, 2025
b2e94bf
Add test demonstrating current beta `#[align]` name resolution regres…
jieyouxu Jul 17, 2025
69b71e4
Mitigate `#[align]` name resolution ambiguity regression with a rename
jieyouxu Jul 17, 2025
966fc57
`SmirCtxt` to `CompilerCtxt`, `SmirInterface` to `CompilerInterface`
makai410 Jul 15, 2025
7f22e88
`SmirContainer` to `Container`
makai410 Jul 15, 2025
ad0de06
use "helper" as a more descriptive name
makai410 Jul 15, 2025
08e3cf5
rename `ui-fulldeps/stable-mir`
makai410 Jul 15, 2025
9a37aab
rename `ui/stable-mir-print`
makai410 Jul 15, 2025
a1deaa7
`SmirError` to `Error`
makai410 Jul 15, 2025
9533871
Update docs in `rustc_public_bridge`
makai410 Jul 15, 2025
483877a
Update docs in `rustc_public`
makai410 Jul 15, 2025
4d79328
use `RustcPublic` instead of `StableMir`
makai410 Jul 15, 2025
20a7f72
fix `ui/rustc_public-ir-print` outputs
makai410 Jul 17, 2025
3fb1af3
enzyme submodule update
ZuseZ4 Jul 18, 2025
42d6b0d
make more builder functions generic
ZuseZ4 Jun 18, 2025
6340164
add -Zoffload=Enable flag behind -Zunstable-options, to enable gpu (h…
ZuseZ4 Jun 18, 2025
5958ebe
add various wrappers for gpu code generation
ZuseZ4 Jul 2, 2025
4a1a5a4
gpu host code generation
ZuseZ4 Jul 2, 2025
e2ab312
add gpu offload codegen host side test
ZuseZ4 Jul 18, 2025
c068599
add unstable-books doc for offload
ZuseZ4 Jul 18, 2025
196833c
Fix ide-assist: Deref transtive
A4-Tacks Jul 19, 2025
54d9743
Add Deref -> DerefMut for generate_mut_trait_impl
A4-Tacks Jul 19, 2025
2f46cde
minor: remove unused var
Young-Flash Jul 19, 2025
e49e107
Merge pull request #20258 from Young-Flash/remove_unused
lnicola Jul 19, 2025
bb46b8c
Allow selecting check tool `Mode` based on `Builder`
Kobzol Jul 11, 2025
245d2c9
Implement `check::Compiletest` using the `tool_check_step` macro
Kobzol Jul 11, 2025
fc74c22
Add approval blocking labels for new bors
Kobzol Jul 19, 2025
a6c7cea
Fix search of raw labels and lifetimes
ChayimFriedman2 Jul 19, 2025
8b6559b
Support `cfg_select!`
ChayimFriedman2 Jul 20, 2025
fdf8bdb
Remove the ptr_unique lang item
bjorn3 Jul 20, 2025
2eaba02
Merge pull request #20265 from ChayimFriedman2/cfg-select
lnicola Jul 20, 2025
fa0320d
Merge pull request #20255 from A4-Tacks/deref-intranstive
lnicola Jul 20, 2025
313dff1
Add test.
cjgillot Jul 4, 2025
7da6fd1
Lower extra lifetimes before normal generic params.
cjgillot Jul 4, 2025
3f9be40
fix handling of base address for TypeId allocations
RalfJung Jul 19, 2025
e68f5fe
Implement `check::RustAnalyzer` using the `tool_check_step` macro
Kobzol Jul 11, 2025
192efbb
clippy: make tests work in stage 1
RalfJung Jul 16, 2025
897d007
Prepare for merging from rust-lang/rust
invalid-email-address Jul 21, 2025
ad20b06
Merge ref '460259d14de0' from rust-lang/rust
invalid-email-address Jul 21, 2025
33d62b5
Merge pull request #20262 from ChayimFriedman2/goto-ref-raw
ShoyuVanilla Jul 21, 2025
4bbe74b
Merge pull request #20256 from A4-Tacks/gen-mut-trait-deref
ShoyuVanilla Jul 21, 2025
750c1e9
Preparing for merge from rust-lang/rust
lnicola Jul 21, 2025
2f14119
Merge from rust-lang/rust
lnicola Jul 21, 2025
1482809
Bump rustc crates
lnicola Jul 21, 2025
f263364
Bump rustc-literal-escaper
lnicola Jul 21, 2025
2050358
Revert "Bump rustc-literal-escaper"
lnicola Jul 21, 2025
da90db7
Downgrade ra-ap-rustc_parse_format
lnicola Jul 21, 2025
8f67bcf
Merge pull request #20268 from lnicola/sync-from-rust
lnicola Jul 21, 2025
1fd0697
Remove Retag for Unique
bjorn3 Jul 21, 2025
79e3c7d
fix some typos
tshepang Jul 21, 2025
4a45ab5
Merge pull request #2513 from rust-lang/tshepang/typos
tshepang Jul 21, 2025
74ba9cb
Don't use another main test file as auxiliary
jieyouxu Jul 21, 2025
62e3a05
Merge pull request #2512 from rust-lang/rustc-pull
tshepang Jul 21, 2025
3c76e3d
Constify Try, From, TryFrom
Randl Jul 21, 2025
c193f30
opt-dist: make `artifact-dir` an absolute path for `opt-dist local`
ognevny Jul 21, 2025
5e3eb25
Rollup merge of #142097 - ZuseZ4:offload-host1, r=oli-obk
jieyouxu Jul 21, 2025
a99f3af
Rollup merge of #143430 - cjgillot:extra-lifetime-swap, r=oli-obk
jieyouxu Jul 21, 2025
1f8b531
Rollup merge of #143768 - Randl:const-try, r=oli-obk
jieyouxu Jul 21, 2025
38efe38
Rollup merge of #143816 - Kobzol:compiletest-check-macro, r=jieyouxu
jieyouxu Jul 21, 2025
2e0748b
Rollup merge of #143985 - makai410:rp-rename, r=oli-obk
jieyouxu Jul 21, 2025
a3ab807
Rollup merge of #144027 - RalfJung:clippy, r=Mark-Simulacrum
jieyouxu Jul 21, 2025
ef4a7fb
Rollup merge of #144080 - jieyouxu:realign, r=BoxyUwU
jieyouxu Jul 21, 2025
0fd009f
Rollup merge of #144176 - Kobzol:bors-labels-blocking, r=oli-obk
jieyouxu Jul 21, 2025
9e9399f
Rollup merge of #144187 - RalfJung:type-id-base-addr, r=oli-obk
jieyouxu Jul 21, 2025
551cef9
Rollup merge of #144212 - bjorn3:remove_unique_lang_item, r=oli-obk
jieyouxu Jul 21, 2025
05f80f7
Rollup merge of #144243 - lnicola:sync-from-ra, r=lnicola
jieyouxu Jul 21, 2025
55a477e
Rollup merge of #144246 - jieyouxu:no-dual-test, r=lqd,RalfJung
jieyouxu Jul 21, 2025
43fa3f5
Rollup merge of #144251 - tshepang:rdg-sync, r=jieyouxu
jieyouxu Jul 21, 2025
6628a4a
Rollup merge of #144254 - ognevny:opt-dist-artifact-dir, r=Kobzol
jieyouxu Jul 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update docs in rustc_public_bridge
  • Loading branch information
makai410 committed Jul 18, 2025
commit 95338717f10b46dfac7ee8333672ede004ca212b
2 changes: 1 addition & 1 deletion compiler/rustc_public_bridge/src/alloc.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Internal memory allocator implementation for StableMIR.
//! Internal memory allocator implementation for rustc_public.
//!
//! This module handles all direct interactions with rustc queries and performs
//! the actual memory allocations. The stable interface in `rustc_public::alloc`
Expand Down
7 changes: 3 additions & 4 deletions compiler/rustc_public_bridge/src/builder.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
//! Logic required to produce a monomorphic stable body.
//! Logic required to produce a monomorphic body.
//!
//! We first retrieve and monomorphize the rustc body representation, i.e., we generate a
//! We retrieve and monomorphize the rustc body representation, i.e., we generate a
//! monomorphic body using internal representation.
//! After that, we convert the internal representation into a stable one.

use rustc_hir::def::DefKind;
use rustc_middle::mir;
Expand All @@ -25,7 +24,7 @@ impl<'tcx> BodyBuilder<'tcx> {
BodyBuilder { tcx, instance }
}

/// Build a stable monomorphic body for a given instance based on the MIR body.
/// Build a monomorphic body for a given instance based on the MIR body.
///
/// All constants are also evaluated.
pub(crate) fn build(mut self) -> mir::Body<'tcx> {
Expand Down
4 changes: 2 additions & 2 deletions compiler/rustc_public_bridge/src/context/impls.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Implementation of StableMIR Context.
//! Implementation of CompilerCtxt.

#![allow(rustc::usage_of_qualified_ty)]

Expand Down Expand Up @@ -85,7 +85,7 @@ impl<'tcx, B: Bridge> CompilerCtxt<'tcx, B> {
/// Return whether the item has a body defined by the user.
///
/// Note that intrinsics may have a placeholder body that shouldn't be used in practice.
/// In StableMIR, we handle this case as if the body is not available.
/// In rustc_public, we handle this case as if the body is not available.
pub(crate) fn item_has_body(&self, def_id: DefId) -> bool {
let must_override = if let Some(intrinsic) = self.tcx.intrinsic(def_id) {
intrinsic.must_be_overridden
Expand Down
4 changes: 2 additions & 2 deletions compiler/rustc_public_bridge/src/context/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Implementation of StableMIR Context.
//! Implementation of CompilerCtxt.

#![allow(rustc::usage_of_qualified_ty)]

Expand All @@ -19,7 +19,7 @@ pub use helpers::*;
/// Provides direct access to rustc's internal queries.
///
/// `CompilerInterface` must go through
/// this context to obtain rustc-level information.
/// this context to obtain internal information.
pub struct CompilerCtxt<'tcx, B: Bridge> {
pub tcx: TyCtxt<'tcx>,
_marker: PhantomData<B>,
Expand Down
6 changes: 3 additions & 3 deletions compiler/rustc_public_bridge/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! Crate that implements what will become the rustc side of Stable MIR.
//! Crate that implements what will become the rustc side of rustc_public.
//!
//! This crate is responsible for building Stable MIR components from internal components.
//! This crate serves as a proxy for making calls to rustc queries.
//!
//! This crate is not intended to be invoked directly by users.
//! This crate is the public API of rustc that will be invoked by the `rustc_public` crate.
Expand Down Expand Up @@ -210,7 +210,7 @@ impl<'tcx, B: Bridge> Tables<'tcx, B> {
}
}

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