-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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 - 'cannot access a scoped thread local variable without calling set
first'
#63283
Comments
You could try to minimize the example and try to create a mcve. If you need help with it, you can ask here. I can give you some guideance. @rustbot modify labels: E-needs-mcve I-ICE C-bug T-compiler A-thread-locals |
@hellow554 I've minimized it quite a bit. It seems to be an issue with a plugin that we have that encrypts strings. I don't have a problem sharing this code so: https://github.com/omerbenamram/rust-63283-mcve
This plugin has been broken on nightly updates before, but never crashed. |
Plugins are kind of deprecated in favor of proc macros. You should concider upgrading them in the future. Unfortunately the ICE does not occur neither on my linux nor on my windows machine. Maybe it's an incremental compiling problem? Is the error still present if you do |
@hellow554 it still happens after |
@petrochenkov linking against |
To prevent the error we see when compiling cargo-snippet 0.3 with the nightly (1.40) rustc_driver should be linked with. thread 'rustc' panicked at 'cannot access a scoped thread local variable without calling `set` first', /Users/runner/.cargo/registry/src/github.jparrowsec.cn-1ecc6299db9ec823/scoped-tls-1.0.0/src/lib.rs:168:9 ref: rust-lang/rust#63283 Signed-off-by: Akira Hayakawa <[email protected]>
Hello,
After updating nightly version to
2019-07-31
(also fails on2019-08-04
), previously working code no longer compiles.I can confirm that it compiles successfully on
nightly-2019-07-30
.EDIT: Happens on
debug
aswell, also doesn't happen on macOS, but I'm not sure whether it's a transitive dependency or a windows specific thing.Traceback:
The repo is private so unfortunately i cannot link to it.
If there are any details that may help debugging this I will be happy to assist :)
Thanks!
The text was updated successfully, but these errors were encountered: