Skip to content

Rollup of 15 pull requests #138733

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 39 commits into from
Closed
Changes from 2 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
c58c06a
Return blocks from DropTree::build_mir
bjorn3 Mar 11, 2025
8dc0c0e
Simplify lit_to_mir_constant a bit
bjorn3 Mar 12, 2025
edf65e7
Add support for postfix yield expressions
eholk Mar 12, 2025
1c0916a
Preserve yield position during pretty printing
eholk Mar 12, 2025
635eae2
Teach rustfmt to handle postfix yield
eholk Mar 13, 2025
c5093ac
Fix clippy
eholk Mar 13, 2025
b77590c
Use llvm_runtimes for compiler-rt
daltenty Mar 17, 2025
6362851
[bootstrap] Distribute split debuginfo if present
wesleywiser May 1, 2024
9b0e7f6
Teach rustfmt to handle postfix yield
eholk Mar 18, 2025
69a3ad0
Add `MutMirVisitor`
makai410 Mar 18, 2025
ad315f6
Add test for `MutMirVisitor`
makai410 Mar 18, 2025
a0c3dd4
Optimize io::Write::write_fmt for constant strings
thaliaarchi Mar 1, 2025
5fe1e47
reintroduce remote-test support in run-make tests
pietroalbini Mar 18, 2025
a3669b8
updated compiler tests for rustc_intrinsic'
BLANKatGITHUB Mar 12, 2025
299e5d0
Apply suggestions from code review
eholk Mar 18, 2025
2bd7f73
Refactor YieldKind so postfix yield must have an expression
eholk Mar 18, 2025
027423d
Fix: add ohos target notes
LuuuXXX Mar 19, 2025
f27cab8
Use `Option<Ident>` for lowered param names.
nnethercote Mar 13, 2025
5a52b5d
Suggest `-Whelp` when pass `--print lints` to rustc
xizheyin Mar 19, 2025
9b88fd0
Update GCC submodule
Kobzol Mar 19, 2025
b5069da
Check attrs: Don't try to retrieve the name of list stems
fmease Mar 19, 2025
d07ef5b
coverage: Add LLVM plumbing for expansion regions
Zalathar Mar 4, 2025
2e36990
coverage: Convert and check span coordinates without a local file ID
Zalathar Mar 20, 2025
e6004cc
Use def_path_str for def id arg in UnsupportedOpInfo
compiler-errors Mar 20, 2025
6fe32cc
Rollup merge of #138321 - wesleywiser:bootstrap_package_pdbs, r=onur-…
jieyouxu Mar 20, 2025
2a9480d
Rollup merge of #138364 - BLANKatGITHUB:compiler, r=RalfJung
jieyouxu Mar 20, 2025
a359bd2
Rollup merge of #138410 - bjorn3:misc_cleanups, r=compiler-errors
jieyouxu Mar 20, 2025
a86736e
Rollup merge of #138435 - eholk:prefix-yield, r=oli-obk
jieyouxu Mar 20, 2025
d82ecae
Rollup merge of #138536 - makai410:mut-mir-visitor, r=celinval
jieyouxu Mar 20, 2025
fc43963
Rollup merge of #138623 - daltenty:daltenty/fix-compiler-rt, r=Kobzol
jieyouxu Mar 20, 2025
7fd43ab
Rollup merge of #138650 - thaliaarchi:io-write-fmt-known, r=ibraheemdev
jieyouxu Mar 20, 2025
be60742
Rollup merge of #138652 - ferrocene:pa-remote-test-rmake, r=jieyouxu
jieyouxu Mar 20, 2025
ff8b243
Rollup merge of #138685 - nnethercote:use-Option-Ident-for-lowered-pa…
jieyouxu Mar 20, 2025
f54dd04
Rollup merge of #138694 - LuuuXXX:fix-platform-support-book, r=jieyouxu
jieyouxu Mar 20, 2025
b796b77
Rollup merge of #138700 - xizheyin:issue-138612, r=Nadrieril
jieyouxu Mar 20, 2025
64a3305
Rollup merge of #138709 - Kobzol:update-gcc, r=GuillaumeGomez
jieyouxu Mar 20, 2025
766b0b6
Rollup merge of #138724 - fmease:list-stems-bear-no-name, r=nnethercote
jieyouxu Mar 20, 2025
11a13a2
Rollup merge of #138731 - Zalathar:llvm-expansion, r=jieyouxu
jieyouxu Mar 20, 2025
0575fc1
Rollup merge of #138732 - compiler-errors:did, r=jieyouxu
jieyouxu Mar 20, 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
12 changes: 5 additions & 7 deletions compiler/rustc_error_codes/src/error_codes/E0092.md
Original file line number Diff line number Diff line change
@@ -6,10 +6,9 @@ Erroneous code example:
#![feature(intrinsics)]
#![allow(internal_features)]
extern "rust-intrinsic" {
fn atomic_foo(); // error: unrecognized atomic operation
// function
}
#[rustc_intrinsic]
unsafe fn atomic_foo(); // error: unrecognized atomic operation
// function
```

Please check you didn't make a mistake in the function's name. All intrinsic
@@ -20,7 +19,6 @@ functions are defined in `compiler/rustc_codegen_llvm/src/intrinsic.rs` and in
#![feature(intrinsics)]
#![allow(internal_features)]
extern "rust-intrinsic" {
fn atomic_fence_seqcst(); // ok!
}
#[rustc_intrinsic]
unsafe fn atomic_fence_seqcst(); // ok!
```
10 changes: 4 additions & 6 deletions compiler/rustc_error_codes/src/error_codes/E0093.md
Original file line number Diff line number Diff line change
@@ -6,9 +6,8 @@ Erroneous code example:
#![feature(intrinsics)]
#![allow(internal_features)]

extern "rust-intrinsic" {
fn foo(); // error: unrecognized intrinsic function: `foo`
}
#[rustc_intrinsic]
unsafe fn foo(); // error: unrecognized intrinsic function: `foo`

fn main() {
unsafe {
@@ -25,9 +24,8 @@ functions are defined in `compiler/rustc_codegen_llvm/src/intrinsic.rs` and in
#![feature(intrinsics)]
#![allow(internal_features)]

extern "rust-intrinsic" {
fn atomic_fence_seqcst(); // ok!
}
#[rustc_intrinsic]
unsafe fn atomic_fence_seqcst(); // ok!

fn main() {
unsafe {
10 changes: 4 additions & 6 deletions compiler/rustc_error_codes/src/error_codes/E0211.md
Original file line number Diff line number Diff line change
@@ -7,9 +7,8 @@ used. Erroneous code examples:
#![feature(intrinsics)]
#![allow(internal_features)]
extern "rust-intrinsic" {
fn unreachable(); // error: intrinsic has wrong type
}
#[rustc_intrinsic]
unsafe fn unreachable(); // error: intrinsic has wrong type
// or:
@@ -43,9 +42,8 @@ For the first code example, please check the function definition. Example:
#![feature(intrinsics)]
#![allow(internal_features)]
extern "rust-intrinsic" {
fn unreachable() -> !; // ok!
}
#[rustc_intrinsic]
unsafe fn unreachable() -> !; // ok!
```

The second case example is a bit particular: the main function must always
10 changes: 4 additions & 6 deletions compiler/rustc_error_codes/src/error_codes/E0511.md
Original file line number Diff line number Diff line change
@@ -5,9 +5,8 @@ Erroneous code example:
```compile_fail,E0511
#![feature(intrinsics)]
extern "rust-intrinsic" {
fn simd_add<T>(a: T, b: T) -> T;
}
#[rustc_intrinsic]
unsafe fn simd_add<T>(a: T, b: T) -> T;
fn main() {
unsafe { simd_add(0, 1); }
@@ -25,9 +24,8 @@ The generic type has to be a SIMD type. Example:
#[derive(Copy, Clone)]
struct i32x2([i32; 2]);
extern "rust-intrinsic" {
fn simd_add<T>(a: T, b: T) -> T;
}
#[rustc_intrinsic]
unsafe fn simd_add<T>(a: T, b: T) -> T;
unsafe { simd_add(i32x2([0, 0]), i32x2([1, 2])); } // ok!
```