-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Implement argument-dependent target checking for the #[repr] parser
#157215
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
base: main
Are you sure you want to change the base?
Changes from all commits
87a08b1
b40c43d
a78d218
80d33c7
79e666b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,12 @@ | ||
| #### Note: this error code is no longer emitted by the compiler. | ||
| This error code was replaced with the | ||
| `attribute cannot be used on...` diagnostic that does not have an error code. | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same with the other PR, please direct to the new error code.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is no new error code, the new diagnostic doesn't have one :p. |
||
| A `#[repr(..)]` attribute was placed on an unsupported item. | ||
|
|
||
| Examples of erroneous code: | ||
|
|
||
| ```compile_fail,E0517 | ||
| ```compile_fail | ||
| #[repr(C)] | ||
| type Foo = u8; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.