@@ -1660,7 +1660,13 @@ impl<'a> Resolver<'a> {
1660
1660
PathResult :: Module ( module) => * def = module. def ( ) . unwrap ( ) ,
1661
1661
PathResult :: NonModule ( path_res) if path_res. unresolved_segments ( ) == 0 =>
1662
1662
* 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
+ ) {
1664
1670
PathResult :: Failed ( span, msg, _) => {
1665
1671
error_callback ( self , span, ResolutionError :: FailedToResolve ( & msg) ) ;
1666
1672
}
@@ -3175,7 +3181,13 @@ impl<'a> Resolver<'a> {
3175
3181
) ) ;
3176
3182
}
3177
3183
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
+ ) {
3179
3191
PathResult :: NonModule ( path_res) => path_res,
3180
3192
PathResult :: Module ( module) if !module. is_normal ( ) => {
3181
3193
PathResolution :: new ( module. def ( ) . unwrap ( ) )
@@ -3212,7 +3224,13 @@ impl<'a> Resolver<'a> {
3212
3224
path[ 0 ] . name != keywords:: CrateRoot . name ( ) &&
3213
3225
path[ 0 ] . name != keywords:: DollarCrate . name ( ) {
3214
3226
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
+ ) {
3216
3234
PathResult :: NonModule ( path_res) => path_res. base_def ( ) ,
3217
3235
PathResult :: Module ( module) => module. def ( ) . unwrap ( ) ,
3218
3236
_ => return Some ( result) ,
0 commit comments