-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Add ignore-rustc-debug-assertions
to tests/ui/associated-consts/issue-93775.rs
#134608
Conversation
I think moving to crashes is reasonable. Looking at this version, it should hit the limits across platforms much more reliably? I'll run two msvc try jobs (the try jobs succeeding doesn't guarantee they won't be flaky, but just as a basic sanity check). If they come back green, then please r=me. @bors try |
Move test rust-lang#93775 to crashes Closes rust-lang#132111. Closes rust-lang#133432. Re-opens rust-lang#93775. I think this test case is flaky because the recursive calls happen to hit the upper limit of the call stack. IMO, this may not be an issue, as it's reasonable for overly complex code to require additional build configurations (such as increasing the call stack size). r? jieyouxu try-job: x86_64-msvc try-job: i686-msvc
☀️ Try build successful - checks-actions |
🟩 |
Move test rust-lang#93775 to crashes Closes rust-lang#132111. Closes rust-lang#133432. Re-opens rust-lang#93775. I think this test case is flaky because the recursive calls happen to hit the upper limit of the call stack. IMO, this may not be an issue, as it's reasonable for overly complex code to require additional build configurations (such as increasing the call stack size). r? jieyouxu try-job: x86_64-msvc try-job: i686-msvc
Move test rust-lang#93775 to crashes Closes rust-lang#132111. Closes rust-lang#133432. Re-opens rust-lang#93775. I think this test case is flaky because the recursive calls happen to hit the upper limit of the call stack. IMO, this may not be an issue, as it's reasonable for overly complex code to require additional build configurations (such as increasing the call stack size). r? jieyouxu try-job: x86_64-msvc try-job: i686-msvc
Rollup of 6 pull requests Successful merges: - rust-lang#131072 (Win: Use POSIX rename semantics for `std::fs::rename` if available) - rust-lang#134325 (Correctly document CTFE behavior of is_null and methods that call is_null.) - rust-lang#134526 (update `rustc_index_macros` feature handling) - rust-lang#134581 (Bump Fuchsia toolchain for testing) - rust-lang#134607 (on pair → on par) - rust-lang#134608 (Move test rust-lang#93775 to crashes) r? `@ghost` `@rustbot` modify labels: rollup
091613d
to
2a87896
Compare
I will add @rustbot author |
2a87896
to
4dca485
Compare
ignore-rustc-debug-assertions
to tests/ui/associated-consts/issue-93775.rs
When enable #![recursion_limit = "8193"]
use std::marker::PhantomData;
struct Z;
struct S<T>(PhantomData<T>);
type Nested4<T> = S<S<S<S<T>>>>;
type Nested16<T> = Nested4<Nested4<Nested4<Nested4<T>>>>;
type Nested64<T> = Nested16<Nested16<Nested16<Nested16<T>>>>;
type Nested256<T> = Nested64<Nested64<Nested64<Nested64<T>>>>;
type Nested1024<T> = Nested256<Nested256<Nested256<Nested256<T>>>>;
type Nested4096<T> = Nested1024<Nested1024<Nested1024<Nested1024<T>>>>;
type Nested8192<T> = Nested4096<Nested4096<T>>;
type Nested = Nested8192<Z>;
trait AsNum {
const NUM: u32;
}
impl AsNum for Z {
const NUM: u32 = 0;
}
impl<T: AsNum> AsNum for S<T> {
const NUM: u32 = T::NUM + 1;
}
fn main() {
let _ = Nested::NUM;
} $ time rustc +nightly 93775.rs --out-dir /tmp/93775
rustc +nightly 93775.rs --out-dir /tmp/93775 17.96s user 79.23s system 99% cpu 1:37.74 total So I disable the test case when disable |
Huh... |
I guess we'll have to see in full CI... r=me after PR CI is green. @bors rollup=iffy |
IIUC, only tasks that have |
BTW, I can reproduce the crash at 091613d if I enable |
🟩 |
I marked this PR as iffy, if it fails full CI, oh well :3 |
☀️ Test successful - checks-actions |
Finished benchmarking commit (66bb586): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (secondary 3.4%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResults (secondary -3.3%)This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 763.42s -> 762.559s (-0.11%) |
Closes #132111. Closes #133432.
I think this test case is flaky because the recursive calls happen to hit the upper limit of the call stack.
IMO, this may not be an issue, as it's reasonable for overly complex code to require additional build configurations (such as increasing the call stack size).
After set
rust.debug-assertions
is true, the test case requires a larger call stack, so disable it onrust.debug-assertions=true
.r? jieyouxu
try-job: x86_64-msvc
try-job: i686-msvc