@@ -499,6 +499,11 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
499
499
// resolution for it so that later resolve stages won't complain.
500
500
self . import_dummy_binding ( import) ;
501
501
if !seen_spans. contains ( & span) {
502
+ info ! (
503
+ "preparing to import_path_to_string(import={:?}, span={:?})" ,
504
+ import,
505
+ span
506
+ ) ;
502
507
let path = import_path_to_string ( & import. module_path [ ..] ,
503
508
& import. subclass ,
504
509
span) ;
@@ -1015,6 +1020,14 @@ impl<'a, 'b:'a> ImportResolver<'a, 'b> {
1015
1020
fn import_path_to_string ( names : & [ SpannedIdent ] ,
1016
1021
subclass : & ImportDirectiveSubclass ,
1017
1022
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
+ ) ;
1018
1031
let pos = names. iter ( )
1019
1032
. position ( |p| span == p. span && p. node . name != keywords:: CrateRoot . name ( ) ) ;
1020
1033
let global = !names. is_empty ( ) && names[ 0 ] . node . name == keywords:: CrateRoot . name ( ) ;
@@ -1039,11 +1052,12 @@ fn import_path_to_string(names: &[SpannedIdent],
1039
1052
if names. is_empty ( ) || x. starts_with ( "::" ) {
1040
1053
span_bug ! (
1041
1054
span,
1042
- "invalid name `{}` at {:?}; global = {}, names = {:? }, subclass = {:?}" ,
1055
+ "invalid name `{}` at {:?}; global = {}, names = {:p}/{ }, subclass = {:?}" ,
1043
1056
x,
1044
1057
span,
1045
1058
global,
1046
- names,
1059
+ names. as_ptr( ) ,
1060
+ names. len( ) ,
1047
1061
subclass
1048
1062
) ;
1049
1063
}
0 commit comments