Skip to content

fix: do not resolve prelude within block modules #17352

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 2 commits into from
Jun 6, 2024

Conversation

roife
Copy link
Member

@roife roife commented Jun 6, 2024

fix #17338 (continuing from #17251).

In #17251, we injected preludes into non-top-level modules, which leading to r-a to directly resolve names in preludes in block modules. This PR fix it by checking whether the module is a pseudo-module introduced by blocks. (similar to what we do for extern preludes)

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 6, 2024
@roife roife force-pushed the fix-issue-17338 branch from 355bd94 to 22e82c7 Compare June 6, 2024 09:03
@Veykril
Copy link
Member

Veykril commented Jun 6, 2024

Thanks!
@bors r+

@bors
Copy link
Contributor

bors commented Jun 6, 2024

📌 Commit 22e82c7 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jun 6, 2024

⌛ Testing commit 22e82c7 with merge af488c9...

@bors
Copy link
Contributor

bors commented Jun 6, 2024

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

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.

Type inference for Result wrong for inner functions.
4 participants