-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
ICE "no errors encountered even though delay_span_bug
issued" in nightly 2022-11-20
#105009
Comments
I look like there is a bug in rustc and this commit uses a version before this bug was introduced. Refs: rust-lang/rust#105009 Signed-off-by: Daniel Bevenius <daniel.bevenius@gmail.com>
Perhaps a small MVCE could be found at this comment (playground link) |
slightly minimized, would be good to get a self-contained testcase for this. use proptest::{prelude::*, test_runner::TestError};
fn gen_all(_len: usize) -> impl Strategy<Value = ()> {
Strategy::prop_map(0..=0, move |_| ())
}
fn foo(mut runner: proptest::test_runner::TestRunner) -> Result<(), TestError<()>> {
runner
.run(
&::proptest::strategy::Strategy::prop_map(
(1usize..=1).prop_flat_map(gen_all),
|_| (),
),
|()| Ok(()),
)
}
pub fn main() {
let x = foo as fn(_) -> _;
println!("{x:p}");
} |
@rustbot claim |
This should be fixed by #105455, only tested #105009 (comment) though. Ended up getting a self-contained regression test myself which was a bit of a mess 😅 It's understandable why minimizing these issues was so difficult 😁 |
…=jackh726 use the correct `Reveal` during validation supersedes rust-lang#105454. Deals with rust-lang#105009 (comment), not closing rust-lang#105009 as the ICE may leak into beta The issue was the following: - we optimize the mir, using `Reveal::All` - some optimization relies on the hidden type of an opaque type - we then validate using `Reveal::UserFacing` again which is not able to observe the hidden type r? `@jackh726`
I confirm that the original ICE code I posted here now compiles since |
use the correct `Reveal` during validation supersedes #105454. Deals with rust-lang/rust#105009 (comment), not closing #105009 as the ICE may leak into beta The issue was the following: - we optimize the mir, using `Reveal::All` - some optimization relies on the hidden type of an opaque type - we then validate using `Reveal::UserFacing` again which is not able to observe the hidden type r? `@jackh726`
The Thanks for this fix! |
closing this issue as fixed in this case. Thank you for testing the fix ❤️ |
Code
Code is available at MilkFather/rustc-ice-221120.
Error output
Backtrace
I ran a bisect before writing this issue, it says the regression came from
nightly-2022-11-20
, and everything worked fine innightly-2022-11-19
.The text was updated successfully, but these errors were encountered: