diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-04-01 00:27:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-01 00:27:20 +0200 |
| commit | 8993358e77b82a3c8745c1200c2ac5f3640a7053 (patch) | |
| tree | 35fd72dd3b901f33e364a04d80f7e823024eca24 /src/test/ui/array-slice-vec | |
| parent | 718ba0d23bc13cd987acbb1b2286552eeee88a1d (diff) | |
| parent | bab327c725bf084d0ec5c27527588b71b0a1ab1d (diff) | |
| download | rust-8993358e77b82a3c8745c1200c2ac5f3640a7053.tar.gz rust-8993358e77b82a3c8745c1200c2ac5f3640a7053.zip | |
Rollup merge of #70081 - lcnr:issue68387, r=varkor
add `unused_braces` lint Add the lint `unused_braces` which is warn by default. `unused_parens` is also extended and now checks anon consts. closes #68387 r? @varkor
Diffstat (limited to 'src/test/ui/array-slice-vec')
| -rw-r--r-- | src/test/ui/array-slice-vec/vec-fixed-length.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/array-slice-vec/vec-fixed-length.rs b/src/test/ui/array-slice-vec/vec-fixed-length.rs index 5db02ee066b..908c39c7951 100644 --- a/src/test/ui/array-slice-vec/vec-fixed-length.rs +++ b/src/test/ui/array-slice-vec/vec-fixed-length.rs @@ -9,7 +9,7 @@ fn test_big_vec() {} #[cfg(target_pointer_width = "64")] fn test_big_vec() { - assert_eq!(size_of::<[u8; (1 << 32)]>(), (1 << 32)); + assert_eq!(size_of::<[u8; 1 << 32]>(), (1 << 32)); } fn main() { |
