@@ -32,8 +32,8 @@ use crate::{HashStableContext, Span, DUMMY_SP};
32
32
use crate :: def_id:: { CrateNum , DefId , StableCrateId , CRATE_DEF_ID , LOCAL_CRATE } ;
33
33
use rustc_data_structures:: fingerprint:: Fingerprint ;
34
34
use rustc_data_structures:: fx:: { FxHashMap , FxHashSet } ;
35
- use rustc_data_structures:: stable_hasher:: { HashStable , StableHasher , NodeIdHashingMode } ;
36
35
use rustc_data_structures:: stable_hasher:: HashingControls ;
36
+ use rustc_data_structures:: stable_hasher:: { HashStable , NodeIdHashingMode , StableHasher } ;
37
37
use rustc_data_structures:: sync:: { Lock , Lrc } ;
38
38
use rustc_data_structures:: unhash:: UnhashMap ;
39
39
use rustc_index:: vec:: IndexVec ;
@@ -94,11 +94,9 @@ rustc_index::newtype_index! {
94
94
// with a non-default mode. With this check in place, we can avoid the need
95
95
// to maintain separate versions of `ExpnData` hashes for each permutation
96
96
// of `HashingControls` settings.
97
- fn assert_default_hashing_controls < CTX : HashStableContext > ( ctx : & CTX , msg : & str ) {
98
- let default = HashingControls {
99
- hash_spans : true ,
100
- node_id_hashing_mode : NodeIdHashingMode :: HashDefPath
101
- } ;
97
+ fn assert_default_hashing_controls < CTX : HashStableContext > ( ctx : & CTX , _msg : & str ) {
98
+ let default =
99
+ HashingControls { hash_spans : true , node_id_hashing_mode : NodeIdHashingMode :: HashDefPath } ;
102
100
let current = ctx. hashing_controls ( ) ;
103
101
if current != default {
104
102
//panic!("Attempted hashing of {msg} with non-default HashingControls: {:?}", current);
0 commit comments