about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2025-01-01Allow flyimporting excluded trait items if there is an exact match in the nameChayim Refael Friedman-3/+51
I.e. with `fn foo()`, don't complete at `x.fo|`, but complete (with imports) for `x.foo|`, since this is less likely to have false positives. I opted to only do that for flyimport, even though for basic imports there can also be snippet completion (completing the params list for a method), since this is less universally applicable and seems not so useful.
2025-01-01Allow excluding specific traits from completionChayim Refael Friedman-82/+1011
To be accurate, only their methods are excluded, the trait themselves are still available. I also excluded a bunch of std traits by default. Some less opinionated, like `AsRef`, which should never be used directly except in generic scenarios (and won't be excluded there), some more opinionated, like the ops traits, which I know some users sometimes want to use directly. Either way it's configurable. It should be pretty easy to extend support to excluding only specific methods, but I didn't do that currently. Traits configured to be excluded are resolved in each completion request from scratch. If this proves too expensive, it is easy enough to cache them in the DB.
2025-01-01Merge pull request #18757 from roife/fix-17812Lukas Wirth-97/+540
feat: support updating snapshot tests with codelens/hovering/runnables
2025-01-01internal: Do not render closure ids in hover messagesLukas Wirth-9/+3
They are not useful
2024-12-31cover guard patterns in clippy lintsMax Niederman-5/+21
2025-01-01Auto merge of #134988 - tgross35:rollup-s59bx7c, r=tgross35bors-0/+3
Rollup of 8 pull requests Successful merges: - #132474 (Add more mailmap entries) - #133486 (borrowck diagnostics: make `add_move_error_suggestions` use the HIR rather than `SourceMap`) - #134861 (Add GUI test for item info elements color) - #134968 (Print how to rebless Python formatting in tidy) - #134971 (chore: fix typos) - #134972 (add .mailmap entry for myself) - #134974 (Revert #119515 single line where clause style guide) - #134975 (Revert style guide rhs break) r? `@ghost` `@rustbot` modify labels: rollup
2024-12-31Rollup merge of #134968 - Kobzol:tidy-bless-log, r=NoratriebTrevor Gross-0/+3
Print how to rebless Python formatting in tidy Suggested [here](https://github.com/rust-lang/rust/pull/134964#discussion_r1900124882). r? ``@Noratrieb``
2024-12-31Update cargoWeihang Lo-0/+0
2024-12-31Merge pull request #18797 from profetia/issue10583Chayim Refael Friedman-34/+758
Fix replace-if-let-with-match generates non-exhausive match
2024-12-31Add back optimizationslucasholten-4/+8
2024-12-31Add back tests removed in #18080lucasholten-0/+19629
2024-12-31Add back crate graph deduplicationlucasholten-1/+4
2024-12-31Remove CARGO_RUSTC_CURRENT_DIRlucasholten-16/+4
2024-12-31Print how to rebless Python formatting in tidyJakub Beránek-0/+3
2024-12-31Fix replace-if-let-with-match generates non-exhausive matchyanglsh-44/+411
2024-12-31Base relative cargo configs onto the manifestLukas Wirth-14/+35
This is not correct, but should be equivalent in most cases
2024-12-31fix: Populate cargo config env vars for cratesLukas Wirth-83/+43
2024-12-31Rollup merge of #134918 - ChrisDenton:issue-70093, r=jieyouxuMatthias Krüger-2/+0
Windows: Enable issue 70093 link tests Tracking issue for `-Z link-native-libraries`: #134948 Tracking issue for `-Z link-directives`: #134947 `-Zlink-native-libraries=no` and `-Zlink-directives=no` *should* work on Windows, at least for msvc. The fly in ointment is that `default-linker-libraries` doesn't. On unixy platforms rustc calls another compiler which in turn calls the linker along with the default libraries. On MSVC rustc calls the linker directly therefore it would need to be the one to implement `default-linker-libraries`. Except it doesn't so we workaround that in the test by using `-C link-arg` to talk to the linker.
2024-12-31Merge pull request #18802 from roife/fix-18800Lukas Wirth-2/+1
fix: incorrect file_id used for ranges in outgoing calls
2024-12-31Merge pull request #18805 from Veykril/push-pzurvxvoolxsLukas Wirth-18/+12
internal: Implement `<RaSpanServer as SourceFile>::eq`
2024-12-31fix: incorrect file_id used for ranges in outgoing callsroife-2/+1
2024-12-31Implement `<RaSpanServer as SourceFile>::eq`Lukas Wirth-9/+9
2024-12-31Remove recursion_limit special casing in testsLukas Wirth-9/+3
2024-12-31Merge pull request #18758 from mgsloan/scip-unique-symbolsLukas Wirth-323/+618
Improve SCIP symbols
2024-12-31Merge from rustcThe Miri Cronjob Bot-141/+329
2024-12-31feat: show go-to-type-def actions for subst when hoveringroife-3/+57
2024-12-31Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2024-12-31Fix typosericlehong-3/+3
Signed-off-by: ericlehong <193237094+ericlehong@users.noreply.github.com>
2024-12-31Auto merge of #134929 - compiler-errors:style-edition-2024, r=ytmimibors-10/+6
Stabilize `style_edition = "2024"` in-tree This PR stabilizes the `style_edition` flag in rustfmt. **Why am I doing this in-tree?** The beta release cut is imminent (according to forge, on January 3) and this is the most lightweight approach to getting this flag stable on nightly. It's imperative (as far as I can tell -- `@traviscross` can verify or disagree) that we stabilize the `style_edition` flag so that users can control their style edition separately from the edition. I'm happy to move this PR to the rustfmt repo and subsequently prepare a subtree sync if someone on `@rust-lang/rustfmt` believes that we should get this landed on the rustfmt side then synced. If this is the right recourse, I'd like to note that this is still quite time-sensitive. However, I'm happy to dedicate time to get this done if necessary, since I'd really like to un-jeopardize the style edition. Tracking: - https://github.com/rust-lang/rust/issues/123799
2024-12-31Stabilize style_edition 2024 in-treeMichael Goulet-10/+6
2024-12-30Auto merge of #134757 - RalfJung:const_swap, r=scottmcmbors-10/+60
stabilize const_swap libs-api FCP passed in https://github.com/rust-lang/rust/issues/83163. However, I only just realized that this actually involves an intrinsic. The intrinsic could be implemented entirely with existing stable const functionality, but we choose to make it a primitive to be able to detect more UB. So nominating for `@rust-lang/lang` to make sure they are aware; I leave it up to them whether they want to FCP this. While at it I also renamed the intrinsic to make the "nonoverlapping" constraint more clear. Fixes #83163
2024-12-30Windows: Enable issue 70093 link testsChris Denton-2/+0
2024-12-30Move `container_to_definition` function into `enclosing_definition`Michael Sloan-19/+15
2024-12-30Remove erroneous omit of inherent implsMichael Sloan-9/+0
Should have been included in 34dc94bb2d05def8b88739a9382b127feb1a35a0
2024-12-30TODO -> FIXMEMichael Sloan-10/+12
2024-12-30Make `impl HirDisplay for TraitRef` provide just the trait typeMichael Sloan-68/+24
2024-12-30Add test cases for #10583yanglsh-0/+357
2024-12-30Rollup merge of #134922 - ericlehong:fix/typos, r=lqdMatthias Krüger-1/+1
Fix typos This PR fixes typos errors in comments, docs and logs. Thank you very much.
2024-12-30Rollup merge of #134911 - HigherOrderLogic:master, r=onur-ozkanMatthias Krüger-3/+3
chore: fix typos This PR fixes typos errors in docstring only, so functionality wise, it should stay the same.
2024-12-30fmtRalf Jung-2/+2
Co-authored-by: scottmcm <scottmcm@users.noreply.github.com>
2024-12-30deny usage of FileCheck prefixes as revision namesDavis Muro-0/+25
2024-12-30refactor snapshot-tests detection in runnablesroife-92/+104
2024-12-30Fix render of literal to be rendered in codeblockdfireBird-24/+65
2024-12-30Fix typosericlehong-1/+1
Signed-off-by: ericlehong <193237094+ericlehong@users.noreply.github.com>
2024-12-30Merge pull request #18790 from ChayimFriedman2/proper-makeLukas Wirth-60/+1672
internal: Create a quoting mechanism instead of textual AST make
2024-12-30Merge pull request #18794 from 1hakusai1/fix_fill_match_arm_in_tokio_mainLukas Wirth-9/+7
Fix bug of "fill match arm" action in tokio::main macro
2024-12-30Merge pull request #18793 from ChayimFriedman2/fixupLukas Wirth-14/+14
minor: Remove unneeded conversions
2024-12-30Fix bug of "fill match arm" action in tokio::main macro1hakusai1-9/+7
https://github.com/rust-lang/rust-analyzer/issues/18027
2024-12-30Remove unneeded conversionsChayim Refael Friedman-14/+14
2024-12-30Merge pull request #18792 from Veykril/push-wonkvzozmmwzLukas Wirth-315/+345
Decouple proc-macro server protocol from the server implementation