mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-10-30 03:27:44 +00:00 
			
		
		
		
	Merge pull request #19461 from Hmikihiro/shadow_by_module
fix: shadow type by module
This commit is contained in:
		
						commit
						f880acd18c
					
				
					 6 changed files with 180 additions and 7 deletions
				
			
		|  | @ -1527,6 +1527,7 @@ fn resolve_hir_path_( | |||
|             TypeNs::BuiltinType(it) => PathResolution::Def(BuiltinType::from(it).into()), | ||||
|             TypeNs::TraitId(it) => PathResolution::Def(Trait::from(it).into()), | ||||
|             TypeNs::TraitAliasId(it) => PathResolution::Def(TraitAlias::from(it).into()), | ||||
|             TypeNs::ModuleId(it) => PathResolution::Def(ModuleDef::Module(it.into())), | ||||
|         }; | ||||
|         match unresolved { | ||||
|             Some(unresolved) => resolver | ||||
|  | @ -1654,6 +1655,7 @@ fn resolve_hir_path_qualifier( | |||
|             TypeNs::BuiltinType(it) => PathResolution::Def(BuiltinType::from(it).into()), | ||||
|             TypeNs::TraitId(it) => PathResolution::Def(Trait::from(it).into()), | ||||
|             TypeNs::TraitAliasId(it) => PathResolution::Def(TraitAlias::from(it).into()), | ||||
|             TypeNs::ModuleId(it) => PathResolution::Def(ModuleDef::Module(it.into())), | ||||
|         }; | ||||
|         match unresolved { | ||||
|             Some(unresolved) => resolver | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lukas Wirth
						Lukas Wirth