File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -492,7 +492,7 @@ impl Interner {
492
492
if ( symbol. 0 . as_usize ( ) ) < self . strings . len ( ) {
493
493
symbol
494
494
} else {
495
- self . interned ( self . gensyms [ ( SymbolIndex :: MAX_AS_U32 - symbol. 0 . as_u32 ( ) ) as usize ] )
495
+ self . gensyms [ ( SymbolIndex :: MAX_AS_U32 - symbol. 0 . as_u32 ( ) ) as usize ]
496
496
}
497
497
}
498
498
@@ -513,7 +513,10 @@ impl Interner {
513
513
pub fn get ( & self , symbol : Symbol ) -> & str {
514
514
match self . strings . get ( symbol. 0 . as_usize ( ) ) {
515
515
Some ( string) => string,
516
- None => self . get ( self . gensyms [ ( SymbolIndex :: MAX_AS_U32 - symbol. 0 . as_u32 ( ) ) as usize ] ) ,
516
+ None => {
517
+ let symbol = self . gensyms [ ( SymbolIndex :: MAX_AS_U32 - symbol. 0 . as_u32 ( ) ) as usize ] ;
518
+ self . strings [ symbol. 0 . as_usize ( ) ]
519
+ }
517
520
}
518
521
}
519
522
}
You can’t perform that action at this time.
0 commit comments