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

⬆️ rust-analyzer #107992

Merged
merged 326 commits into from
Feb 13, 2023
Merged

⬆️ rust-analyzer #107992

merged 326 commits into from
Feb 13, 2023

Conversation

lnicola
Copy link
Member

@lnicola lnicola commented Feb 13, 2023

r? @ghost

ModProg and others added 30 commits January 16, 2023 19:25
Unconditionally enable location links in inlay hints again

While the goto functionality still doesn't work in VSCode, the hover part actually does. Also the way this was gated before, one only had to update their config while r-a was running to have the links enabled automatically due to the check only living in the startup code.
…=Veykril

Assist: desugar doc-comment

My need for this arose due to wanting to do feature dependent documentation and therefor convert parts of my doc-comments to attributes.

Not sure about the pub-making of the other handlers functions, but I didn't think it made much sense to reimplement them.
Don't compute layout if `TargetDataLayout` is not available
Specify authors, edition, license and rust-versian via workspace.package
…kril

Use workspace.dependencies to declare local dependencies
Also don't enforce them on non-builtin types
…ypes, r=Veykril

fix: more precise binop inference

While inferring binary operator expressions, Rust puts some extra constraints on the types of the operands for better inference. Relevant part in rustc is [this](https://github.com/rust-lang/rust/blob/159ba8a92c9e2fa4121f106176309521f4af87e9/compiler/rustc_hir_typeck/src/op.rs#L128-L152).

There are two things we currently fail to consider:
- we should enforce them only when both lhs and rhs type are builtin types that are applicable to the binop
- lhs and rhs types may be single reference to applicable builtin types

This PR basically ports [`enforce_builtin_binop_types()`](https://github.com/rust-lang/rust/blob/159ba8a92c9e2fa4121f106176309521f4af87e9/compiler/rustc_hir_typeck/src/op.rs#L159) and [`is_builtin_binop()`](https://github.com/rust-lang/rust/blob/159ba8a92c9e2fa4121f106176309521f4af87e9/compiler/rustc_hir_typeck/src/op.rs#LL927) to our inference context.
minor: Fix `replace_arith` assist label
…kril

Fix checkOnSave to check config patching not always working

This early return was missed in the initial PR, so if we aren't patching the `completion_addCallArgumentSnippets` `completion_addCallParenthesis` configs we won't be patching the checkOnSave ones...
Don't run flycheck on startup unless checkOnSave is enabled

The main reason people disable it is because they don't want the expensive checks to occur automatically, so we shouldn't trigger them at the start up either if this is disabled.
Enables parsing of the syntax for `#![features(const_closures)]` introduced in rust-lang#106004
…r=Veykril

Parse const_closures syntax.

Enables parsing of the syntax for `#![features(const_closures)]` introduced in [this PR](rust-lang#106004)
fix: Fix target-data-layout fetching incorrectly passing 'rustc' to rustc
Don't respond with a ContentModified while loading the workspace

Initially this was done to prevent frequent inlay hint flickering, but this causes a lot of problems for a bunch of clients. We can (and already kind of have) move this into the semantic token request handlers instead.

Fixes rust-lang/rust-analyzer#10910
lnicola and others added 13 commits February 12, 2023 10:55
minor: Add version placeholder to changelog template

Closes rust-lang#13967

This isn't great because we need to fill it in manually, but getting the version number from GitHub Actions is a bit annoying.
feat: Add Lapce section to the manual
feat: Add clippy configuration section to the manual and update some old keys

Closes rust-lang#14132

I don't think this is supposed to be under `Diagnostics`, but it does make sense in a way 🤷 (it's probably where someone might look).
fix: Fix proc-macro-server incorrectly stripping delimiters

🙄
fix: don't include `r#` prefix in filesystem changes

Fixes rust-lang#14131

In addition to fix for rust-lang#14131, this PR adds raw ident validity checks in rename functionality that we've been missing.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 13, 2023
@rustbot
Copy link
Collaborator

rustbot commented Feb 13, 2023

Some changes occurred in src/tools/rust-analyzer

cc @rust-lang/wg-rls-2

@lnicola
Copy link
Member Author

lnicola commented Feb 13, 2023

@bors r+ rollup=iffy

@bors
Copy link
Contributor

bors commented Feb 13, 2023

📌 Commit c4a2f06 has been approved by lnicola

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 13, 2023
@lnicola
Copy link
Member Author

lnicola commented Feb 13, 2023

@bors p=1

@bors
Copy link
Contributor

bors commented Feb 13, 2023

⌛ Testing commit c4a2f06 with merge 065852d...

@bors
Copy link
Contributor

bors commented Feb 13, 2023

☀️ Test successful - checks-actions
Approved by: lnicola
Pushing 065852d to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Feb 13, 2023
@bors bors merged commit 065852d into rust-lang:master Feb 13, 2023
@rustbot rustbot added this to the 1.69.0 milestone Feb 13, 2023
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (065852d): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
3.2% [2.7%, 3.6%] 2
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Cycles

This benchmark run did not return any relevant results for this metric.

@lnicola lnicola deleted the rust-analyzer-2023-02-13 branch February 14, 2023 06:52
@lnicola lnicola mentioned this pull request Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.