about summary refs log tree commit diff
path: root/src/tools
AgeCommit message (Collapse)AuthorLines
2025-02-28Avoid suggesting redundant borrowing in completion resultsbit-aloo-3/+1
2025-02-28Do not yeet unsafe<> from typeMichael Goulet-1/+10
2025-02-27Add anchor for intra-doc links to associated itemsNicholas Crothers-7/+99
2025-02-27Update Node.js, vscode, and ts depsBenjaminBrienen-1740/+2598
2025-02-27Warn when the used toolchain looks too old for rust-analyzerLukas Wirth-114/+140
2025-02-27Allow unsetting default cfgsLukas Wirth-64/+96
2025-02-27ignore another test that fails on windowsBenjaminBrienen-1/+1
2025-02-27ignore doc test that only fails on windowsBenjaminBrienen-1/+1
2025-02-27Remove unneeded importAlice Ryhl-2/+0
2025-02-27fix doc testsBenjaminBrienen-61/+75
2025-02-27enable doctestBenjaminBrienen-30/+0
2025-02-27Merge pull request #4215 from RalfJung/before_terminatorRalf Jung-1/+2
before_terminator: add some minor clarifying comments
2025-02-27before_terminator: add some minor clarifying commentsRalf Jung-1/+2
2025-02-27fix testing for packages with multiple targetsduncan-143/+186
fix test running by invoking cargo per package remove hack_recover_crate_name make clippy happy fix testing for packages with multiple targets fix test running by invoking cargo per package remove hack_recover_crate_name make clippy happy fix testing for packages with multiple targets fix bad merge replace TargetKind::fmt with TargetKind::as_cargo_target to clarify intention dedupulicate requested test runs replace ParseFromLine with CargoParser formatting - remove trailing space formatting for rustfmt CI
2025-02-27Fix sysroot crate-graph construction not mapping crate-ids for proc-macrosLukas Wirth-2/+5
2025-02-27Merge pull request #19230 from lnicola/zigLaurențiu Nicola-40/+49
internal: set up Zig on CI and start using it in rust-analyzer
2025-02-27Merge pull request #19096 from darichey/rust-project-sysrootLukas Wirth-1228/+146
Allow rust-project.json to specify sysroot workspace
2025-02-27Delete tuple unsizingAlice Ryhl-47/+0
2025-02-27Clean up TypeckResults::extract_binding_modeMaja Kądziołka-1/+0
- Remove the `Option` from the result type, as `None` is never returned. - Document the difference from the `BindingMode` in `PatKind::Binding`.
2025-02-27Rollup merge of #136846 - nnethercote:make-AssocOp-more-like-ExprKind, ↵Matthias Krüger-123/+43
r=spastorino Make `AssocOp` more like `ExprKind` This is step 1 of [MCP 831](https://github.com/rust-lang/compiler-team/issues/831). r? ``@estebank``
2025-02-27Rollup merge of #136542 - jieyouxu:build-base, r=onur-ozkanMatthias Krüger-38/+51
[`compiletest`-related cleanups 4/7] Make the distinction between root build directory vs test suite specific build directory in compiletest less confusing Reference for overall changes: https://github.com/rust-lang/rust/pull/136437 Part **4** of **7** of the *`compiletest`-related cleanups* PR series. ### Summary - Remove `--build-base` compiletest flag, and introduce `--build-{root,test-suite-root}` flags instead. `--build-base` previously actually is test suite specific build directory, not the root `build/` directory. - Feed the root build directory directly from bootstrap to compiletest via `--build-root` instead of doing multiple layers of parent unwrapping[^parent] based on the test suite specific build directory. - Remove a redundant `to_path_buf()`. [^parent]: Please do not unwrap the parents. r? bootstrap
2025-02-27Cofigurate out ohos target to avoid compilation crashesLuuuXXX-5/+7
2025-02-27Rename `AssocOp::As` as `AssocOp::Cast`.Nicholas Nethercote-7/+7
To match `ExprKind::Cast`, and because a semantic name makes more sense here than a syntactic name.
2025-02-27Replace `AssocOp::DotDot{,Eq}` with `AssocOp::Range`.Nicholas Nethercote-22/+8
It makes `AssocOp` more similar to `ExprKind` and makes things a little simpler. And the semantic names make more sense here than the syntactic names.
2025-02-27Introduce `AssocOp::Binary`.Nicholas Nethercote-43/+28
It mirrors `ExprKind::Binary`, and contains a `BinOpKind`. This makes `AssocOp` more like `ExprKind`. Note that the variants removed from `AssocOp` are all named differently to `BinOpToken`, e.g. `Multiply` instead of `Mul`, so that's an inconsistency removed. The commit adds `precedence` and `fixity` methods to `BinOpKind`, and calls them from the corresponding methods in `AssocOp`. This avoids the need to create an `AssocOp` from a `BinOpKind` in a bunch of places, and `AssocOp::from_ast_binop` is removed. `AssocOp::to_ast_binop` is also no longer needed. Overall things are shorter and nicer.
2025-02-27In `AssocOp::AssignOp`, use `BinOpKind` instead of `BinOpToken`Nicholas Nethercote-55/+4
`AssocOp::AssignOp` contains a `BinOpToken`. `ExprKind::AssignOp` contains a `BinOpKind`. Given that `AssocOp` is basically a cut-down version of `ExprKind`, it makes sense to make `AssocOp` more like `ExprKind`. Especially given that `AssocOp` and `BinOpKind` use semantic operation names (e.g. `Mul`, `Div`), but `BinOpToken` uses syntactic names (e.g. `Star`, `Slash`). This results in more concise code, and removes the need for various conversions. (Note that the removed functions `hirbinop2assignop` and `astbinop2assignop` are semantically identical, because `hir::BinOp` is just a synonum for `ast::BinOp`!) The only downside to this is that it allows the possibility of some nonsensical combinations, such as `AssocOp::AssignOp(BinOpKind::Lt)`. But `ExprKind::AssignOp` already has that problem. The problem can be fixed for both types in the future with some effort, by introducing an `AssignOpKind` type.
2025-02-26Drop support for stitched sysrootDavid Richey-1168/+12
2025-02-26Allow rust-project.json to specify sysroot workspaceDavid Richey-61/+135
2025-02-26Support raw-dylib link kind on ELFNoratrieb-0/+12
raw-dylib is a link kind that allows rustc to link against a library without having any library files present. This currently only exists on Windows. rustc will take all the symbols from raw-dylib link blocks and put them in an import library, where they can then be resolved by the linker. While import libraries don't exist on ELF, it would still be convenient to have this same functionality. Not having the libraries present at build-time can be convenient for several reasons, especially cross-compilation. With raw-dylib, code linking against a library can be cross-compiled without needing to have these libraries available on the build machine. If the libc crate makes use of this, it would allow cross-compilation without having any libc available on the build machine. This is not yet possible with this implementation, at least against libc's like glibc that use symbol versioning. The raw-dylib kind could be extended with support for symbol versioning in the future. This implementation is very experimental and I have not tested it very well. I have tested it for a toy example and the lz4-sys crate, where it was able to successfully link a binary despite not having a corresponding library at build-time.
2025-02-26Add new `Rustdoc::emit` method in `run-make-support`Guillaume Gomez-0/+7
2025-02-26Merge pull request #19220 from Shourya742/2025-02-24-nit-setup-docLaurențiu Nicola-4/+10
doc: remove nit from setup.md
2025-02-26Use cargo zigbuild for releasesLaurențiu Nicola-40/+49
2025-02-26Merge pull request #19225 from Giga-Bowser/remove-assistsLukas Wirth-43/+253
internal: Migrate some low-hanging `remove_*` assists to `SyntaxEditor`
2025-02-26Update ui testOli Scherer-3/+3
2025-02-26Merge pull request #4210 from tiif/small-fix-2Oli Scherer-6/+2
Resolve more FIXMEs
2025-02-26Merge pull request #19204 from kazatsuyu/allow-package-specific-featureChayim Refael Friedman-1/+3
Allow "package/feature" format feature flag
2025-02-26fmtThe Miri Cronjob Bot-1/+0
2025-02-26Merge from rustcThe Miri Cronjob Bot-36/+47
2025-02-26Preparing for merge from rustcThe Miri Cronjob Bot-1/+1
2025-02-26Resolve more FIXMEstiif-6/+2
2025-02-25Auto merge of #137594 - RalfJung:miri-sync, r=RalfJungbors-297/+714
Miri subtree update r? `@ghost` try-job: x86_64-gnu-aux
2025-02-25disable float non-determinism for now to be able to complete the syncRalf Jung-35/+47
2025-02-25internal: Migrate `remove_unused_param` assist to `SyntaxEditor`Giga Bowser-17/+71
2025-02-25fix: Properly handle removals in `SyntaxEditor`Giga Bowser-6/+18
2025-02-25internal: Migrate `remove_parentheses` assist to `SyntaxEditor`Giga Bowser-5/+14
2025-02-25internal: Migrate `remove_mut` assist to `SyntaxEditor`Giga Bowser-7/+8
2025-02-25internal: Improve reporting of intersecting changesGiga Bowser-8/+142
2025-02-25Revert accidental cargo submodule updateOli Scherer-0/+0
2025-02-25Merge from rustcRalf Jung-659/+879
2025-02-25Preparing for merge from rustcRalf Jung-1/+1