Skip to content

Commit

Permalink
Auto merge of rust-lang#133026 - workingjubilee:rollup-q8ig6ah, r=wor…
Browse files Browse the repository at this point in the history
…kingjubilee

Rollup of 7 pull requests

Successful merges:

 - rust-lang#131304 (float types: move copysign, abs, signum to libcore)
 - rust-lang#132907 (Change intrinsic declarations to new style)
 - rust-lang#132971 (Handle infer vars in anon consts on stable)
 - rust-lang#133003 (Make `CloneToUninit` dyn-compatible)
 - rust-lang#133004 (btree: simplify the backdoor between set and map)
 - rust-lang#133008 (update outdated comment about test-float-parse)
 - rust-lang#133012 (Add test cases for rust-lang#125918)

r? `@ghost`
`@rustbot` modify labels: rollup
  • Loading branch information
bors authored and BLANKatGITHUB committed Nov 14, 2024
1 parent a4cedec commit 321d17a
Show file tree
Hide file tree
Showing 12 changed files with 49 additions and 5 deletions.
12 changes: 7 additions & 5 deletions compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -882,12 +882,10 @@ extern "C" LLVMRustResult LLVMRustOptimize(
SanitizerOptions->SanitizeKernelAddress) {
OptimizerLastEPCallbacks.push_back(
#if LLVM_VERSION_GE(20, 0)
[SanitizerOptions, TM](ModulePassManager &MPM,
OptimizationLevel Level,
ThinOrFullLTOPhase phase) {
[SanitizerOptions](ModulePassManager &MPM, OptimizationLevel Level,
ThinOrFullLTOPhase phase) {
#else
[SanitizerOptions, TM](ModulePassManager &MPM,
OptimizationLevel Level) {
[SanitizerOptions](ModulePassManager &MPM, OptimizationLevel Level) {
#endif
auto CompileKernel = SanitizerOptions->SanitizeKernelAddress;
AddressSanitizerOptions opts = AddressSanitizerOptions{
Expand All @@ -897,12 +895,16 @@ extern "C" LLVMRustResult LLVMRustOptimize(
/*UseAfterScope=*/true,
AsanDetectStackUseAfterReturnMode::Runtime,
};
<<<<<<< HEAD
MPM.addPass(AddressSanitizerPass(
opts,
/*UseGlobalGC*/ true,
// UseOdrIndicator should be false on windows machines
// https://reviews.llvm.org/D137227
!TM->getTargetTriple().isOSWindows()));
=======
MPM.addPass(AddressSanitizerPass(opts));
>>>>>>> dae7ac13 (Auto merge of #133026 - workingjubilee:rollup-q8ig6ah, r=workingjubilee)
});
}
if (SanitizerOptions->SanitizeHWAddress) {
Expand Down
4 changes: 4 additions & 0 deletions library/std/src/os/nuttx/raw.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<<<<<<< HEAD
//! NuttX raw type definitions
=======
//! rtems raw type definitions
>>>>>>> dae7ac13 (Auto merge of #133026 - workingjubilee:rollup-q8ig6ah, r=workingjubilee)

#![stable(feature = "raw_ext", since = "1.1.0")]
#![deprecated(
Expand Down
4 changes: 4 additions & 0 deletions src/ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,16 @@ RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --release-channel=$RUST_RELEASE_CHANNE
if [ "$DEPLOY$DEPLOY_ALT" = "1" ]; then
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-llvm-static-stdcpp"
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.remap-debuginfo"
<<<<<<< HEAD

if [ "$DEPLOY_ALT" != "" ]; then
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --debuginfo-level=2"
else
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --debuginfo-level-std=1"
fi
=======
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --debuginfo-level-std=1"
>>>>>>> dae7ac13 (Auto merge of #133026 - workingjubilee:rollup-q8ig6ah, r=workingjubilee)

if [ "$NO_LLVM_ASSERTIONS" = "1" ]; then
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --disable-llvm-assertions"
Expand Down
3 changes: 3 additions & 0 deletions src/tools/compiletest/src/directive-list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
"incremental",
"known-bug",
"llvm-cov-flags",
<<<<<<< HEAD
"max-llvm-major-version",
=======
>>>>>>> dae7ac13 (Auto merge of #133026 - workingjubilee:rollup-q8ig6ah, r=workingjubilee)
"min-cdb-version",
"min-gdb-version",
"min-lldb-version",
Expand Down
3 changes: 3 additions & 0 deletions src/tools/compiletest/src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1547,6 +1547,7 @@ fn ignore_llvm(config: &Config, line: &str) -> IgnoreDecision {
};
}
} else if let Some(version_string) =
<<<<<<< HEAD
config.parse_name_value_directive(line, "max-llvm-major-version")
{
let max_version = extract_llvm_version(&version_string);
Expand All @@ -1561,6 +1562,8 @@ fn ignore_llvm(config: &Config, line: &str) -> IgnoreDecision {
};
}
} else if let Some(version_string) =
=======
>>>>>>> dae7ac13 (Auto merge of #133026 - workingjubilee:rollup-q8ig6ah, r=workingjubilee)
config.parse_name_value_directive(line, "min-system-llvm-version")
{
let min_version = extract_llvm_version(&version_string);
Expand Down
3 changes: 3 additions & 0 deletions src/tools/compiletest/src/header/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ fn llvm_version() {

let config: Config = cfg().llvm_version("10.6.2").build();
assert!(!check_ignore(&config, "//@ exact-llvm-major-version: 10"));
<<<<<<< HEAD

let config: Config = cfg().llvm_version("19.0.0").build();
assert!(!check_ignore(&config, "//@ max-llvm-major-version: 19"));
Expand All @@ -308,6 +309,8 @@ fn llvm_version() {

let config: Config = cfg().llvm_version("20.0.0").build();
assert!(check_ignore(&config, "//@ max-llvm-major-version: 19"));
=======
>>>>>>> dae7ac13 (Auto merge of #133026 - workingjubilee:rollup-q8ig6ah, r=workingjubilee)
}

#[test]
Expand Down
5 changes: 5 additions & 0 deletions src/tools/tidy/src/known_bug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use crate::walk::*;

pub fn check(filepath: &Path, bad: &mut bool) {
walk(filepath, |path, _is_dir| filter_not_rust(path), &mut |entry, contents| {
<<<<<<< HEAD
let file: &Path = entry.path();

// files in "auxiliary" do not need to crash by themselves
Expand All @@ -22,6 +23,10 @@ pub fn check(filepath: &Path, bad: &mut bool) {
_aux_file_rs
]) && !contents.lines().any(|line| line.starts_with("//@ known-bug: "))
{
=======
let file = entry.path();
if !contents.lines().any(|line| line.starts_with("//@ known-bug: ")) {
>>>>>>> dae7ac13 (Auto merge of #133026 - workingjubilee:rollup-q8ig6ah, r=workingjubilee)
tidy_error!(
bad,
"{} crash/ice test does not have a \"//@ known-bug: \" directive",
Expand Down
4 changes: 4 additions & 0 deletions tests/assembly/riscv-soft-abi-with-float-features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
//@ compile-flags: --target riscv64imac-unknown-none-elf -Ctarget-feature=+f,+d
//@ needs-llvm-components: riscv
//@ revisions: LLVM-PRE-20 LLVM-POST-20
<<<<<<< HEAD
//@ [LLVM-PRE-20] max-llvm-major-version: 19
=======
//@ [LLVM-PRE-20] ignore-llvm-version: 20 - 99
>>>>>>> dae7ac13 (Auto merge of #133026 - workingjubilee:rollup-q8ig6ah, r=workingjubilee)
//@ [LLVM-POST-20] min-llvm-version: 20

#![feature(no_core, lang_items, f16)]
Expand Down
4 changes: 4 additions & 0 deletions tests/assembly/x86_64-cmp.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
//@ revisions: DEBUG LLVM-PRE-20-OPTIM LLVM-20-OPTIM
//@ [DEBUG] compile-flags: -C opt-level=0
//@ [LLVM-PRE-20-OPTIM] compile-flags: -C opt-level=3
<<<<<<< HEAD
//@ [LLVM-PRE-20-OPTIM] max-llvm-major-version: 19
=======
//@ [LLVM-PRE-20-OPTIM] ignore-llvm-version: 20 - 99
>>>>>>> dae7ac13 (Auto merge of #133026 - workingjubilee:rollup-q8ig6ah, r=workingjubilee)
//@ [LLVM-20-OPTIM] compile-flags: -C opt-level=3
//@ [LLVM-20-OPTIM] min-llvm-version: 20
//@ assembly-output: emit-asm
Expand Down
4 changes: 4 additions & 0 deletions tests/codegen/branch-protection-old-llvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
//@ [LEAF] compile-flags: -Z branch-protection=pac-ret,leaf
//@ [BKEY] compile-flags: -Z branch-protection=pac-ret,b-key
//@ compile-flags: --target aarch64-unknown-linux-gnu
<<<<<<< HEAD
//@ max-llvm-major-version: 18
=======
//@ ignore-llvm-version: 19 - 99
>>>>>>> dae7ac13 (Auto merge of #133026 - workingjubilee:rollup-q8ig6ah, r=workingjubilee)

#![crate_type = "lib"]
#![feature(no_core, lang_items)]
Expand Down
4 changes: 4 additions & 0 deletions tests/codegen/call-metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
// scalar value.

//@ compile-flags: -O -C no-prepopulate-passes
<<<<<<< HEAD
//@ max-llvm-major-version: 18
=======
//@ ignore-llvm-version: 19 - 99
>>>>>>> dae7ac13 (Auto merge of #133026 - workingjubilee:rollup-q8ig6ah, r=workingjubilee)

#![crate_type = "lib"]

Expand Down
4 changes: 4 additions & 0 deletions tests/codegen/integer-cmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@

//@ revisions: llvm-pre-20 llvm-20
//@ [llvm-20] min-llvm-version: 20
<<<<<<< HEAD
//@ [llvm-pre-20] max-llvm-major-version: 19
=======
//@ [llvm-pre-20] ignore-llvm-version: 20 - 99
>>>>>>> dae7ac13 (Auto merge of #133026 - workingjubilee:rollup-q8ig6ah, r=workingjubilee)
//@ compile-flags: -C opt-level=3

#![crate_type = "lib"]
Expand Down

0 comments on commit 321d17a

Please sign in to comment.