File tree 2 files changed +9
-9
lines changed
hir-def/src/macro_expansion_tests
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -396,18 +396,18 @@ enum Command {
396
396
}
397
397
398
398
impl < > core::hash::Hash for Command< > where {
399
- fn hash<H: core::hash::Hasher>(&self , state : &mut H) {
400
- core::mem::discriminant(self ).hash(state );
399
+ fn hash<H: core::hash::Hasher>(&self , ra_expand_state : &mut H) {
400
+ core::mem::discriminant(self ).hash(ra_expand_state );
401
401
match self {
402
402
Command::Move {
403
403
x: x, y: y,
404
404
}
405
405
=> {
406
- x.hash(state );
407
- y.hash(state );
406
+ x.hash(ra_expand_state );
407
+ y.hash(ra_expand_state );
408
408
}
409
409
, Command::Do(f0, )=> {
410
- f0.hash(state );
410
+ f0.hash(ra_expand_state );
411
411
}
412
412
, Command::Jump=> {}
413
413
,
Original file line number Diff line number Diff line change @@ -613,15 +613,15 @@ fn hash_expand(
613
613
span : tt:: TokenId :: unspecified ( ) ,
614
614
} ;
615
615
return quote ! {
616
- fn hash<H : #krate:: hash:: Hasher >( & self , state : & mut H ) {
616
+ fn hash<H : #krate:: hash:: Hasher >( & self , ra_expand_state : & mut H ) {
617
617
match #star self { }
618
618
}
619
619
} ;
620
620
}
621
621
let arms = adt. shape . as_pattern ( & adt. name ) . into_iter ( ) . zip ( adt. shape . field_names ( ) ) . map (
622
622
|( pat, names) | {
623
623
let expr = {
624
- let it = names. iter ( ) . map ( |x| quote ! { #x . hash( state ) ; } ) ;
624
+ let it = names. iter ( ) . map ( |x| quote ! { #x . hash( ra_expand_state ) ; } ) ;
625
625
quote ! { {
626
626
##it
627
627
} }
@@ -633,8 +633,8 @@ fn hash_expand(
633
633
} ,
634
634
) ;
635
635
quote ! {
636
- fn hash<H : #krate:: hash:: Hasher >( & self , state : & mut H ) {
637
- #krate:: mem:: discriminant( self ) . hash( state ) ;
636
+ fn hash<H : #krate:: hash:: Hasher >( & self , ra_expand_state : & mut H ) {
637
+ #krate:: mem:: discriminant( self ) . hash( ra_expand_state ) ;
638
638
match self {
639
639
##arms
640
640
}
You can’t perform that action at this time.
0 commit comments