about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-02-28Update cargoWeihang Lo-0/+0
2025-02-28Auto merge of #137753 - ChrisDenton:remove-sdk, r=Kobzolbors-3/+3
Remove latest Windows SDK from 32-bit CI This is an alternative to #137766, in case that doesn't work. It is in some ways simpler but is less principled and may be more flaky (as it involves deleting stuff). try-job: i686-msvc-1 try-job: i686-msvc-2 try-job: dist-i686-msvc
2025-02-28Have inline_local_variable use precedence calculation for parenthesesLukas Wirth-67/+44
2025-02-28support rust.channel = "auto-detect"Pietro Albini-1/+10
2025-02-28Merge pull request #19249 from Veykril/push-noosrywrsuvnLukas Wirth-11/+22
Fix prefix adjustment hints unnecessarily introducing parens
2025-02-28Fix prefix adjustment hints unnecessarily introducing parensLukas Wirth-11/+22
2025-02-28update enzyme to handle range metadataManuel Drehwald-0/+0
2025-02-28Build GCC on the Linux x64 dist runnerJakub Beránek-1/+1
2025-02-28Add `dist:Gcc` build stepJakub Beránek-0/+29
To distribute the prebuilt libgccjit.so from CI.
2025-02-28Merge pull request #19246 from ncrothers/add-anchor-for-associated-itemsLukas Wirth-7/+99
Add anchor for intra-doc links to associated items
2025-02-28add testbit-aloo-0/+24
2025-02-28Avoid suggesting redundant borrowing in completion resultsbit-aloo-3/+1
2025-02-28Auto merge of #137710 - matthiaskrgr:rollup-3vmxxu9, r=matthiaskrgrbors-163/+100
Rollup of 8 pull requests Successful merges: - #136542 ([`compiletest`-related cleanups 4/7] Make the distinction between root build directory vs test suite specific build directory in compiletest less confusing) - #136579 (Fix UB in ThinVec::flat_map_in_place) - #136688 (require trait impls to have matching const stabilities as the traits) - #136846 (Make `AssocOp` more like `ExprKind`) - #137304 (add `IntoBounds::intersect` and `RangeBounds::is_empty`) - #137455 (Reuse machinery from `tail_expr_drop_order` for `if_let_rescope`) - #137480 (Return unexpected termination error instead of panicing in `Thread::join`) - #137694 (Spruce up `AttributeKind` docs) r? `@ghost` `@rustbot` modify labels: rollup
2025-02-28Do not yeet unsafe<> from typeMichael Goulet-1/+10
2025-02-28Revert "Fix 32-bit MSVC CI"Chris Denton-3/+3
This reverts commit 6ea4823733254432aee255465177b8e53f01a79d.
2025-02-27Add anchor for intra-doc links to associated itemsNicholas Crothers-7/+99
2025-02-27doc: update Wasmtime flagsDaniPopes-2/+2
Wasmtime's `--wasm-features` and `--wasi-modules` flags have been renamed since these docs were initially written. Additionally, from my testing I don't believe `--wasm threads` is needed if `--wasi threads` is passed already.
2025-02-27Fix 32-bit MSVC CIJakub Beránek-3/+3
By throwing more hardware at it.
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-27Add missing case explanation for doc inlined re-export of doc hidden itemGuillaume Gomez-1/+16
2025-02-27Use original command for showing sccache statsJakub Beránek-1/+1
2025-02-27Delete tuple unsizingAlice Ryhl-74/+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-27Update to LLVM 20 rc 3Nikita Popov-0/+0
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-40/+57
[`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-27Auto merge of #132295 - the8472:remove-randomize-exclusion1, r=onur-ozkanbors-3/+2
fixed wast version was released, remove randomization exemption
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-26Re-enable `--generate-link-to-defintion` for tools internal rustdocAlona Enraght-Moony-3/+1
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/+13
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-26Rollup merge of #137670 - RalfJung:llvm-commit-logic-revert, r=KobzolLeón Orell Valerian Liehr-0/+1
revert accidental change in get_closest_merge_commit This was accidentally merged as part of https://github.com/rust-lang/rust/pull/137594. I need this local diff to be able to debug miri syncs, and then typed `git commit -a` too fast and didn't realize it includes this change... sorry for that. r? ``@Kobzol``