We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a80c2b commit b3810f6Copy full SHA for b3810f6
src/librustc_lint/builtin.rs
@@ -697,8 +697,8 @@ impl EarlyLintPass for BadRepr {
697
// avoid warning about empty `repr` on `#[repr = "foo"]`
698
let sp = match format!("{}", lit).as_ref() {
699
| "C" | "packed" | "rust" | "transparent"
700
- | "u8" | "u16" | "u32" | "u64" | "u128"
701
- | "i8" | "i16" | "i32" | "i64" | "i128" => {
+ | "u8" | "u16" | "u32" | "u64" | "u128" | "usize"
+ | "i8" | "i16" | "i32" | "i64" | "i128" | "isize" => {
702
let lo = attr.span.lo() + BytePos(2);
703
let hi = attr.span.hi() - BytePos(1);
704
suggested = true;
0 commit comments