-
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
Rollup of 8 pull requests #104227
Rollup of 8 pull requests #104227
Commits on Oct 10, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 0f46f27 - Browse repository at this point
Copy the full SHA 0f46f27View commit details -
Configuration menu - View commit details
-
Copy full SHA for d439fb2 - Browse repository at this point
Copy the full SHA d439fb2View commit details
Commits on Oct 12, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b1909a8 - Browse repository at this point
Copy the full SHA b1909a8View commit details
Commits on Oct 20, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 8ebc96a - Browse repository at this point
Copy the full SHA 8ebc96aView commit details
Commits on Oct 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e4ef0e5 - Browse repository at this point
Copy the full SHA e4ef0e5View commit details
Commits on Oct 22, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 8039a07 - Browse repository at this point
Copy the full SHA 8039a07View commit details
Commits on Oct 24, 2022
-
Configuration menu - View commit details
-
Copy full SHA for c4bdb8e - Browse repository at this point
Copy the full SHA c4bdb8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4bf9b9b - Browse repository at this point
Copy the full SHA 4bf9b9bView commit details
Commits on Oct 28, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 4a7f5ca - Browse repository at this point
Copy the full SHA 4a7f5caView commit details
Commits on Oct 29, 2022
-
Configuration menu - View commit details
-
Copy full SHA for cf90e4f - Browse repository at this point
Copy the full SHA cf90e4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 319611b - Browse repository at this point
Copy the full SHA 319611bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 48efc9d - Browse repository at this point
Copy the full SHA 48efc9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for f0a1434 - Browse repository at this point
Copy the full SHA f0a1434View commit details
Commits on Oct 30, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 98125b9 - Browse repository at this point
Copy the full SHA 98125b9View commit details
Commits on Oct 31, 2022
-
Auto merge of rust-lang#13445 - notJoon:modify-dead-links, r=lnicola
fix) update broken links in guide.md Hi, I Just fixed some broken links in `guide.md`. In most cases, it is not connected by an old version (expecially `guide-2019-01`) of the link, so I made some modifications. Thanks for your time :)
Configuration menu - View commit details
-
Copy full SHA for 8142d1f - Browse repository at this point
Copy the full SHA 8142d1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for db8c752 - Browse repository at this point
Copy the full SHA db8c752View commit details -
Auto merge of rust-lang#13523 - lowr:fix/adjust-expectation-for-if, r…
…=lnicola fix: disregard type variable expectation for if expressions Fixes rust-lang#13522 As [the comment](https://github.com/rust-lang/rust-analyzer/blob/8142d1f606dc2e52b1d2b8992671e2bd73379f28/crates/hir-ty/src/infer.rs#L1087-L1090) on `Expectation::adjust_for_branches` explains: > If the expected type is just a type variable, then don't use an expected type. Otherwise, we might write parts of the type when checking the 'then' block which are incompatible with the 'else' branch. Note that we already use it in match expressions. I've added tests for them too nevertheless.
Configuration menu - View commit details
-
Copy full SHA for 07f6efc - Browse repository at this point
Copy the full SHA 07f6efcView commit details
Commits on Nov 1, 2022
-
Create
Callable
s for generic types implementingFnOnce
Jonas Schievink committedNov 1, 2022 Configuration menu - View commit details
-
Copy full SHA for ecad1a9 - Browse repository at this point
Copy the full SHA ecad1a9View commit details -
Jonas Schievink committed
Nov 1, 2022 Configuration menu - View commit details
-
Copy full SHA for 9f1bb17 - Browse repository at this point
Copy the full SHA 9f1bb17View commit details -
Revert "Record diverging match arms in
InferenceResult
"This reverts commit 319611b.
Jonas Schievink committedNov 1, 2022 Configuration menu - View commit details
-
Copy full SHA for e110c78 - Browse repository at this point
Copy the full SHA e110c78View commit details -
Jonas Schievink committed
Nov 1, 2022 Configuration menu - View commit details
-
Copy full SHA for 72d5b45 - Browse repository at this point
Copy the full SHA 72d5b45View commit details -
Auto merge of rust-lang#13516 - unexge:add-convert-match-to-let-else-…
…assist, r=jonas-schievink Add `Convert match to let-else` assist Closes rust-lang/rust-analyzer#13254
Configuration menu - View commit details
-
Copy full SHA for d90cb1e - Browse repository at this point
Copy the full SHA d90cb1eView commit details -
Auto merge of rust-lang#13508 - koka831:fix/13492, r=jonas-schievink
fix: async trait method for `unnecessary_async` Fix rust-lang/rust-analyzer#13492
Configuration menu - View commit details
-
Copy full SHA for a8e97bc - Browse repository at this point
Copy the full SHA a8e97bcView commit details -
Auto merge of rust-lang#13525 - jonas-schievink:generic-call-signatur…
…e, r=jonas-schievink feat: show signature help when calling generic types implementing `FnOnce` This queries chalk for the `FnOnce` impl of callees and takes argument and return types from there, making generic `Callable`s available to the IDE. This makes signature help work for them, and potentially allows other features to take generic callables into account in the future.
Configuration menu - View commit details
-
Copy full SHA for c1305fa - Browse repository at this point
Copy the full SHA c1305faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 62a6cdf - Browse repository at this point
Copy the full SHA 62a6cdfView commit details
Commits on Nov 2, 2022
-
Auto merge of rust-lang#13517 - feniljain:fix_completions, r=Veykril
fix: make custom expr prefix completions to understand refs Possible fix of rust-lang#7929 While reviewing the postfix completion code I saw that while calling `add_custom_postfix_completions` we were doing it under the part where reference was not taken into consideration, but as we are only adding postfix completions with `Expr` scope ( [source](https://github.com/rust-lang/rust-analyzer/blob/ba28e19b7838e3ad4223ae82d074dc3950ef1548/crates/ide-completion/src/completions/postfix.rs#L272) ) I shifted the `add_custom_postfix_completions` call to part where references are considered I am not sure if this is the correct fix or I am understanding the problem exactly but this small move seemed to have fixed the issue :)
Configuration menu - View commit details
-
Copy full SHA for 12ced8f - Browse repository at this point
Copy the full SHA 12ced8fView commit details -
fix: indentation after inserting
#must_use
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 691ce30 - Browse repository at this point
Copy the full SHA 691ce30View commit details -
Auto merge of rust-lang#13359 - feniljain:feat-must-use-option, r=Vey…
…kril feat: add config for inserting must_use in `generate_enum_as_method` Should fix rust-lang#13312 Didn't add a test because I was not sure on how to add test for a specific configuration option, tried to look for the usages for other `AssistConfig` variants but couldn't find any in `tests`. If there is a way to test this, do point me towards it. I tried to extract the formatting string as a common `template_string` and only have if-else for that, but it didn't compile :( Also it seems these tests are failing: ``` test config::tests::generate_config_documentation ... FAILED test config::tests::generate_package_json_config ... FAILED ``` Can you also point me to how to correct these 😅 ( I guess there is some command to automatically generate these? )
Configuration menu - View commit details
-
Copy full SHA for af1f48d - Browse repository at this point
Copy the full SHA af1f48dView commit details -
Auto merge of rust-lang#13527 - unexge:use-let-else-stmt-in-convert-t…
…o-guarded-return-assist, r=jonas-schievink Use let-else statements in `Convert to guarded return` assist Follow up for rust-lang/rust-analyzer#13516, addresses remaining part of rust-lang/rust-analyzer#13254 (comment)
Configuration menu - View commit details
-
Copy full SHA for 6c3ab56 - Browse repository at this point
Copy the full SHA 6c3ab56View commit details -
Configuration menu - View commit details
-
Copy full SHA for adee109 - Browse repository at this point
Copy the full SHA adee109View commit details -
Auto merge of rust-lang#13530 - lnicola:bump-ovsx, r=lnicola
minor: Bump ovsx CC https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/1330#note_1033611
Configuration menu - View commit details
-
Copy full SHA for 56c97a8 - Browse repository at this point
Copy the full SHA 56c97a8View commit details
Commits on Nov 3, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 08c2b45 - Browse repository at this point
Copy the full SHA 08c2b45View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6073e58 - Browse repository at this point
Copy the full SHA 6073e58View commit details -
Auto merge of rust-lang#13537 - lnicola:ovsx-fail, r=lnicola
minor: Allow ovsx publishing to fail
Configuration menu - View commit details
-
Copy full SHA for f3a6871 - Browse repository at this point
Copy the full SHA f3a6871View commit details -
Auto merge of rust-lang#13456 - emilio:scip-local-symbol, r=Veykril
scip: Generate symbols for local crates. Consider something like: ``` // a.rs pub struct Foo { .. } // Foo is "local 1" fn something() { crate::b::Bar::new() // Bar is "local 1", but of "b.rs" } // b.rs pub struct Bar { .. } // "local 1" ``` Without this there's no way to disambiguate whether "local 1" references "Bar" or "Foo".
Configuration menu - View commit details
-
Copy full SHA for bbcb77e - Browse repository at this point
Copy the full SHA bbcb77eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6750f6b - Browse repository at this point
Copy the full SHA 6750f6bView commit details
Commits on Nov 4, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3508820 - Browse repository at this point
Copy the full SHA 3508820View commit details -
Auto merge of rust-lang#13544 - HKalbasi:patch-2, r=Veykril
Add rustbot features related to PR state labels It makes rustbot add `S-waiting-on-review` to every new PR, and ``@rustbot` author` and ``@rustbot` review` commands working.
Configuration menu - View commit details
-
Copy full SHA for ad633db - Browse repository at this point
Copy the full SHA ad633dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f09c72 - Browse repository at this point
Copy the full SHA 6f09c72View commit details -
Auto merge of rust-lang#13546 - Veykril:unsafe-fn-ptr, r=Veykril
Lower unsafety of fn pointer and fn item types
Configuration menu - View commit details
-
Copy full SHA for cd26032 - Browse repository at this point
Copy the full SHA cd26032View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26b5621 - Browse repository at this point
Copy the full SHA 26b5621View commit details -
Auto merge of rust-lang#13541 - Veykril:dbg-cmd, r=Veykril
Clarify what commands are debug commands in VSCode Renders as ![image](https://user-images.githubusercontent.com/3757771/199828895-4d7691f6-5c33-405c-9842-691b32745919.png)
Configuration menu - View commit details
-
Copy full SHA for 66900a7 - Browse repository at this point
Copy the full SHA 66900a7View commit details
Commits on Nov 5, 2022
-
Auto merge of rust-lang#13454 - justinmmott:master, r=flodiebold
Fixed local shadowing the caller's argument issue fix rust-lang/rust-analyzer#12536
Configuration menu - View commit details
-
Copy full SHA for df38770 - Browse repository at this point
Copy the full SHA df38770View commit details -
Configuration menu - View commit details
-
Copy full SHA for 17619de - Browse repository at this point
Copy the full SHA 17619deView commit details -
Auto merge of rust-lang#13549 - Veykril:search-fix, r=Veykril
fix: Fix reference searching only accounting substrings instead of whole identifiers Fixes rust-lang/rust-analyzer#13498
Configuration menu - View commit details
-
Copy full SHA for 2c37e7d - Browse repository at this point
Copy the full SHA 2c37e7dView commit details -
Auto merge of rust-lang#13379 - DropDemBits:ide-assists-format-args-c…
…apture, r=Veykril internal: Migrate `ide_assists::utils` and `ide_assists::handlers` to use format arg captures (part 1) This not only serves as making future migration to mutable syntax trees easier, it also finds out what needs to be migrated in the first place. ~~Aside from the first commit, subsequent commits are structured to only deal with one file/handler at a time.~~ This is the first of 3 PRs, migrating: Utils: - `gen_trait_fn_body` - `render_snippet` - `ReferenceConversion` - `convert_type` - `getter` Handlers: - `add_explicit_type` - `add_return_type` - `add_turbo_fish` - `apply_demorgan` - `auto_import` - `convert_comment_block` - `convert_integer_literal` - `convert_into_to_from` - `convert_iter_for_each_to_for` - `convert_let_else_to_match` - `convert_tuple_struct_to_named_struct` - `convert_two_arm_bool_match_to_matches_macro` - `destructure_tuple_binding` - `extract_function` - `extract_module` - `extract_struct_from_enum_variant` - `extract_type_alias` - `extract_variable` - `fix_visibility`
Configuration menu - View commit details
-
Copy full SHA for afe8f6b - Browse repository at this point
Copy the full SHA afe8f6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for ef46168 - Browse repository at this point
Copy the full SHA ef46168View commit details -
Auto merge of rust-lang#13435 - DropDemBits:assists-format-args-captu…
…re-pt3, r=Veykril Migrate assists to format args captures, part 3 Continuation of rust-lang/rust-analyzer#13379 Migrates: - `inline_call` - `inline_local_variable` - `introduce_named_lifetime` - `merge_match_arms` - `move_from_mod_rs` - `move_guard` - `move_module_to_file` - `move_to_mod_rs` - `number_representation` - `qualify_method_call` - `qualify_path` - `raw_string` - `remove_dbg` - `replace_derive_with_manual_impl` - `replace_or_with_or_else` - `replace_turbofish_with_explicit_type` - `unwrap_tuple` - `wrap_return_type_in_result`
Configuration menu - View commit details
-
Copy full SHA for 25b1d6f - Browse repository at this point
Copy the full SHA 25b1d6fView commit details -
Auto merge of rust-lang#13536 - pd4d10:patch-1, r=Veykril
docs: add crates section to the manual closes rust-lang#13533 Added a section to the user manual, to make it easier for users to find the correct crate.
Configuration menu - View commit details
-
Copy full SHA for c06bbfb - Browse repository at this point
Copy the full SHA c06bbfbView commit details -
Auto merge of rust-lang#13550 - Veykril:issue-template, r=lnicola
minor: Update github issue templates
Configuration menu - View commit details
-
Copy full SHA for e47460b - Browse repository at this point
Copy the full SHA e47460bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 935eb3f - Browse repository at this point
Copy the full SHA 935eb3fView commit details -
Auto merge of rust-lang#13556 - pd4d10:patch-1, r=lnicola
docs: fix adoc links Correct rust-lang#13536 with adoc link syntax
Configuration menu - View commit details
-
Copy full SHA for d03c1c8 - Browse repository at this point
Copy the full SHA d03c1c8View commit details
Commits on Nov 6, 2022
-
Configuration menu - View commit details
-
Copy full SHA for c199a39 - Browse repository at this point
Copy the full SHA c199a39View commit details -
Configuration menu - View commit details
-
Copy full SHA for a9edee7 - Browse repository at this point
Copy the full SHA a9edee7View commit details
Commits on Nov 9, 2022
-
Configuration menu - View commit details
-
Copy full SHA for aa5a326 - Browse repository at this point
Copy the full SHA aa5a326View commit details -
Ignore "Change InferCtxtBuilder from enter to build" in git blame
Because it changed the indentation of many things, this commit caused a lot of diff with no functional changes, so we should ignore it.
Configuration menu - View commit details
-
Copy full SHA for 35ef05a - Browse repository at this point
Copy the full SHA 35ef05aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4c197c0 - Browse repository at this point
Copy the full SHA 4c197c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f9bc6d - Browse repository at this point
Copy the full SHA 8f9bc6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e804b4 - Browse repository at this point
Copy the full SHA 0e804b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for dc76687 - Browse repository at this point
Copy the full SHA dc76687View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75b5a98 - Browse repository at this point
Copy the full SHA 75b5a98View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f0e376 - Browse repository at this point
Copy the full SHA 9f0e376View commit details -
Configuration menu - View commit details
-
Copy full SHA for fbce7de - Browse repository at this point
Copy the full SHA fbce7deView commit details -
Configuration menu - View commit details
-
Copy full SHA for e807cb3 - Browse repository at this point
Copy the full SHA e807cb3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9568138 - Browse repository at this point
Copy the full SHA 9568138View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff118a8 - Browse repository at this point
Copy the full SHA ff118a8View commit details
Commits on Nov 10, 2022
-
Rollup merge of rust-lang#102763 - compiler-errors:nits, r=cjgillot
Some diagnostic-related nits 1. Use `&mut Diagnostic` instead of `&mut DiagnosticBuilder<'_, T>` 2. Make `diag.span_suggestions` take an `IntoIterator` instead of `Iterator`, just to remove some `.into_iter` calls on the caller. idk if I should add a lint to make sure people use `&mut Diagnostic` instead of `&mut DiagnosticBuilder<'_, T>` in cases where we're just, e.g., adding subdiagnostics to the diagnostic... maybe a followup.
Configuration menu - View commit details
-
Copy full SHA for 4205ebd - Browse repository at this point
Copy the full SHA 4205ebdView commit details -
Rollup merge of rust-lang#103443 - mucinoab:recover-colon-as-path-sep…
…aretor, r=compiler-errors Parser: Recover from using colon as path separator in imports I don't know if this is the right approach, any feedback is welcome. r? `@compiler-errors` Fixes rust-lang#103269
Configuration menu - View commit details
-
Copy full SHA for 08046db - Browse repository at this point
Copy the full SHA 08046dbView commit details -
Rollup merge of rust-lang#104046 - RalfJung:run-miri-run, r=oli-obk
bootstrap: add support for running Miri on a file This enables: ``` ./x.py run src/tools/miri --stage 0 --args src/tools/miri/tests/pass/hello.rs ``` That can be super helpful for debugging. Also avoid sharing the Miri sysroot dir with a system-wide (rustup-managed) installation of Miri. Fixes rust-lang#76666
Configuration menu - View commit details
-
Copy full SHA for 81405ad - Browse repository at this point
Copy the full SHA 81405adView commit details -
Rollup merge of rust-lang#104115 - GuillaumeGomez:migrate-crate-searc…
…h-div, r=notriddle Migrate crate-search element to CSS variables There should no UI changes. r? `@notriddle`
Configuration menu - View commit details
-
Copy full SHA for f598efc - Browse repository at this point
Copy the full SHA f598efcView commit details -
Rollup merge of rust-lang#104190 - Nilstrieb:patch-1, r=compiler-errors
Ignore "Change InferCtxtBuilder from enter to build" in git blame Because it changed the indentation of many things, this commit caused a lot of diff with no functional changes, so we should ignore it. r? `@compiler-errors` as you've complained about this before The relevant commit: rust-lang@283abbf
Configuration menu - View commit details
-
Copy full SHA for 1a2aee6 - Browse repository at this point
Copy the full SHA 1a2aee6View commit details -
Rollup merge of rust-lang#104194 - BoxyUwU:early_binder_docs, r=compi…
…ler-errors `EarlyBinder` docs
Configuration menu - View commit details
-
Copy full SHA for a26b48a - Browse repository at this point
Copy the full SHA a26b48aView commit details -
Rollup merge of rust-lang#104201 - GuillaumeGomez:gui-test-check-file…
…-errors, r=notriddle Add check in GUI test for file loading failure Since rust-lang#101702, some resources location need to be updated in case their content changed because then their hash will change too. This will prevent errors like rust-lang#104114 to happen again. The second commit is to prevent CORS errors: when a file is linked from a file itself imported, the web browser considers they come from a different domain and therefore triggers the error. The option tells the web browser to ignore this case. cc `@jsha` r? `@notriddle`
Configuration menu - View commit details
-
Copy full SHA for 52f286d - Browse repository at this point
Copy the full SHA 52f286dView commit details -
Rollup merge of rust-lang#104211 - lnicola:rust-analyzer-2022-11-09, …
…r=lnicola ⬆️ rust-analyzer r? `@ghost`
Configuration menu - View commit details
-
Copy full SHA for 2b5db56 - Browse repository at this point
Copy the full SHA 2b5db56View commit details