about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
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-4185/+6280
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-29/+39
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-11Fix debuginfo providers/testsBen Kimock-16/+16
2024-08-11Auto merge of #128677 - nikic:llvm19rc2, r=cuviperbors-0/+0
Update to LLVM 19 rc2 Update from ~rc1 to rc2. Fixes https://github.com/rust-lang/rust/issues/128555.
2024-08-11Auto merge of #122362 - Zoxc:rustc_driver_static_std, ↵bors-4/+58
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-7/+3
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-11Keep rustc's std copyJohn Kåre Alsaker-12/+1
2024-08-11Link `std` statically in `rustc_driver`John Kåre Alsaker-0/+4
2024-08-11Link `std` statically in `rustc_driver`John Kåre Alsaker-0/+3
2024-08-11Exclude just `std` from rustc depsJohn Kåre Alsaker-9/+5
2024-08-11Update the unstable bookJohn Kåre Alsaker-0/+11
2024-08-11Don't statically link `std` into `rustc_driver` for `windows-gnu`John Kåre Alsaker-4/+30
2024-08-11Link `std` statically in `rustc_driver`John Kåre Alsaker-5/+37
2024-08-10Distribute rustc_codegen_cranelift for Windowsbjorn3-12/+7
2024-08-10Auto merge of #128400 - petrochenkov:nowhole3, r=bjorn3bors-3/+1
linker: Remove the "`--whole-archive` in test mode" backcompat hack Fixes https://github.com/rust-lang/rust/issues/116910.
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-10Auto merge of #128927 - GuillaumeGomez:rollup-ei2lr0f, r=GuillaumeGomezbors-20/+28
Rollup of 8 pull requests Successful merges: - #128273 (Improve `Ord` violation help) - #128807 (run-make: explaing why fmt-write-bloat is ignore-windows) - #128903 (rustdoc-json-types `Discriminant`: fix typo) - #128905 (gitignore: Add Zed and Helix editors) - #128908 (diagnostics: do not warn when a lifetime bound infers itself) - #128909 (Fix dump-ice-to-disk for RUSTC_ICE=0 users) - #128910 (Differentiate between methods and associated functions in diagnostics) - #128923 ([rustdoc] Stop showing impl items for negative impls) r? `@ghost` `@rustbot` modify labels: rollup
2024-08-10Add comments regarding workspace structure change queryingLukas Wirth-0/+8
2024-08-10Move some stuffLukas Wirth-60/+50
2024-08-10Rollup merge of #128923 - GuillaumeGomez:negative-impls-items, r=fmeaseGuillaume Gomez-19/+27
[rustdoc] Stop showing impl items for negative impls Fixes https://github.com/rust-lang/rust/issues/128799. As discussed with `@fmease,` they have a broader patch in progress, so this (small) PR will at least allow for them to have a regression test. :) r? `@fmease`
2024-08-10Rollup merge of #128903 - kraktus:patch-3, r=aDotInTheVoidGuillaume Gomez-1/+1
rustdoc-json-types `Discriminant`: fix typo "when to complex" should obviously be "too complex"
2024-08-10Stop showing impl items for negative implsGuillaume Gomez-19/+27
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