Skip to content

Commit b3810f6

Browse files
committed
Add i/u size
1 parent 9a80c2b commit b3810f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_lint/builtin.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -697,8 +697,8 @@ impl EarlyLintPass for BadRepr {
697697
// avoid warning about empty `repr` on `#[repr = "foo"]`
698698
let sp = match format!("{}", lit).as_ref() {
699699
| "C" | "packed" | "rust" | "transparent"
700-
| "u8" | "u16" | "u32" | "u64" | "u128"
701-
| "i8" | "i16" | "i32" | "i64" | "i128" => {
700+
| "u8" | "u16" | "u32" | "u64" | "u128" | "usize"
701+
| "i8" | "i16" | "i32" | "i64" | "i128" | "isize" => {
702702
let lo = attr.span.lo() + BytePos(2);
703703
let hi = attr.span.hi() - BytePos(1);
704704
suggested = true;

0 commit comments

Comments
 (0)