about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2025-01-03Merge pull request #18825 from Veykril/push-sllokkprznkqLukas Wirth-50/+81
minor: Encode TraitData bools as bitflags
2025-01-03run-make-support: add basic sanity tests for assertion helpers许杰友 Jieyou Xu (Joe)-0/+103
2025-01-03run-make-support: convert `assertion_helpers` to module许杰友 Jieyou Xu (Joe)-0/+0
2025-01-03minor: Encode TraitData bools as bitflagsLukas Wirth-50/+81
2025-01-03Merge pull request #18822 from bryceberger/targetdir-absoluteLukas Wirth-2/+1
allow targetDir to be an absolute path
2025-01-03Merge pull request #18327 from ChayimFriedman2/flat-ttLukas Wirth-2252/+2322
Store token trees in contiguous `Vec` instead of as a tree
2025-01-03turn rustc_box into an intrinsicRalf Jung-9/+8
2025-01-03Rollup merge of #131729 - Urgau:check-cfg-test-userspace, r=petrochenkovMatthias Krüger-2/+3
Make the `test` cfg a userspace check-cfg This PR implements MCP https://github.com/rust-lang/compiler-team/issues/785, which makes the `test` cfg a "userspace" check-cfg, i.e. no longer included in the well known cfg list. Things to do: - [x] Accept the MCP (https://github.com/rust-lang/compiler-team/issues/785#issuecomment-2424121886) - [x] Mark `test` in Cargo (https://github.com/rust-lang/cargo/pull/14963) `@rustbot` labels +S-waiting-on-MCP +F-check_cfg r? `@petrochenkov`
2025-01-03Merge from rustcThe Miri Cronjob Bot-15/+70
2025-01-03Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-01-02limit special `FileCheck` revision checksDavis Muro-11/+51
2025-01-02Auto merge of #122565 - Zoxc:atomic-panic-msg, r=the8472bors-0/+58
Try to write the panic message with a single `write_all` call This writes the panic message to a buffer before writing to stderr. This allows it to be printed with a single `write_all` call, preventing it from being interleaved with other outputs. It also adds newlines before and after the message ensuring that only the panic message will have its own lines. Before: ``` thread 'thread 'thread 'thread 'thread '<unnamed>thread 'thread 'thread 'thread '<unnamed><unnamed>thread '<unnamed>' panicked at ' panicked at <unnamed><unnamed><unnamed><unnamed><unnamed>' panicked at <unnamed>' panicked at src\heap.rssrc\heap.rs' panicked at ' panicked at ' panicked at ' panicked at ' panicked at src\heap.rs' panicked at src\heap.rs::src\heap.rssrc\heap.rssrc\heap.rssrc\heap.rssrc\heap.rs:src\heap.rs:455455:::::455:455::455455455455455:455:99:::::9:9: : 999: 999: assertion failed: size <= (*queue).block_size: : assertion failed: size <= (*queue).block_size: assertion failed: size <= (*queue).block_size: : : assertion failed: size <= (*queue).block_sizeassertion failed: size <= (*queue).block_sizeassertion failed: size <= (*queue).block_size assertion failed: size <= (*queue).block_size assertion failed: size <= (*queue).block_sizeassertion failed: size <= (*queue).block_sizeerror: process didn't exit successfully: `target\debug\direct_test.exe` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN) ``` After: ``` thread '<unnamed>' panicked at src\heap.rs:455:9: assertion failed: size <= (*queue).block_size thread '<unnamed>' panicked at src\heap.rs:455:9: assertion failed: size <= (*queue).block_size thread '<unnamed>' panicked at src\heap.rs:455:9: assertion failed: size <= (*queue).block_size error: process didn't exit successfully: `target\debug\direct_test.exe` (exit code: 0xc0000409, STATUS_STACK_BUFFER_OVERRUN) ``` --- try-jobs: x86_64-gnu-llvm-18
2025-01-02allow targetDir to be an absolute pathBryce Berger-2/+1
2025-01-02Store token trees in contiguous `Vec` instead of as a treeChayim Refael Friedman-2252/+2322
I expected this to be faster (due to less allocations and better cache locality), but benchmarked it is not (neither it is slower). Memory usage, however, drops by ~50mb (of `analysis-stats .`). I guess tt construction is just not hot. This also simplifies using even less memory for token trees by compressing equal span, which I plan to do right after. Some workflows are more easily expressed with a flat tt, while some are better expressed with a tree. With the right helpers, though (which was mostly a matter of trial and error), even the worst workflows become very easy indeed.
2025-01-02Make the `test` cfg a "userspace" check-cfgUrgau-2/+3
2025-01-02Remove rust-analyzer duplicate crates integration testslucasholten-332/+0
2025-01-02Automatically sort crate graphlucasholten-11/+7
2025-01-02fix no space insert before and after if value is only spacesdfireBird-2/+38
2025-01-02Merge pull request #4106 from shamb0/generalize-callback-miri-concurrencyRalf Jung-131/+171
Concurrency: Generalize UnblockCallback to MachineCallback
2025-01-02tweak docs a littleRalf Jung-35/+19
2025-01-02Fix overflow detection in MIR evaluationChayim Refael Friedman-19/+206
With a bit of higher-order macros everything sorts out well. And also fix a discovered bug when comparing long strings.
2025-01-02fix: Fix flycheck cancellations leaving stale errorsLukas Wirth-14/+18
2025-01-01Rollup merge of #134973 - ericlehong:fix-typo, r=GuillaumeGomezMatthias Krüger-3/+3
Fix typos This PR fixes typos errors in comments and docs. Thank you very much.
2025-01-01Fix testslucasholten-2/+2
2025-01-01Remove load_cargo_with_fake_sysrootlucasholten-54/+30
2025-01-01Try to write the panic message with a single `write_all` callJohn Kåre Alsaker-0/+58
2025-01-01Merge pull request #18179 from ChayimFriedman2/omit-trait-completionLukas Wirth-100/+1028
feat: Allow excluding specific traits from completion
2025-01-01CleanupLukas Wirth-68/+46
2025-01-01Revamp auto-import exclude configLukas Wirth-55/+169
2025-01-01Simplify completion config path resolutionsLukas Wirth-94/+49
2025-01-01Reduce the default autoimport exclusion listLukas Wirth-186/+90
2025-01-01Merge pull request #18809 from Veykril/push-ktwrzsmzlplwLukas Wirth-9/+3
internal: Do not render closure ids in hover messages
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.