Skip to content

Conversation

@Veykril
Copy link
Member

@Veykril Veykril commented Aug 2, 2023

Adding these doesn't really require much design effort as they represent a single import, unlike use trees which are one item that represent 0 or more imports.

We only resolve to this definition when actually resolving on the name or alias of an extern crate name as alias item, not usages yet as that requires far more changes that won't lead anywhere without giving it more thought. Nevertheless the changes slightly improve IDE things, an example being hover on the decl showing the merged doc comments for example.

cc #14079

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 2, 2023
@Veykril
Copy link
Member Author

Veykril commented Aug 2, 2023

@bors r+

@bors
Copy link
Contributor

bors commented Aug 2, 2023

📌 Commit 6e2c3f6 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Aug 2, 2023

⌛ Testing commit 6e2c3f6 with merge 12cb6e7...

@Veykril Veykril changed the title Add ExternCrateDecl to HIR internal: Record extern crate declarations in the HIR Aug 2, 2023
@bors
Copy link
Contributor

bors commented Aug 2, 2023

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 12cb6e7 to master...

@bors bors merged commit 12cb6e7 into rust-lang:master Aug 2, 2023
@Veykril Veykril deleted the extern-crate-decl branch August 18, 2023 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants