-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Compiler panic with incorrect JoinHandle in thread_local var #82455
Comments
The ICE happens since 1.44 |
@rustbot ping icebreakers-cleanup-crew can we add a bit more detail and trace where this starts? |
Hey Cleanup Crew ICE-breakers! This bug has been identified as a good cc @AminArria @camelid @chrissimpkins @contrun @DutchGhost @elshize @ethanboxx @h-michael @HallerPatrick @hdhoang @hellow554 @henryboisdequin @imtsuki @JamesPatrickGill @kanru @KarlK90 @LeSeulArtichaut @MAdrianMattocks @matheus-consoli @mental32 @nmccarty @Noah-Kennedy @pard68 @PeytonT @pierreN @Redblueflame @RobbieClarken @RobertoSnap @robjtede @SarthakSingh31 @shekohex @sinato @smmalis37 @steffahn @Stupremee @tamuhey @turboladen @woshilapin @yerke |
Assigning @rustbot label -I-prioritize +P-medium |
Regression between f509b26...f4c675c If I had to guess, I would say #66131 |
Reduced testcase:
|
Not sure if of any help, but the thread_local macro is not needed: fn map<T>(_: fn() -> Option<&'static T>) -> Option<T> {
None
}
fn value() -> Option<&'static _> {
Option::<&'static u8>::None
}
const _: Option<_> = {
let _: Option<_> = map(value);
}; |
;) |
Issue: rust-lang/rust#82455
Substitute erased lifetimes on bad placeholder type Fix rust-lang#82455.
Fix rust-lang#82455. (cherry picked from commit 5ad6088)
Hello,
While trying to figure out how to keep a JoinHandle in a thread-local variable, I tried compiling this incorrect code, and rust crashed. It will not panic if I use a regular static var instead of in a
thread_local!
block.Code
Meta
Error output
Backtrace
The text was updated successfully, but these errors were encountered: