diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2022-09-07 07:43:54 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-07 07:43:54 +0900 |
| commit | f68d05cf0042017806f2122e61440ca80d86e806 (patch) | |
| tree | 3b687730014b3834f971bbb44bc9c8bc60088b6e /compiler/rustc_passes/src | |
| parent | 1d49dcec10b068bf890de239c771976ac3e53b05 (diff) | |
| parent | ad275f50967854050857d181da7694a95bc4173f (diff) | |
| download | rust-f68d05cf0042017806f2122e61440ca80d86e806.tar.gz rust-f68d05cf0042017806f2122e61440ca80d86e806.zip | |
Rollup merge of #101486 - asquared31415:invalid_repr_list, r=estebank
Add list of recognized repr attributes to the unrecognized repr error
Diffstat (limited to 'compiler/rustc_passes/src')
| -rw-r--r-- | compiler/rustc_passes/src/check_attr.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs index a63af4159e8..d0b46aa2c45 100644 --- a/compiler/rustc_passes/src/check_attr.rs +++ b/compiler/rustc_passes/src/check_attr.rs @@ -1651,6 +1651,7 @@ impl CheckAttrVisitor<'_> { E0552, "unrecognized representation hint" ) + .help("valid reprs are `C`, `align`, `packed`, `transparent`, `simd`, `i8`, `u8`, `i16`, `u16`, `i32`, `u32`, `i64`, `u64`, `i128`, `u128`, `isize`, `usize`") .emit(); continue; |
