Rollup merge of #92469 - joshtriplett:test-number-fix, r=Mark-Simulacrum

Make tidy check for magic numbers that spell things

Remove existing problematic cases.

r? `@Mark-Simulacrum`
This commit is contained in:
Matthias Krüger 2022-01-01 10:48:58 +01:00 committed by GitHub
commit 4bd4e271e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 27 additions and 12 deletions

View file

@ -31,7 +31,7 @@ static mut frobulator: usize = 0xdeadbeef;
pub fn main() {
unsafe {
frobulator = 0xcafebabe;
frobulator = 0x12345678;
println!("{} {} {}", i_live_in_more_text(), magic, frobulator);
}
}