Skip to content
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

Add support for Rust 2021. #7123

Merged
merged 2 commits into from Jan 1, 2021
Merged

Add support for Rust 2021. #7123

merged 2 commits into from Jan 1, 2021

Conversation

m-ou-se
Copy link
Member

@m-ou-se m-ou-se commented Jan 1, 2021

This adds 2021 in all places where rust-analyzer already knew about 2015 and 2018.

The only edition-specific behaviour I could find in the source code was gated on a direct comparison with Edition2015, so Edition2021 should (correctly) behave the same as Edition2018:

https://github.com/rust-analyzer/rust-analyzer/blob/56a7bf7ede12f6bec194265ea4a95911c9e469bd/crates/hir_def/src/nameres/path_resolution.rs#L132

@lnicola
Copy link
Member

lnicola commented Jan 1, 2021

Thank you!

bors r+

bors bot added a commit that referenced this pull request Jan 1, 2021
7123: Add support for Rust 2021. r=lnicola a=m-ou-se

This adds `2021` in all places where rust-analyzer already knew about `2015` and `2018`.

The only edition-specific behaviour I could find in the source code was gated on a direct comparison with `Edition2015`, so `Edition2021` should (correctly) behave the same as `Edition2018`:

https://github.com/rust-analyzer/rust-analyzer/blob/56a7bf7ede12f6bec194265ea4a95911c9e469bd/crates/hir_def/src/nameres/path_resolution.rs#L132

Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
@bors
Copy link
Contributor

bors bot commented Jan 1, 2021

Canceled.

@lnicola
Copy link
Member

lnicola commented Jan 1, 2021

bors r+

@bors
Copy link
Contributor

bors bot commented Jan 1, 2021

Build succeeded!

And happy new year! 🎉

@bors bors bot merged commit c92c9fd into rust-lang:master Jan 1, 2021
@m-ou-se m-ou-se deleted the 2021 branch January 1, 2021 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants