Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upICE in 2018 edition: 'cannot access a scoped thread local variable without calling `set` first' #53469
Comments
This comment has been minimized.
This comment has been minimized.
earthengine
commented
Aug 19, 2018
•
|
The error message is the same as #53448 (but not requiring 2018 edition, only enable Minimum reproducable: fn foo(f: Box<dyn FnOnce()>) {
f()
}
fn main() {}So this is a known problem that we cannot call a |
This was referenced Aug 19, 2018
alexreg
referenced this issue
Aug 20, 2018
Merged
`impl trait` in bindings (feature: impl-trait-existential-types) #53542
Arnavion
referenced this issue
Aug 20, 2018
Closed
ICE when existential type is exported from one crate and used in another #53443
This comment has been minimized.
This comment has been minimized.
|
I think this is due to |
oli-obk
self-assigned this
Aug 21, 2018
This comment has been minimized.
This comment has been minimized.
earthengine
commented
Aug 21, 2018
•
|
If move the closure inside the fn main() {
let f: Box<dyn FnOnce()> = Box::new(||{});
f()
}the following error occurs:
|
This comment has been minimized.
This comment has been minimized.
earthengine
commented
Aug 21, 2018
matthewjasper
referenced this issue
Aug 21, 2018
Merged
Don't reduce E0161 to a warning in NLL migrate mode #53575
estebank
added
I-ICE
A-diagnostics
WG-epoch
A-rust-2018-preview
labels
Aug 22, 2018
This comment has been minimized.
This comment has been minimized.
This doesn't cause an ICE for me. https://play.rust-lang.org/?gist=9f0b8f5ce57015a0d70b0e3bfd208811&version=nightly&mode=debug&edition=2015 |
This comment has been minimized.
This comment has been minimized.
|
@alexreg the ICE is with the 2018 edition |
This comment has been minimized.
This comment has been minimized.
Arnavion
commented
Aug 22, 2018
|
This also happens with stage1 builds of the compiler when using it to compile crates that use custom derives. Two different copies of But I usually use stage2 builds (which don't have two different versions of |
This comment has been minimized.
This comment has been minimized.
|
The ICE now shows up correctly:
|
oli-obk
removed their assignment
Aug 30, 2018
This comment has been minimized.
This comment has been minimized.
earthengine
commented
Aug 31, 2018
•
earthengine
referenced this issue
Aug 31, 2018
Open
ICE: "broken MIR in DefId" when assigning mismatched closure to `FnMut` #53448
bors
added a commit
that referenced
this issue
Sep 5, 2018
bors
added a commit
that referenced
this issue
Sep 6, 2018
This comment has been minimized.
This comment has been minimized.
|
Now a normal compile error. Closing. |
Kimundi commentedAug 18, 2018
•
edited
Playground link: https://play.rust-lang.org/?gist=f6c908320455219974ef86bf45be9abd&version=nightly&mode=debug&edition=2018