-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
assertion failed: !value.has_escaping_bound_vars(): ICE when compiling crate tracing-subscriber v0.3.9
#94998
Comments
|
This is probably a duplicate of #94986. |
My guess is this is caused by #93977. Specifically https://github.com/rust-lang/rust/pull/93977/files#diff-8d11697c196da9f44774488ae0bf353283e5c6466a6dd570d7818431b73d4a44R1683. |
(That might not be the cause though) |
Compiling with debug assertions on should be able to pinpoint exactly where things go wrong. |
Bisecting this lead to 0407030 though cc @michaelwoerister |
👍 |
Actually, I do agree that this is probably not due to #93977. @michaelwoerister, I can still fix this though, unless you're gonna take a look at it? |
@compiler-errors, feel free to take a look. #94997 might be relevant here too (although it does look like a different problem). |
Welp sorry @compiler-errors |
For either of the two Michaels looking at this: big thanks to @FSMaxB for the small repro from #95018. pub struct Broken {
_broken: Box<dyn Fn(&()) -> Box<dyn ToString + '_>>,
}
impl From<Broken> for ()
{
fn from(_: Broken) -> Self {}
} |
Here's a minimization I left on a duplicate issue:
trait Trait {}
pub fn run(_: &dyn FnOnce(&()) -> Box<dyn Trait + '_>) {} rustc --crate-type rlib --edition 2018 -Cdebuginfo=2 lib.rs Note that without |
Marking as P-critical, since this seems to be getting hit by several people. |
tracing-subscriber v0.3.9
tracing-subscriber v0.3.9
Also changing title and pinning to try to help curb some duplicates. |
any solution!, I am still facing same error |
No, the PR that fixes this is blocked on a CI issue, which will not likely be resolved until tomorrow at this rate. You may find a temporary fix by downloading an old nightly revision with (e.g.) |
Thanks! |
Same error! thread 'rustc' panicked at 'assertion failed: !value.has_escaping_bound_vars()', /rustc/461e8078010433ff7de2db2aaae8a3cfb0847215\compiler\rustc_middle\src\ty\sty.rs:1089:9 note: rustc 1.61.0-nightly (461e807 2022-03-16) running on x86_64-pc-windows-msvc |
Pinning this at least for a day or so, since the nightly with the fix hasn't even been released. |
Code
Cargo.toml
rust-toolchain.toml
src/main.rs
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: