Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9e3e2ed

Browse files
authoredFeb 24, 2024
Unrolled build for rust-lang#121531
Rollup merge of rust-lang#121531 - saethlin:ignore-less-debug, r=compiler-errors Ignore less tests in debug builds Since rust-lang#120594 and rust-lang#120863, nearly all UB-detecting debug assertions get compiled out of code that is monomorphized by a crate built with debug assertions disabled. Which means that if we default all our codegen tests to `-Cdebug-assertions=no`, most of them work just fine against a sysroot built with debug assertions. I also tried to explain a bit better why some tests need to be skipped, for those that still need to be skipped.
2 parents 6bdb8a4 + 2f3c0b9 commit 9e3e2ed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+14
-62
lines changed
 

‎src/tools/compiletest/src/runtest.rs‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2503,8 +2503,11 @@ impl<'test> TestCx<'test> {
25032503
// overridden by `compile-flags`.
25042504
rustc.arg("-Copt-level=2");
25052505
}
2506-
RunPassValgrind | Pretty | DebugInfo | Codegen | Rustdoc | RustdocJson | RunMake
2507-
| CodegenUnits | JsDocTest | Assembly => {
2506+
Assembly | Codegen => {
2507+
rustc.arg("-Cdebug-assertions=no");
2508+
}
2509+
RunPassValgrind | Pretty | DebugInfo | Rustdoc | RustdocJson | RunMake
2510+
| CodegenUnits | JsDocTest => {
25082511
// do not use JSON output
25092512
}
25102513
}

‎tests/assembly/option-nonzero-eq.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
//@ compile-flags: --crate-type=lib -O -C llvm-args=-x86-asm-syntax=intel
66
//@ only-x86_64
77
//@ ignore-sgx
8-
//@ ignore-debug
98

109
use std::cmp::Ordering;
1110

0 commit comments

Comments
 (0)
This repository has been archived.