Skip to content

Commit

Permalink
Only allow repr(i128/u128) on enum
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdd0121 committed Jul 6, 2020
1 parent 0cd7ff7 commit 5702e02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc_passes/check_attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ impl CheckAttrVisitor<'tcx> {
| sym::u32
| sym::i64
| sym::u64
| sym::i128
| sym::u128
| sym::isize
| sym::usize => {
int_reprs += 1;
Expand Down

0 comments on commit 5702e02

Please sign in to comment.