-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Subtree update of rust-analyzer
#117985
Subtree update of rust-analyzer
#117985
Commits on Sep 18, 2023
-
Configuration menu - View commit details
-
Copy full SHA for bcfc997 - Browse repository at this point
Copy the full SHA bcfc997View commit details
Commits on Oct 22, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d204713 - Browse repository at this point
Copy the full SHA d204713View commit details
Commits on Nov 3, 2023
-
Remove support for compiler plugins.
They've been deprecated for four years. This commit includes the following changes. - It eliminates the `rustc_plugin_impl` crate. - It changes the language used for lints in `compiler/rustc_driver_impl/src/lib.rs` and `compiler/rustc_lint/src/context.rs`. External lints are now called "loaded" lints, rather than "plugins" to avoid confusion with the old plugins. This only has a tiny effect on the output of `-W help`. - E0457 and E0498 are no longer used. - E0463 is narrowed, now only relating to unfound crates, not plugins. - The `plugin` feature was moved from "active" to "removed". - It removes the entire plugins chapter from the unstable book. - It removes quite a few tests, mostly all of those in `tests/ui-fulldeps/plugin/`. Closes rust-lang#29597.
Configuration menu - View commit details
-
Copy full SHA for 6eaf3f8 - Browse repository at this point
Copy the full SHA 6eaf3f8View commit details
Commits on Nov 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d1d111d - Browse repository at this point
Copy the full SHA d1d111dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 41bcd54 - Browse repository at this point
Copy the full SHA 41bcd54View commit details -
Auto merge of rust-lang#15847 - wasd96040501:feat/preview_adt, r=lnicola
feat: preview adt field when hover Closes rust-lang#13977 ![20231108194345_rec_](https://github.com/rust-lang/rust-analyzer/assets/14040068/95894c4b-de6e-4ca4-98b3-6ab4559d0950)
Configuration menu - View commit details
-
Copy full SHA for 7059ae2 - Browse repository at this point
Copy the full SHA 7059ae2View commit details
Commits on Nov 9, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fa7a918 - Browse repository at this point
Copy the full SHA fa7a918View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0101da - Browse repository at this point
Copy the full SHA b0101daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bcdb7d - Browse repository at this point
Copy the full SHA 3bcdb7dView commit details -
Auto merge of rust-lang#15853 - Kangaxx-0:gaxx/update-parser-event-co…
…mment, r=lnicola Try to update parser/event doc `TokenSource` and `TreeSink` has been refactored as part of rust-lang#10765, they no longer exist in code repo. This pr tries to remove them from event module level comment to prevent confusion.
Configuration menu - View commit details
-
Copy full SHA for ebb9ed9 - Browse repository at this point
Copy the full SHA ebb9ed9View commit details -
Auto merge of rust-lang#15860 - HKalbasi:fix-capture-raw-pointer, r=H…
…Kalbasi Truncate closure capture place for raw pointer fix rust-lang/rust-analyzer#15670 (comment)
Configuration menu - View commit details
-
Copy full SHA for 7663319 - Browse repository at this point
Copy the full SHA 7663319View commit details
Commits on Nov 10, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e0276dc - Browse repository at this point
Copy the full SHA e0276dcView commit details -
Auto merge of rust-lang#15864 - Young-Flash:find_self, r=lnicola
fix: find `Self` reference took a lot of time to debug to find the problem, here should compare the actual `Adt` type close rust-lang/rust-analyzer#12693
Configuration menu - View commit details
-
Copy full SHA for 5afaf68 - Browse repository at this point
Copy the full SHA 5afaf68View commit details -
Auto merge of rust-lang#15854 - alibektas:15782/relax_hidden_attr, r=…
…lnicola fix: Ignore doc(hidden) attr if no body is present fixes rust-lang#15782
Configuration menu - View commit details
-
Copy full SHA for 7cca4e5 - Browse repository at this point
Copy the full SHA 7cca4e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9826717 - Browse repository at this point
Copy the full SHA 9826717View commit details -
Auto merge of rust-lang#15866 - lnicola:include-check, r=Veykril
Improve check for include macro rust-lang/rust-analyzer#15819 (review)
Configuration menu - View commit details
-
Copy full SHA for 11a87c9 - Browse repository at this point
Copy the full SHA 11a87c9View commit details
Commits on Nov 11, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2339ba4 - Browse repository at this point
Copy the full SHA 2339ba4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 801a887 - Browse repository at this point
Copy the full SHA 801a887View commit details -
Configuration menu - View commit details
-
Copy full SHA for ba61766 - Browse repository at this point
Copy the full SHA ba61766View commit details -
Configuration menu - View commit details
-
Copy full SHA for 74e5444 - Browse repository at this point
Copy the full SHA 74e5444View commit details -
Auto merge of rust-lang#15871 - Veykril:import-map, r=Veykril
Add config for preferring / ignoring prelude modules in find_path
Configuration menu - View commit details
-
Copy full SHA for 5fcf528 - Browse repository at this point
Copy the full SHA 5fcf528View commit details
Commits on Nov 12, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b6f0994 - Browse repository at this point
Copy the full SHA b6f0994View commit details -
Add
MethodCallExpr::get_or_create_generic_arg_list
Mirrors `PathSegment's` version, except that it always generates a turbofish
Configuration menu - View commit details
-
Copy full SHA for 02c7b8b - Browse repository at this point
Copy the full SHA 02c7b8bView commit details -
Migrate
add_turbo_fish
to mutable ast`add_type_ascription` is still left as-is since it's a different assist
Configuration menu - View commit details
-
Copy full SHA for cc4e06f - Browse repository at this point
Copy the full SHA cc4e06fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 92422f7 - Browse repository at this point
Copy the full SHA 92422f7View commit details -
Way for setting and removing the type ascription of a let stmt
Configuration menu - View commit details
-
Copy full SHA for 5fc8cc5 - Browse repository at this point
Copy the full SHA 5fc8cc5View commit details -
Configuration menu - View commit details
-
Copy full SHA for f3dcc67 - Browse repository at this point
Copy the full SHA f3dcc67View commit details -
Migrate
destructure_tuple_binding
to mutable astDue to the way the current tree mutation api works, we need to collect changes before we can apply them to the real syntax tree, and also can only switch to a file once. `destructure_tuple_binding_in_sub_pattern` also gets migrated even though can't be used.
Configuration menu - View commit details
-
Copy full SHA for 4aaa592 - Browse repository at this point
Copy the full SHA 4aaa592View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e46868 - Browse repository at this point
Copy the full SHA 1e46868View commit details -
Configuration menu - View commit details
-
Copy full SHA for 23fde40 - Browse repository at this point
Copy the full SHA 23fde40View commit details -
Configuration menu - View commit details
-
Copy full SHA for cace36c - Browse repository at this point
Copy the full SHA cace36cView commit details -
Auto merge of rust-lang#15870 - lnicola:expand-macro, r=lnicola
minor: Make "Expand macro" command title more explicit Closes [rust-lang#15856](rust-lang/rust-analyzer#15856). I opted for "caret", since it's the better term (cursor is the mouse), but I'm not sure how popular it is these days.
Configuration menu - View commit details
-
Copy full SHA for 1152f59 - Browse repository at this point
Copy the full SHA 1152f59View commit details -
Configuration menu - View commit details
-
Copy full SHA for bad3d9e - Browse repository at this point
Copy the full SHA bad3d9eView commit details -
Auto merge of rust-lang#15880 - lnicola:vfs-toml, r=Veykril
internal: Include toml files in the vfs Closes rust-lang#15753
Configuration menu - View commit details
-
Copy full SHA for 8bfe0aa - Browse repository at this point
Copy the full SHA 8bfe0aaView commit details -
Auto merge of rust-lang#15876 - DropDemBits:lsp-ext-multiple-snippet-…
…textedit, r=Veykril minor: Allow multiple snippet edits in a `TextDocumentEdit` Explicitly[^1] allow a single `TextDocumentEdit` to have multiple `SnippetTextEdit`s. This allows things like renaming extracted variables and functions without having to go through a separate rename step. For an example of what this looks like, see the video in [this comment](microsoft/vscode#145374 (comment)). The behavior described here lines up with [what VSCode does](https://github.com/microsoft/vscode/blob/bdc113ffe148a92d0e1a8ec34b12c44ea0b73f29/src/vscode-dts/vscode.d.ts#L3728-L3731), and presumably what the eventual LSP behavior will be. [^1]: This was technically the case before rust-lang#15269, a single `TextDocumentEdit` always had multiple edits which were `InsertTextFormat.Snippet` as all of the edits were marked as being snippets, even if there weren't any tab stops or placeholders.
Configuration menu - View commit details
-
Copy full SHA for 92d9ca7 - Browse repository at this point
Copy the full SHA 92d9ca7View commit details -
Configuration menu - View commit details
-
Copy full SHA for d6b908e - Browse repository at this point
Copy the full SHA d6b908eView commit details -
Auto merge of rust-lang#15882 - Veykril:fix-config-keys, r=Veykril
minor: Fix import preference config keys
Configuration menu - View commit details
-
Copy full SHA for 4fc208e - Browse repository at this point
Copy the full SHA 4fc208eView commit details -
Auto merge of rust-lang#15881 - nokazn:docs/fix-vscode-setting-sample…
…s, r=lnicola docs: fix VS Code setting samples Fix invalid JSONC examples (missing double quotes) in VS Code's `settings.json` . Thank you.
Configuration menu - View commit details
-
Copy full SHA for 416e9c8 - Browse repository at this point
Copy the full SHA 416e9c8View commit details
Commits on Nov 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 3e5bc9a - Browse repository at this point
Copy the full SHA 3e5bc9aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b6951de - Browse repository at this point
Copy the full SHA b6951deView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f68cd3 - Browse repository at this point
Copy the full SHA 6f68cd3View commit details
Commits on Nov 14, 2023
-
Needed so that the `tuple_pat` node gets added to the syntax tree, which is required as we're using structured snippets.
Configuration menu - View commit details
-
Copy full SHA for 787ca88 - Browse repository at this point
Copy the full SHA 787ca88View commit details -
Configuration menu - View commit details
-
Copy full SHA for e844784 - Browse repository at this point
Copy the full SHA e844784View commit details -
Configuration menu - View commit details
-
Copy full SHA for b740155 - Browse repository at this point
Copy the full SHA b740155View commit details -
Configuration menu - View commit details
-
Copy full SHA for d45ff24 - Browse repository at this point
Copy the full SHA d45ff24View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ddccc9 - Browse repository at this point
Copy the full SHA 6ddccc9View commit details -
Configuration menu - View commit details
-
Copy full SHA for d5faad1 - Browse repository at this point
Copy the full SHA d5faad1View commit details -
Auto merge of rust-lang#15891 - Veykril:orphan-impls, r=Veykril
feat: Diagnose some orphan trait impl cases
Configuration menu - View commit details
-
Copy full SHA for 6e4538a - Browse repository at this point
Copy the full SHA 6e4538aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e21d21a - Browse repository at this point
Copy the full SHA e21d21aView commit details -
Auto merge of rust-lang#15893 - Veykril:unsafe-impls-diagnostic, r=Ve…
…ykril Diagnose incorrect unsafety for trait impls
Configuration menu - View commit details
-
Copy full SHA for 989000b - Browse repository at this point
Copy the full SHA 989000bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 723d799 - Browse repository at this point
Copy the full SHA 723d799View commit details -
Auto merge of rust-lang#15895 - Veykril:unsafe-impls-diagnostic, r=Ve…
…ykril Diagnose missing assoc items in trait impls
Configuration menu - View commit details
-
Copy full SHA for c1e65aa - Browse repository at this point
Copy the full SHA c1e65aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for df62962 - Browse repository at this point
Copy the full SHA df62962View commit details -
Fix panic in
add_type_ascription
Assist wasn't applicable when the let statement was missing a pattern before, so we should do the same now.
Configuration menu - View commit details
-
Copy full SHA for 3f99a56 - Browse repository at this point
Copy the full SHA 3f99a56View commit details
Commits on Nov 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 610eafe - Browse repository at this point
Copy the full SHA 610eafeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b53c09 - Browse repository at this point
Copy the full SHA 6b53c09View commit details -
Auto merge of rust-lang#15899 - lnicola:sync-from-rust, r=Veykril
internal: Sync from rust
Configuration menu - View commit details
-
Copy full SHA for f888a6e - Browse repository at this point
Copy the full SHA f888a6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for fb70fe2 - Browse repository at this point
Copy the full SHA fb70fe2View commit details -
Auto merge of rust-lang#15900 - lnicola:no-32bit-vsix, r=lnicola
internal: Disable win32-ia32 VSIX builds https://code.visualstudio.com/updates/v1_84#_windows-32bit-support-ends
Configuration menu - View commit details
-
Copy full SHA for c94a6af - Browse repository at this point
Copy the full SHA c94a6afView commit details -
Configuration menu - View commit details
-
Copy full SHA for 498f39e - Browse repository at this point
Copy the full SHA 498f39eView commit details -
Auto merge of rust-lang#15875 - Young-Flash:fix_grammar, r=Veykril
fix `PathSegment` grammar close rust-lang/rust-analyzer#15778
Configuration menu - View commit details
-
Copy full SHA for a473303 - Browse repository at this point
Copy the full SHA a473303View commit details -
Auto merge of rust-lang#15874 - DropDemBits:structured-snippet-migrat…
…e-4, r=Veykril internal: Migrate assists to the structured snippet API, part 4 Continuing from rust-lang#15260 Migrates the following assists: - `add_turbo_fish` - `add_type_ascription` - `destructure_tuple_binding` - `destructure_tuple_binding_in_subpattern` I did this a while ago, but forgot to make a PR for the changes until now. 😅
Configuration menu - View commit details
-
Copy full SHA for 535eb0d - Browse repository at this point
Copy the full SHA 535eb0dView commit details -
Auto merge of rust-lang#15901 - Veykril:inner-diag, r=lnicola
fix: Diagnose everything in nested items, not just def diagnostics Turns out we only calculated def diagnostics for these before (was wondering why I wasn't getting any type mismatches)
Configuration menu - View commit details
-
Copy full SHA for 57ef70c - Browse repository at this point
Copy the full SHA 57ef70cView commit details -
Configuration menu - View commit details
-
Copy full SHA for dfc885e - Browse repository at this point
Copy the full SHA dfc885eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f66df10 - Browse repository at this point
Copy the full SHA f66df10View commit details -
Configuration menu - View commit details
-
Copy full SHA for f53368d - Browse repository at this point
Copy the full SHA f53368dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d83620a - Browse repository at this point
Copy the full SHA d83620aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2dbdaa2 - Browse repository at this point
Copy the full SHA 2dbdaa2View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb8434e - Browse repository at this point
Copy the full SHA cb8434eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 970a796 - Browse repository at this point
Copy the full SHA 970a796View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2bfd6b6 - Browse repository at this point
Copy the full SHA 2bfd6b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1fc056e - Browse repository at this point
Copy the full SHA 1fc056eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c4dfa06 - Browse repository at this point
Copy the full SHA c4dfa06View commit details -
Configuration menu - View commit details
-
Copy full SHA for 441e8c7 - Browse repository at this point
Copy the full SHA 441e8c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for a1f81a7 - Browse repository at this point
Copy the full SHA a1f81a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5725832 - Browse repository at this point
Copy the full SHA 5725832View commit details -
Configuration menu - View commit details
-
Copy full SHA for 829cf8d - Browse repository at this point
Copy the full SHA 829cf8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b267f6b - Browse repository at this point
Copy the full SHA b267f6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c66084b - Browse repository at this point
Copy the full SHA c66084bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e8c4007 - Browse repository at this point
Copy the full SHA e8c4007View commit details -
Auto merge of rust-lang#15903 - Veykril:inner-diag, r=Veykril
Fix builtin line! expansion `concat` expects only literals, not whole syntax nodes, so we need to expand as such
Configuration menu - View commit details
-
Copy full SHA for b8b4b22 - Browse repository at this point
Copy the full SHA b8b4b22View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e8e7de - Browse repository at this point
Copy the full SHA 8e8e7deView commit details -
Auto merge of rust-lang#15905 - lnicola:tsconfig, r=lnicola
minor: Tweak tsconfig.json CC rust-lang/rust-analyzer#15904
Configuration menu - View commit details
-
Copy full SHA for 1d3bf72 - Browse repository at this point
Copy the full SHA 1d3bf72View commit details -
Configuration menu - View commit details
-
Copy full SHA for df7fa7f - Browse repository at this point
Copy the full SHA df7fa7fView commit details -
Auto merge of rust-lang#15904 - davidbarsky:davidbarsky/bump-minimum-…
…vscode-version-to-1.78, r=lnicola editor/code: bump minimum version of VS Code to 1.78 Undoes rust-lang/rust-analyzer#15333.
Configuration menu - View commit details
-
Copy full SHA for bae9c08 - Browse repository at this point
Copy the full SHA bae9c08View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83e6d79 - Browse repository at this point
Copy the full SHA 83e6d79View commit details -
Configuration menu - View commit details
-
Copy full SHA for b18ce4f - Browse repository at this point
Copy the full SHA b18ce4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2814d64 - Browse repository at this point
Copy the full SHA 2814d64View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ed27d2 - Browse repository at this point
Copy the full SHA 3ed27d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for c6fad55 - Browse repository at this point
Copy the full SHA c6fad55View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ea06c8 - Browse repository at this point
Copy the full SHA 8ea06c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for da24b6f - Browse repository at this point
Copy the full SHA da24b6fView commit details -
Auto merge of rust-lang#15902 - lnicola:bump-deps, r=Veykril
internal: Bump deps pt. 1
Configuration menu - View commit details
-
Copy full SHA for 58de0b1 - Browse repository at this point
Copy the full SHA 58de0b1View commit details
Commits on Nov 16, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 0cd68bf - Browse repository at this point
Copy the full SHA 0cd68bfView commit details -
Auto merge of rust-lang#15830 - davidbarsky:davidbarsky/allow-compani…
…on-extension-to-call-rust-analyzer, r=davidbarsky code: expose workspaces to other extensions; remove `addProject` command This (mostly red) PR does three things: - Exposes two methods to companion extensions (`setWorkspaces` and `notifyRustAnalyzer`). - `setWorkspaces` is needed to update `linkedProjects` _without_ writing workspace/global configuration. - `notifyRustAnalyzer` to get the server to pull the new configuration. - Makes `Ctx` implement `RustAnalyzerExtensionApi` to prevent accidental regressions. - Remove `rust-analyzer.addProject`, as that will live in a buck2 companion extension. No need for that to be in rust-analyzer! I can see the utility of combining `notifyRustAnalyzer` and `setWorkspaces` into a single method (`updateWorkspacesAndNotify()`?), but I don't feel strongly about this. My feeling is that this API could be easily changed in the future.
Configuration menu - View commit details
-
Copy full SHA for 37a8790 - Browse repository at this point
Copy the full SHA 37a8790View commit details -
Configuration menu - View commit details
-
Copy full SHA for 480cb60 - Browse repository at this point
Copy the full SHA 480cb60View commit details -
Auto merge of rust-lang#15913 - lnicola:bump-libc, r=lnicola
internal: Bump libc CC rust-lang#117981
Configuration menu - View commit details
-
Copy full SHA for 141fc69 - Browse repository at this point
Copy the full SHA 141fc69View commit details -
Configuration menu - View commit details
-
Copy full SHA for 949870c - Browse repository at this point
Copy the full SHA 949870cView commit details