File tree 4 files changed +8
-22
lines changed
compiler/rustc_data_structures/src
4 files changed +8
-22
lines changed Original file line number Diff line number Diff line change @@ -409,20 +409,6 @@ impl SipHasher128 {
409
409
}
410
410
}
411
411
412
- macro_rules! dispatch_value {
413
- ( $target: expr, $value: expr) => {
414
- let value = $value;
415
- #[ allow( unreachable_patterns) ]
416
- #[ allow( overflowing_literals) ]
417
- match value {
418
- 0 ..=0xFF => $target. short_write( value as u8 ) ,
419
- 0x100 ..=0xFFFF => $target. short_write( value as u16 ) ,
420
- 0x10000 ..=0xFFFFFFFF => $target. short_write( value as u32 ) ,
421
- _ => $target. short_write( value as u64 ) ,
422
- }
423
- } ;
424
- }
425
-
426
412
impl Hasher for SipHasher128 {
427
413
#[ inline]
428
414
fn write_u8 ( & mut self , i : u8 ) {
@@ -436,7 +422,7 @@ impl Hasher for SipHasher128 {
436
422
437
423
#[ inline]
438
424
fn write_u32 ( & mut self , i : u32 ) {
439
- dispatch_value ! ( self , i) ;
425
+ self . short_write ( i) ;
440
426
}
441
427
442
428
#[ inline]
@@ -466,7 +452,7 @@ impl Hasher for SipHasher128 {
466
452
467
453
#[ inline]
468
454
fn write_i64 ( & mut self , i : i64 ) {
469
- dispatch_value ! ( self , i as u64 ) ;
455
+ self . short_write ( i as u64 ) ;
470
456
}
471
457
472
458
#[ inline]
Original file line number Diff line number Diff line change 37
37
// Const generic parameter
38
38
// gdb-command:info functions -q function_names::const_generic_fn.*
39
39
// gdb-check:[...]static fn function_names::const_generic_fn_bool<false>();
40
- // gdb-check:[...]static fn function_names::const_generic_fn_non_int<{CONST#3fcd7c34c1555be6 }>();
40
+ // gdb-check:[...]static fn function_names::const_generic_fn_non_int<{CONST#fe3cfa0214ac55c7 }>();
41
41
// gdb-check:[...]static fn function_names::const_generic_fn_signed_int<-7>();
42
42
// gdb-check:[...]static fn function_names::const_generic_fn_unsigned_int<14>();
43
43
76
76
// Const generic parameter
77
77
// cdb-command:x a!function_names::const_generic_fn*
78
78
// cdb-check:[...] a!function_names::const_generic_fn_bool<false> (void)
79
- // cdb-check:[...] a!function_names::const_generic_fn_non_int<CONST$3fcd7c34c1555be6 > (void)
79
+ // cdb-check:[...] a!function_names::const_generic_fn_non_int<CONST$fe3cfa0214ac55c7 > (void)
80
80
// cdb-check:[...] a!function_names::const_generic_fn_unsigned_int<14> (void)
81
81
// cdb-check:[...] a!function_names::const_generic_fn_signed_int<-7> (void)
82
82
Original file line number Diff line number Diff line change 1
- error: symbol-name(_ZN5basic4main17h13492e1c4157543fE )
1
+ error: symbol-name(_ZN5basic4main17h7c2c715a9b77648bE )
2
2
--> $DIR/basic.rs:8:1
3
3
|
4
4
LL | #[rustc_symbol_name]
5
5
| ^^^^^^^^^^^^^^^^^^^^
6
6
7
- error: demangling(basic::main::h13492e1c4157543f )
7
+ error: demangling(basic::main::h7c2c715a9b77648b )
8
8
--> $DIR/basic.rs:8:1
9
9
|
10
10
LL | #[rustc_symbol_name]
Original file line number Diff line number Diff line change 1
- error: symbol-name(_ZN11issue_609253foo37Foo$LT$issue_60925..llv$u6d$..Foo$GT$3foo17hd250581ce0d79d13E )
1
+ error: symbol-name(_ZN11issue_609253foo37Foo$LT$issue_60925..llv$u6d$..Foo$GT$3foo17h419983d0842a72aeE )
2
2
--> $DIR/issue-60925.rs:21:9
3
3
|
4
4
LL | #[rustc_symbol_name]
5
5
| ^^^^^^^^^^^^^^^^^^^^
6
6
7
- error: demangling(issue_60925::foo::Foo<issue_60925::llvm::Foo>::foo::hd250581ce0d79d13 )
7
+ error: demangling(issue_60925::foo::Foo<issue_60925::llvm::Foo>::foo::h419983d0842a72ae )
8
8
--> $DIR/issue-60925.rs:21:9
9
9
|
10
10
LL | #[rustc_symbol_name]
You can’t perform that action at this time.
0 commit comments