about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2024-08-12Allow new license combinationLukas Wirth-0/+1
2024-08-12Only keep lib/ in publish-libsLaurențiu Nicola-3/+2
2024-08-12Auto merge of #17850 - Veykril:rust-analyzer-crate, r=Veykrilbors-27/+71
internal: Reply to requests with defaults when vfs is still loading There is no reason for us to hit the database with queries when we certainly haven't reached a stable state yet. Instead we just reply with default request results until we are in a state where we can do meaningful work. This should save us from wasting resources while starting up at worst, and at best save us from creating query and interning entries that are non-meaningful which ultimately just end up wasting memory.
2024-08-12Auto merge of #17860 - Veykril:publish-libs, r=Veykrilbors-2/+2
fix: Fix publish libs workflow
2024-08-12internal: Reply to requests with defaults when vfs is still loadingLukas Wirth-27/+71
2024-08-12fix: Fix publish libs workflowLukas Wirth-2/+2
2024-08-12minor: Bump lockfileLukas Wirth-134/+160
2024-08-12Auto merge of #17843 - mo8it:flycheck, r=Veykrilbors-36/+38
internal: Performance optimizations - Use `Command::arg` directly - Avoid the overhead of the `select!` macro when possible - Use `select_biased!`
2024-08-12Auto merge of #17842 - mo8it:crossbeam-channel, r=Veykrilbors-34/+41
internal: Optimize the usage of channel senders Used `Sender` directly instead of a boxed closure. There is no need to use the boxed closure. This also allows the caller to decide to do something other than `unwrap` (not a fan of it BTW).
2024-08-12Auto merge of #17859 - Veykril:rustc_deprecated_safe_2024, r=Veykrilbors-19/+44
fix: Correctly support `#[rustc_deprecated_safe_2024]` Fixes https://github.com/rust-lang/rust-analyzer/issues/17852
2024-08-12Auto merge of #3798 - RalfJung:miri-script-remap-path-prefix, r=saethlinbors-115/+135
miri-script: use --remap-path-prefix to print errors relative to the right root Inspired by https://github.com/rust-lang/rust-clippy/pull/13232, this makes it so that when cargo-miri fails to build, `./miri check` will print errors with paths like `cargo-miri/src/setup.rs`. That means we can get rid of the miri-symlink-hacks and instead tell RA to just always invoke the `./miri clippy` script just once, in the root. This means that we can no longer share a target dir between cargo-miri and miri as the RUSTFLAGS are different to crates that are shared in the dependency tree need to be built twice with two different flags. `miri-script` hence now has to set the MIRI environment variable to tell the `cargo miri setup` invocation where to find Miri. I also made it so that errors in miri-script itself are properly shown in RA, for which the `./miri` shell wrapper needs to set the right flags.
2024-08-12fix: Correctly support `#[rustc_deprecated_safe_2024]`Lukas Wirth-19/+44
2024-08-12Use the send methodmo8it-31/+23
2024-08-12Add more track_callermo8it-1/+3
2024-08-12Add track_callermo8it-0/+1
2024-08-12Revert "Remove unneeded `send` method"mo8it-28/+32
This reverts commit 567bde603cfeedb5cfc44e441578c5416bfc4f35.
2024-08-12miri weak memory emulation: initialize store buffer only on atomic writes; ↵Ralf Jung-108/+152
pre-fill with previous value
2024-08-12fix tree borrows Unique testRalf Jung-11/+7
2024-08-12Auto merge of #17833 - edevil:fix_expansion_limit, r=Veykrilbors-2/+8
Reuse recursion limit as expansion limit A configurable recursion limit was introduced by looking at the recursion_limit crate attribute. Instead of relying on a global constant we will reuse this value for expansion limit as well. Addresses: https://github.com/rust-lang/rust-analyzer/issues/8640#issuecomment-2271740272
2024-08-12clippy fixRalf Jung-6/+2
2024-08-12Auto merge of #17845 - ShoyuVanilla:tait, r=Veykrilbors-188/+288
feat: Implement TAIT and fix ATPIT a bit Closes #16296 (Commented on the issue) In #16852, I implemented ATPIT, but as I didn't discern ATPIT and other non-assoc TAIT, I guess that it has been working for some TAITs. As the definining usage of TAIT requires it should be appear in the Def body's type(const blocks' type annotations or functions' signatures), this can be done in simlilar way with ATPIT And this PR also corrects some defining-usage resolution for ATPIT
2024-08-12Merge from rustcRalf Jung-4100/+6020
2024-08-12Preparing for merge from rustcRalf Jung-1/+1
2024-08-12josh-proxy: fix wait-for-josh logicRalf Jung-9/+14
2024-08-12Auto merge of #126793 - saethlin:mono-rawvec, r=scottmcmbors-8/+11
Apply "polymorphization at home" to RawVec The idea here is to move all the logic in RawVec into functions with explicit size and alignment parameters. This should eliminate all the fussing about how tweaking RawVec code produces large swings in compile times. This uncovered https://github.com/rust-lang/rust-clippy/issues/12979, so I've modified the relevant test in a way that tries to preserve the spirit of the test without tripping the ICE.
2024-08-11Auto merge of #122362 - Zoxc:rustc_driver_static_std, ↵bors-0/+13
r=oli-obk,lqd,bjorn3,Kobzol Link `std` statically in `rustc_driver` This makes `rustc_driver` statically link to `std`. This is done by not passing `-C prefer-dynamic` when building `rustc_driver`. However building `rustc-main` won't work currently as it tries to dynamically link to both `rustc_driver` and `std` resulting in a crate graph with `std` duplicated. To fix that new command line option `-Z prefer_deps_of_dynamic` is added which prevents linking to a dylib if there's a static variant of it already statically linked into another dylib dependency. The main motivation for this change is to enable `#[global_allocator]` to be used in `rustc_driver` allowing overriding the allocator used in rustc on all platforms. --- Instead of adding `-Z prefer_deps_of_dynamic`, this PR is changed to crate opt-in to the linking change via the `rustc_private` feature instead, as that would be typically needed to link to `rustc_driver` anyway. --- try-job: aarch64-apple try-job: x86_64-msvc try-job: i686-mingw try-job: dist-x86_64-msvc try-job: aarch64-gnu
2024-08-11Fix deadlockmo8it-0/+6
2024-08-11Rollup merge of #128592 - evelynharthbrooke:master, r=Mark-SimulacrumMatthias Krüger-2/+1
Promote aarch64-apple-darwin to Tier 1 This promotes aarch64-apple-darwin to Tier 1 status as per rust-lang/rfcs#3671 and tracking issue #73908. Not sure what else is necessary for this to impement the aforementioned RFC, however I figured I'd try. I did read in previous issues and PRs that the necessary infrastructure was already in place for the aarch64-apple-darwin target, and the RFC mentions the same. So this should be all thats necessary in order for the target to be promoted. This is a recreation of my previous PR because I accidentally did an incorrect git rebase which caused unnecessary changes to various commit SHAs. So this PR is a recreation of my previous PR without said stumble. My bad.
2024-08-11Link `std` statically in `rustc_driver`John Kåre Alsaker-0/+13
2024-08-10Fix and enable disabled codegen-units testsBen Kimock-1/+7
2024-08-10Add test for thin archive reading supportbjorn3-0/+6
2024-08-10Auto merge of #17844 - Veykril:find-path-std-fix, r=Veykrilbors-104/+124
fix: Fix find_path not respecting non-std preference config correctly Fixes https://github.com/rust-lang/rust-analyzer/issues/17840
2024-08-10Add comments regarding workspace structure change queryingLukas Wirth-0/+8
2024-08-10Move some stuffLukas Wirth-60/+50
2024-08-10Auto merge of #3799 - RalfJung:josh-wait, r=RalfJungbors-19/+20
josh: wait until the socket is ready
2024-08-10josh: wait until the socket is readyRalf Jung-19/+20
2024-08-10CI: we now need the nightly toolchain as wellRalf Jung-0/+4
2024-08-10miri-script: pass around the relative crate dir, not the absolute path to ↵Ralf Jung-34/+28
the toml file
2024-08-10add './miri doc' commandRalf Jung-1/+21
2024-08-10update suggested RA config; the './miri cargo' command is not needed any moreRalf Jung-21/+6
2024-08-10miri-script: use --remap-path-prefix to print errors relative to the right rootRalf Jung-75/+92
2024-08-10Fixes in various placesNadrieril-4/+10
2024-08-10Auto merge of #3795 - tiif:ice-layout-limit, r=RalfJungbors-3/+68
throw_unsup_format for alignment greater than 2^29 Fixes #3687
2024-08-10fix: Fix find_path not respecting non-std preference config correctlyLukas Wirth-104/+124
2024-08-10feat: Implement TAITShoyu Vanilla-188/+288
2024-08-10Avoid the overhead of select! when possiblemo8it-3/+6
2024-08-09Add a FIXME to the changed Miri testBen Kimock-0/+2
2024-08-09Bless MiriBen Kimock-3/+5
2024-08-09Paper over the clippy ICEBen Kimock-5/+4
2024-08-10Use select_biasedmo8it-7/+8