about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-08-08 18:57:02 +0200
committerGitHub <noreply@github.com>2024-08-08 18:57:02 +0200
commit25fc71b7a108dcb75b3c5336c6c88995f391f333 (patch)
treefa21b212964bc941d7a66ed0103d5820c868c638 /compiler/rustc_codegen_llvm/src/errors.rs
parent127fbc8481a173fc867bd80feaa2615575a6412f (diff)
parent7869400e589ca4e88cebb1da80a420f8e9042cdf (diff)
downloadrust-25fc71b7a108dcb75b3c5336c6c88995f391f333.tar.gz
rust-25fc71b7a108dcb75b3c5336c6c88995f391f333.zip
Rollup merge of #128795 - zachs18:e0517-update-for-rfc-2195, r=jieyouxu
Update E0517 message to reflect RFC 2195.

E0517 occurs when a `#[repr(..)]` attribute is placed on an unsupported item. Currently, the explanation of the error implies that `#[repr(u*/i*)]` cannot be placed on fieldful enums, which is no longer the case since [RFC 2195](https://github.com/rust-lang/rfcs/pull/2195) was [stabilized](https://github.com/rust-lang/rust/issues/60553), which allows placing `#[repr(u*/i*)]` and/or `#[repr(C)]` on fieldful enums to produce a defined layout.

This PR doesn't (currently) add a description of the semantics of placing `#[repr(u*/i*)]` on a fieldful enum to the error explanation, it just removes the claims/implications that it is not allowed.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions