Skip to content

fix: Fix a bug where enum variants were not considered properly in type ns resolution #18976

New issue

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

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

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

ChayimFriedman2
Copy link
Contributor

@ChayimFriedman2 ChayimFriedman2 commented Jan 19, 2025

They should be considered just as well as in value ns, for example for struct literals.

Fixes #18974. I think this needs a beta backport.

… resolution

They should be considered just as well as in value ns, for example for struct literals.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 19, 2025
@ChayimFriedman2 ChayimFriedman2 changed the title fix: Fix a bug where enum variants were not considered properly in type ns… fix: Fix a bug where enum variants were not considered properly in type ns resolution Jan 19, 2025
@Veykril Veykril added this pull request to the merge queue Jan 20, 2025
Merged via the queue into rust-lang:master with commit 40ba51c Jan 20, 2025
9 checks passed
@ChayimFriedman2 ChayimFriedman2 deleted the non-module-generic-args branch January 21, 2025 20:52
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 1, 2025
[beta-1.85] backports

* [Add `AsyncFn*` to `core` prelude](rust-lang#135852)
* [Disable `overflow_delimited_expr` in edition 2024](rust-lang#136312)
* [Disable some incorrect rust-analyzer diagnostics on beta](rust-lang#136236)
    * [fix: Fix #[rustc_deprecated_safe_2024]](rust-lang/rust-analyzer#19044)
    * [fix: Fix a bug where enum variants were not considered properly in type ns resolution](rust-lang/rust-analyzer#18976)
* Update edition-guide
    * [Add alternatives for static-mut-refs](rust-lang/edition-guide#354)
    * [Remove rustfmt-overflow-delimited-expr](rust-lang/edition-guide#357)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
beta-accepted 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.

Compileable code still reports an issue in rust-analyzer
3 participants