about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorZack M. Davis <code@zackmdavis.net>2019-07-06 19:41:12 -0700
committerZack M. Davis <code@zackmdavis.net>2019-08-06 21:00:46 -0700
commitd1cdb02e4d408bc9be293e081ba0116f9f7670f6 (patch)
treea59360bd02e63c58cf50cd0f9ec4c5783d6c38d1 /src/test/debuginfo/enum-thinlto.rs
parentc326c2e0f1761d133f295a8fe6d2b5a0b7ac6f91 (diff)
downloadrust-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/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions