File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ impl<'a> From<AstKind2<'a>> for DepAtom {
3232
3333impl From < DepAtom > for AstKind2 < ' _ > {
3434 fn from ( val : DepAtom ) -> Self {
35- unsafe { std:: mem:: transmute ( val. 0 ) }
35+ unsafe { std:: mem:: transmute :: < ( usize , usize ) , AstKind2 < ' _ > > ( val. 0 ) }
3636 }
3737}
3838
Original file line number Diff line number Diff line change @@ -114,9 +114,8 @@ impl<'a> Analyzer<'a> {
114114}
115115
116116impl < ' a > Transformer < ' a > {
117- pub fn build_folded_expr ( & self , node : impl Into < DepAtom > ) -> Option < Expression < ' a > > {
118- let node = node. into ( ) ;
119- let data = self . folder . nodes . get ( & node) ?. borrow ( ) ;
117+ pub fn build_folded_expr ( & self , node : AstKind2 ) -> Option < Expression < ' a > > {
118+ let data = self . folder . nodes . get ( & node. into ( ) ) ?. borrow ( ) ;
120119 data. state . get_foldable_literal ( ) . map ( |literal| {
121120 let span = node. span ( ) ;
122121 let mangle_atom = data. used_mangle_atoms . first ( ) . copied ( ) ;
You can’t perform that action at this time.
0 commit comments