Skip to content

fix: Fix modules in blocks not resolving in ide layer #16679

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Feb 26, 2024

Fixes #16511

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 26, 2024
@Veykril Veykril force-pushed the block-mod branch 2 times, most recently from b7a507d to d90dd9e Compare February 26, 2024 13:52
<span class="keyword">fn</span> <span class="function declaration">main</span><span class="parenthesis">(</span><span class="parenthesis">)</span> <span class="brace">{</span>
<span class="comment">// foo!(Foo);</span>
<span class="keyword">mod</span> <span class="module declaration">module</span> <span class="brace">{</span>
<span class="unresolved_reference">foo</span><span class="macro_bang">!</span><span class="parenthesis macro">(</span><span class="none macro">Bar</span><span class="parenthesis macro">)</span><span class="semicolon">;</span>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is still a bug here, but I am unsure what the cause is as our early name resolution is quite complicated (we should really clean that up)

@Veykril
Copy link
Member Author

Veykril commented Feb 26, 2024

@bors r+

@bors
Copy link
Contributor

bors commented Feb 26, 2024

📌 Commit 91554e0 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Feb 26, 2024

⌛ Testing commit 91554e0 with merge 40bf8bf...

@bors
Copy link
Contributor

bors commented Feb 26, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 40bf8bf to master...

@bors bors merged commit 40bf8bf into rust-lang:master Feb 26, 2024
@Veykril Veykril deleted the block-mod branch March 5, 2024 16:46
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.

Unresolved macro panic! with inner module
3 participants