@@ -1660,7 +1660,13 @@ impl<'a> Resolver<'a> {
16601660 PathResult :: Module ( module) => * def = module. def ( ) . unwrap ( ) ,
16611661 PathResult :: NonModule ( path_res) if path_res. unresolved_segments ( ) == 0 =>
16621662 * def = path_res. base_def ( ) ,
1663- PathResult :: NonModule ( ..) => match self . resolve_path ( & path, None , true , span, CrateLint :: No ) {
1663+ PathResult :: NonModule ( ..) => match self . resolve_path (
1664+ & path,
1665+ None ,
1666+ true ,
1667+ span,
1668+ CrateLint :: No ,
1669+ ) {
16641670 PathResult :: Failed ( span, msg, _) => {
16651671 error_callback ( self , span, ResolutionError :: FailedToResolve ( & msg) ) ;
16661672 }
@@ -3175,7 +3181,13 @@ impl<'a> Resolver<'a> {
31753181 ) ) ;
31763182 }
31773183
3178- let result = match self . resolve_path ( & path, Some ( ns) , true , span, CrateLint :: SimplePath ( id) ) {
3184+ let result = match self . resolve_path (
3185+ & path,
3186+ Some ( ns) ,
3187+ true ,
3188+ span,
3189+ CrateLint :: SimplePath ( id) ,
3190+ ) {
31793191 PathResult :: NonModule ( path_res) => path_res,
31803192 PathResult :: Module ( module) if !module. is_normal ( ) => {
31813193 PathResolution :: new ( module. def ( ) . unwrap ( ) )
@@ -3212,7 +3224,13 @@ impl<'a> Resolver<'a> {
32123224 path[ 0 ] . name != keywords:: CrateRoot . name ( ) &&
32133225 path[ 0 ] . name != keywords:: DollarCrate . name ( ) {
32143226 let unqualified_result = {
3215- match self . resolve_path ( & [ * path. last ( ) . unwrap ( ) ] , Some ( ns) , false , span, CrateLint :: No ) {
3227+ match self . resolve_path (
3228+ & [ * path. last ( ) . unwrap ( ) ] ,
3229+ Some ( ns) ,
3230+ false ,
3231+ span,
3232+ CrateLint :: No ,
3233+ ) {
32163234 PathResult :: NonModule ( path_res) => path_res. base_def ( ) ,
32173235 PathResult :: Module ( module) => module. def ( ) . unwrap ( ) ,
32183236 _ => return Some ( result) ,
0 commit comments