-
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
ICE on invalid rustc_layout_scalar_valid_range_start
attribute
#82981
Comments
This isn't really a bug, it's just that it has bad diagnostics because it uses |
MCVE: #![feature(rustc_attrs)]
#[rustc_layout_scalar_valid_range_start(A)]
struct T {}
const C: T = T {}; |
rustc_layout_scalar_valid_range_start
attribute
Should I exclude all test programs that have a line starting with Thanks. |
I don't personally feel comfortable setting a policy that we'll never fix ICEs with
Note that this isn't sufficient to catch programs that have an attribute, you can have arbitrary macros that play with conditional compilation, like |
May not be that important, due to the use of a perma-unstable attribute. Issue: rust-lang/rust#82981
…ange, r=davidtwco Validate rustc_layout_scalar_valid_range_{start,end} attributes Fixes rust-lang#82251, rust-lang#82981.
…ange, r=davidtwco Validate rustc_layout_scalar_valid_range_{start,end} attributes Fixes rust-lang#82251, fixes rust-lang#82981.
…ange, r=davidtwco Validate rustc_layout_scalar_valid_range_{start,end} attributes Fixes rust-lang#82251, fixes rust-lang#82981.
…ange, r=davidtwco Validate rustc_layout_scalar_valid_range_{start,end} attributes Fixes rust-lang#82251, fixes rust-lang#82981.
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: