-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE in librustc/middle/region on async fn #52833
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
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
The function in question is this: async fn connect_to_known_network<'a>(
sme: &'a fidl_sme::ClientSmeProxy, ssid: &'a [u8], known_ess: &'a KnownEss,
) -> Result<bool, failure::Error> {
let ssid_str = String::from_utf8_lossy(ssid).into_owned();
println!("wlancfg: Auto-connecting to '{}'", ssid_str);
let connect_txn = start_connect_txn(sme, &ssid, &known_ess.password)?;
let r = await!(wait_until_connected(connect_txn))?;
match r {
fidl_sme::ConnectResultCode::Success => {
println!("wlancfg: Auto-connected to '{}'", ssid_str);
Ok(true)
},
other => {
println!("wlancfg: Failed to auto-connect to '{}': {:?}", ssid_str, other);
Ok(false)
},
}
} |
The ICE goes away if I make the arguments owned and remove the lifetimes. |
ICE no longer repros, the diagnostic is terrible though (#51751). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Edit: minimal repro on playground:
Triggering this assertion. Full backtrace is here.
The text was updated successfully, but these errors were encountered: