-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
debuginfo: Fix type description generic enum discriminants. #27070
Conversation
r? @Aatch (rust_highfive has picked a reviewer for you, use r? to override) |
Something wrong with this sentence |
This might be causing a test failure http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/5712 |
⌛ Testing commit f9a20bb with merge b465213... |
@bors r- |
@bors r- force (fails tests) |
I'm gonna land this as part of #27076 and just ignore the LLDB half of things for now (this is being tested on gdb and fixes bugs elsewhere in the upgrade). I'll open an issue about dealing with the LLDB failure, however, so we can be sure to keep track of it as it definitely looks like it should be investigated! |
Sure! (was just r-ing so it won't clog up the queue 😄 ) |
This fixes an issue that @alexcrichton found while trying to upgrade LLVM: So far the code has assumed that the type of a generic enum's discriminant always was the same, regardless of any type arguments. This is not true. An
Option<i16>
will have a 16 bit discriminant, while anOption<i32>
will have a 32 bit discriminant. This PR fixes this.