diff options
| author | Zack M. Davis <code@zackmdavis.net> | 2019-07-06 19:41:12 -0700 |
|---|---|---|
| committer | Zack M. Davis <code@zackmdavis.net> | 2019-08-06 21:00:46 -0700 |
| commit | d1cdb02e4d408bc9be293e081ba0116f9f7670f6 (patch) | |
| tree | a59360bd02e63c58cf50cd0f9ec4c5783d6c38d1 /src/test/ui/refutable-pattern-errors.stderr | |
| parent | c326c2e0f1761d133f295a8fe6d2b5a0b7ac6f91 (diff) | |
| download | rust-d1cdb02e4d408bc9be293e081ba0116f9f7670f6.tar.gz rust-d1cdb02e4d408bc9be293e081ba0116f9f7670f6.zip | |
pretty-pretty extremal constants!
While many programmers may intuitively appreciate the significance of "magic numbers" like −2147483648, Rust is about empowering everyone to build reliable and efficient software! It's a bit more legible to print the constant names (even noisy fully-qualified-paths thereof). The bit-manipulation methods mirror those in `librustc_mir::hair::pattern::_match::all_constructors`; thanks to the immortal Varkor for guidance. Resolves #56393.
Diffstat (limited to 'src/test/ui/refutable-pattern-errors.stderr')
| -rw-r--r-- | src/test/ui/refutable-pattern-errors.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/refutable-pattern-errors.stderr b/src/test/ui/refutable-pattern-errors.stderr index b7001e34d54..c67ae7c6d48 100644 --- a/src/test/ui/refutable-pattern-errors.stderr +++ b/src/test/ui/refutable-pattern-errors.stderr @@ -4,11 +4,11 @@ error[E0005]: refutable pattern in function argument: `(_, _)` not covered LL | fn func((1, (Some(1), 2..=3)): (isize, (Option<isize>, isize))) { } | ^^^^^^^^^^^^^^^^^^^^^ pattern `(_, _)` not covered -error[E0005]: refutable pattern in local binding: `(-2147483648i32..=0i32, _)` not covered +error[E0005]: refutable pattern in local binding: `(std::i32::MIN..=0i32, _)` not covered --> $DIR/refutable-pattern-errors.rs:5:9 | LL | let (1, (Some(1), 2..=3)) = (1, (None, 2)); - | ^^^^^^^^^^^^^^^^^^^^^ pattern `(-2147483648i32..=0i32, _)` not covered + | ^^^^^^^^^^^^^^^^^^^^^ pattern `(std::i32::MIN..=0i32, _)` not covered error: aborting due to 2 previous errors |
