Skip to content

Rollup of 10 pull requests #138771

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 31 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
c261426
add `naked_functions_target_feature` unstable feature
folkertdev Mar 16, 2025
03ece26
update tests
ZuseZ4 Mar 17, 2025
b77590c
Use llvm_runtimes for compiler-rt
daltenty Mar 17, 2025
f5c37c3
[NFC] split up gen_body_helper
ZuseZ4 Mar 17, 2025
f9d0a14
resolve repeated attribute fixme
ZuseZ4 Mar 17, 2025
5f7ff88
[NFC] use outer_normal_attr helper
ZuseZ4 Mar 17, 2025
f4c2978
[NFC] extract autodiff call lowering in cg_llvm into own function
ZuseZ4 Mar 17, 2025
47c07ed
[NFC] simplify matching
ZuseZ4 Mar 17, 2025
81b2d55
addressing feedback, removing unused arg
ZuseZ4 Mar 18, 2025
a3669b8
updated compiler tests for rustc_intrinsic'
BLANKatGITHUB Mar 12, 2025
599dc82
Simplify `get_git_modified_files`
Kobzol Mar 16, 2025
2139a78
Fix bug in `get_git_modified_files`
Kobzol Mar 16, 2025
b24dc75
Respect `--src` bootstrap flag
Kobzol Mar 19, 2025
9b88fd0
Update GCC submodule
Kobzol Mar 19, 2025
7c085f7
add rustc_macro_edition_2021
jdonszelmann Mar 19, 2025
93d5ca8
Pin tests.
m-ou-se Mar 19, 2025
25896cc
Add cfg(not(bootstrap)) for new test.
m-ou-se Mar 19, 2025
20432c9
Use explicit cpu in some asm and codegen tests.
Mar 19, 2025
0577300
Address review comments.
m-ou-se Mar 19, 2025
ecea977
Update `compiler-builtins` to 0.1.152
tgross35 Mar 20, 2025
cafd238
tests: accept some noise from LLVM 21 in symbols-all-mangled
durin42 Mar 18, 2025
7e624c5
Rollup merge of #138364 - BLANKatGITHUB:compiler, r=RalfJung
matthiaskrgr Mar 21, 2025
aa3ec09
Rollup merge of #138570 - folkertdev:naked-function-target-feature-ga…
matthiaskrgr Mar 21, 2025
f7d9cc6
Rollup merge of #138623 - daltenty:daltenty/fix-compiler-rt, r=Kobzol
matthiaskrgr Mar 21, 2025
04b0e39
Rollup merge of #138627 - EnzymeAD:autodiff-cleanups, r=oli-obk
matthiaskrgr Mar 21, 2025
3c03c99
Rollup merge of #138669 - durin42:llvm-21-anon-func-unmangled, r=bjorn3
matthiaskrgr Mar 21, 2025
cacad7d
Rollup merge of #138706 - Kobzol:bootstrap-git-refactor-1, r=onur-ozkan
matthiaskrgr Mar 21, 2025
2a8b44c
Rollup merge of #138709 - Kobzol:update-gcc, r=GuillaumeGomez
matthiaskrgr Mar 21, 2025
11aee2e
Rollup merge of #138717 - jdonszelmann:pin-macro, r=WaffleLapkin
matthiaskrgr Mar 21, 2025
01f6d03
Rollup merge of #138721 - jchecahi:tests-explicit-cpus, r=tgross35
matthiaskrgr Mar 21, 2025
3ec7f85
Rollup merge of #138728 - tgross35:update-builtins, r=tgross35
matthiaskrgr Mar 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
updated compiler tests for rustc_intrinsic'
Update compiler/rustc_error_codes/src/error_codes/E0622.md

Co-authored-by: Ralf Jung <post@ralfj.de>

reverted chages on E0622.md

updated E0622.md
  • Loading branch information
BLANKatGITHUB committed Mar 18, 2025
commit a3669b89825e6f1aabaa3e3993c1a9f9d7b70306
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
Expand Up @@ -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
Expand All @@ -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
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down
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
Expand Up @@ -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:

Expand Down Expand Up @@ -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
Expand Down
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
Expand Up @@ -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); }
Expand All @@ -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!
```
Loading