about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2025-02-28Rollup merge of #137693 - aDotInTheVoid:gaming, r=onur-ozkan,GuillaumeGomez许杰友 Jieyou Xu (Joe)-3/+1
Re-enable `--generate-link-to-defintion` for tools internal rustdoc ~~These were removed because they used to break the build: https://github.com/rust-lang/rust/pull/122066#issuecomment-1983049222, but testing locally it seems to work now.~~ This was re enabled in #136589, but only for rustc, not tools. The FIXME that prompted removing this is still present. Do we have an issue with an MCVE for this? CC ```@GuillaumeGomez``` https://github.com/rust-lang/rust/blob/ac91805f3179fc2225c60e8ccf5a1daa09d43f3d/src/librustdoc/html/render/span_map.rs#L178-L182 try-job: aarch64-apple
2025-02-28Rollup merge of #137676 - petrochenkov:winresp, r=Kobzol许杰友 Jieyou Xu (Joe)-11/+31
linker: Fix escaping style for response files on Windows If we use a С/С++ compiler as linker, then Posix-style escaping should be used. Also temporarily fixup rustbuild to not fail at least in common scenarios, until the bootstrap compiler is updated. Fixes https://github.com/rust-lang/rust/issues/137498
2025-02-28Rollup merge of #137778 - EnzymeAD:update-enzyme-range, r=oli-obk许杰友 Jieyou Xu (Joe)-0/+0
update enzyme to handle range metadata r? `@oli-obk` I landed two PRs over the last days, one of which is especially important because Enzyme now handles range metadata correctly. This allows a larger Rust project to compile. Tracking: - https://github.com/rust-lang/rust/issues/124509
2025-02-28Rollup merge of #137712 - meithecatte:extract-binding-mode, r=oli-obk许杰友 Jieyou Xu (Joe)-1/+0
Clean up TypeckResults::extract_binding_mode - Remove the `Option` from the result type, as `None` is never returned. - Document the difference from the `BindingMode` in `PatKind::Binding`.
2025-02-28Rollup merge of #137220 - ferrocene:pa-channel-ci, r=Kobzol许杰友 Jieyou Xu (Joe)-1/+10
Support `rust.channel = "auto-detect"` As [discussed in Zulip](https://rust-lang.zulipchat.com/#narrow/channel/326414-t-infra.2Fbootstrap/topic/vibe.20check.20for.20a.20few.20config.20changes), this PR adds the new `"auto-detect"` value for `rust.channel`, to load the channel name from `src/ci/channel`. Note that in a previous iteration of this PR the value was "ci" instead of "auto-detect".
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.