@@ -14,7 +14,7 @@ use crate::traits::*;
14
14
15
15
use std:: borrow:: Cow ;
16
16
17
- use syntax:: symbol:: LocalInternedString ;
17
+ use syntax:: symbol:: Symbol ;
18
18
use syntax_pos:: Pos ;
19
19
20
20
use super :: { FunctionCx , LocalRef } ;
@@ -397,7 +397,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
397
397
398
398
// Get the location information.
399
399
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 ( ) ) ;
401
401
let line = bx. const_u32 ( loc. line as u32 ) ;
402
402
let col = bx. const_u32 ( loc. col . to_usize ( ) as u32 + 1 ) ;
403
403
@@ -418,8 +418,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
418
418
vec ! [ file_line_col, index, len] )
419
419
}
420
420
_ => {
421
- let str = msg. description ( ) ;
422
- let msg_str = LocalInternedString :: intern ( str) ;
421
+ let msg_str = Symbol :: intern ( msg. description ( ) ) ;
423
422
let msg_file_line_col = bx. static_panic_msg (
424
423
Some ( msg_str) ,
425
424
filename,
@@ -531,15 +530,15 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
531
530
let layout = bx. layout_of ( ty) ;
532
531
if layout. abi . is_uninhabited ( ) {
533
532
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 ( ) ) ;
535
534
let line = bx. const_u32 ( loc. line as u32 ) ;
536
535
let col = bx. const_u32 ( loc. col . to_usize ( ) as u32 + 1 ) ;
537
536
538
537
let str = format ! (
539
538
"Attempted to instantiate uninhabited type {}" ,
540
539
ty
541
540
) ;
542
- let msg_str = LocalInternedString :: intern ( & str) ;
541
+ let msg_str = Symbol :: intern ( & str) ;
543
542
let msg_file_line_col = bx. static_panic_msg (
544
543
Some ( msg_str) ,
545
544
filename,
0 commit comments