-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
⬆️ rust-analyzer
#107992
Conversation
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
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.
Some changes occurred in src/tools/rust-analyzer cc @rust-lang/wg-rls-2 |
71d8339
to
c4a2f06
Compare
@bors r+ rollup=iffy |
@bors p=1 |
☀️ Test successful - checks-actions |
Finished benchmarking commit (065852d): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis 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.
CyclesThis benchmark run did not return any relevant results for this metric. |
r? @ghost