@@ -499,6 +499,11 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
499499 // resolution for it so that later resolve stages won't complain.
500500 self . import_dummy_binding ( import) ;
501501 if !seen_spans. contains ( & span) {
502+ info ! (
503+ "preparing to import_path_to_string(import={:?}, span={:?})" ,
504+ import,
505+ span
506+ ) ;
502507 let path = import_path_to_string ( & import. module_path [ ..] ,
503508 & import. subclass ,
504509 span) ;
@@ -1015,6 +1020,14 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
10151020fn import_path_to_string ( names : & [ SpannedIdent ] ,
10161021 subclass : & ImportDirectiveSubclass ,
10171022 span : Span ) -> String {
1023+ info ! (
1024+ "import_path_to_string(names={:?} ({:p}/{}), subclass={:?}, span={:?})" ,
1025+ names,
1026+ names. as_ptr( ) ,
1027+ names. len( ) ,
1028+ subclass,
1029+ span,
1030+ ) ;
10181031 let pos = names. iter ( )
10191032 . position ( |p| span == p. span && p. node . name != keywords:: CrateRoot . name ( ) ) ;
10201033 let global = !names. is_empty ( ) && names[ 0 ] . node . name == keywords:: CrateRoot . name ( ) ;
@@ -1039,11 +1052,12 @@ fn import_path_to_string(names: &[SpannedIdent],
10391052 if names. is_empty ( ) || x. starts_with ( "::" ) {
10401053 span_bug ! (
10411054 span,
1042- "invalid name `{}` at {:?}; global = {}, names = {:? }, subclass = {:?}" ,
1055+ "invalid name `{}` at {:?}; global = {}, names = {:p}/{ }, subclass = {:?}" ,
10431056 x,
10441057 span,
10451058 global,
1046- names,
1059+ names. as_ptr( ) ,
1060+ names. len( ) ,
10471061 subclass
10481062 ) ;
10491063 }
0 commit comments