-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add regression test for #127424 #139607
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 regression test for #127424 #139607
Conversation
rustbot has assigned @petrochenkov. Use |
tests/ui/const-generics/generic_const_exprs/const-generics-closure.rs
Outdated
Show resolved
Hide resolved
67d8b6e
to
dc58bc6
Compare
That ICE only reproduces when the tested compiler is built with debug assertions ( I'd suggest to avoid the off-topic "cannot find function/value" errors in the test, but it's hard to do without breaking the test if you don't have a reliable reproduction. |
561c4ec
to
b9f614a
Compare
Thanks for the feedback! I couldn’t reproduce the ICE before, but after enabling Specifically, running the following code triggered the same ICE as before: fn bar() -> impl Into<
[u8; {
let _ = for<'a, 'b> |x: &'a &'a Vec<&'b u32>, b: bool| -> &'a Vec<&'b u32> { *x };
}],
> {
[89]
} Version information comand:
Program output
I also cleaned up the test to remove the unrelated "cannot find function/value" errors while preserving the ICE. let me know if anything else needs to be adjusted! |
tests/ui/const-generics/generic_const_exprs/const-generics-closure.rs
Outdated
Show resolved
Hide resolved
r=me after adding |
b9f614a
to
11256a0
Compare
Thanks! |
@bors r+ rollup |
… r=petrochenkov Add regression test for rust-lang#127424 Fixes: rust-lang#127424 This ICE no longer reproduces, so it appears to have already been fixed. This PR adds a regression test to ensure the issue doesn’t come back in the future. Please let me know if there's anything I should improve or revise!
…enton Rollup of 9 pull requests Successful merges: - rust-lang#137494 (libstd: init(): dup() subsequent /dev/nulls instead of opening them again) - rust-lang#138881 (Use the chaining methods on PartialOrd for slices too) - rust-lang#138972 (std: Fix build for NuttX targets) - rust-lang#139107 (std: make `cmath` functions safe) - rust-lang#139607 (Add regression test for rust-lang#127424) - rust-lang#139691 (Document that `opt-dist` requires metrics to be enabled) - rust-lang#139707 (Fix comment in bootstrap) - rust-lang#139708 (Fix name of field in doc comment) - rust-lang#139709 (bootstrap: fix typo in doc string) r? `@ghost` `@rustbot` modify labels: rollup
… r=petrochenkov Add regression test for rust-lang#127424 Fixes: rust-lang#127424 This ICE no longer reproduces, so it appears to have already been fixed. This PR adds a regression test to ensure the issue doesn’t come back in the future. Please let me know if there's anything I should improve or revise!
…enton Rollup of 8 pull requests Successful merges: - rust-lang#138881 (Use the chaining methods on PartialOrd for slices too) - rust-lang#138972 (std: Fix build for NuttX targets) - rust-lang#139107 (std: make `cmath` functions safe) - rust-lang#139607 (Add regression test for rust-lang#127424) - rust-lang#139691 (Document that `opt-dist` requires metrics to be enabled) - rust-lang#139707 (Fix comment in bootstrap) - rust-lang#139708 (Fix name of field in doc comment) - rust-lang#139709 (bootstrap: fix typo in doc string) r? `@ghost` `@rustbot` modify labels: rollup
… r=petrochenkov Add regression test for rust-lang#127424 Fixes: rust-lang#127424 This ICE no longer reproduces, so it appears to have already been fixed. This PR adds a regression test to ensure the issue doesn’t come back in the future. Please let me know if there's anything I should improve or revise!
…enton Rollup of 7 pull requests Successful merges: - rust-lang#138972 (std: Fix build for NuttX targets) - rust-lang#139107 (std: make `cmath` functions safe) - rust-lang#139607 (Add regression test for rust-lang#127424) - rust-lang#139691 (Document that `opt-dist` requires metrics to be enabled) - rust-lang#139707 (Fix comment in bootstrap) - rust-lang#139708 (Fix name of field in doc comment) - rust-lang#139709 (bootstrap: fix typo in doc string) r? `@ghost` `@rustbot` modify labels: rollup
…enton Rollup of 6 pull requests Successful merges: - rust-lang#139107 (std: make `cmath` functions safe) - rust-lang#139607 (Add regression test for rust-lang#127424) - rust-lang#139691 (Document that `opt-dist` requires metrics to be enabled) - rust-lang#139707 (Fix comment in bootstrap) - rust-lang#139708 (Fix name of field in doc comment) - rust-lang#139709 (bootstrap: fix typo in doc string) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#139607 - reddevilmidzy:add-regression-test, r=petrochenkov Add regression test for rust-lang#127424 Fixes: rust-lang#127424 This ICE no longer reproduces, so it appears to have already been fixed. This PR adds a regression test to ensure the issue doesn’t come back in the future. Please let me know if there's anything I should improve or revise!
…enton Rollup of 6 pull requests Successful merges: - rust-lang#139107 (std: make `cmath` functions safe) - rust-lang#139607 (Add regression test for rust-lang#127424) - rust-lang#139691 (Document that `opt-dist` requires metrics to be enabled) - rust-lang#139707 (Fix comment in bootstrap) - rust-lang#139708 (Fix name of field in doc comment) - rust-lang#139709 (bootstrap: fix typo in doc string) r? `@ghost` `@rustbot` modify labels: rollup
Fixes: #127424
This ICE no longer reproduces, so it appears to have already been fixed.
This PR adds a regression test to ensure the issue doesn’t come back in the future.
Please let me know if there's anything I should improve or revise!