@@ -14,7 +14,7 @@ use crate::traits::*;
1414
1515use std:: borrow:: Cow ;
1616
17- use syntax:: symbol:: LocalInternedString ;
17+ use syntax:: symbol:: Symbol ;
1818use syntax_pos:: Pos ;
1919
2020use super :: { FunctionCx , LocalRef } ;
@@ -397,7 +397,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
397397
398398 // Get the location information.
399399 let loc = bx. sess ( ) . source_map ( ) . lookup_char_pos ( span. lo ( ) ) ;
400- let filename = LocalInternedString :: intern ( & loc. file . name . to_string ( ) ) ;
400+ let filename = Symbol :: intern ( & loc. file . name . to_string ( ) ) ;
401401 let line = bx. const_u32 ( loc. line as u32 ) ;
402402 let col = bx. const_u32 ( loc. col . to_usize ( ) as u32 + 1 ) ;
403403
@@ -418,8 +418,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
418418 vec ! [ file_line_col, index, len] )
419419 }
420420 _ => {
421- let str = msg. description ( ) ;
422- let msg_str = LocalInternedString :: intern ( str) ;
421+ let msg_str = Symbol :: intern ( msg. description ( ) ) ;
423422 let msg_file_line_col = bx. static_panic_msg (
424423 Some ( msg_str) ,
425424 filename,
@@ -531,15 +530,15 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
531530 let layout = bx. layout_of ( ty) ;
532531 if layout. abi . is_uninhabited ( ) {
533532 let loc = bx. sess ( ) . source_map ( ) . lookup_char_pos ( span. lo ( ) ) ;
534- let filename = LocalInternedString :: intern ( & loc. file . name . to_string ( ) ) ;
533+ let filename = Symbol :: intern ( & loc. file . name . to_string ( ) ) ;
535534 let line = bx. const_u32 ( loc. line as u32 ) ;
536535 let col = bx. const_u32 ( loc. col . to_usize ( ) as u32 + 1 ) ;
537536
538537 let str = format ! (
539538 "Attempted to instantiate uninhabited type {}" ,
540539 ty
541540 ) ;
542- let msg_str = LocalInternedString :: intern ( & str) ;
541+ let msg_str = Symbol :: intern ( & str) ;
543542 let msg_file_line_col = bx. static_panic_msg (
544543 Some ( msg_str) ,
545544 filename,
0 commit comments