Commit Graph

303456 Commits

Author SHA1 Message Date
bors
e6af292f91 Auto merge of #138039 - onur-ozkan:handle-forced-compiler-on-tools, r=jieyouxu
handle forced compiler and revert #137476

Fixes https://github.com/rust-lang/rust/issues/138004

I would appreciate it if we could measure CI pipelines with the current changes to see if this reduces recent CI overhead. cc `@rust-lang/infra`

try-job: dist-powerpc64le-linux
2025-03-06 17:20:24 +00:00
Yotam Ofek
5d259224bd Manual, post-clippy --fix cleanups 2025-03-06 16:12:36 +00:00
Yotam Ofek
329b8a312d Implement Ord by-hand instead of PartialOrd for Link 2025-03-06 16:07:14 +00:00
Yotam Ofek
ccfbfe2292 x clippy src/librustdoc --fix 2025-03-06 16:06:41 +00:00
Redddy
6b14125102 Fix broken link to Miri intrinsics in documentation
Replaced the outdated link to https://github.com/rust-lang/miri/blob/master/src/shims/intrinsics with the correct link https://github.com/rust-lang/miri/tree/master/src/intrinsics in the library/core/src/intrinsics/mod.rs file.
2025-03-07 00:55:24 +09:00
Eric Huss
662d73514a Git ignore citool's target directory
Whenever running citool, it leaves behind a target directory. Ignore
this like we do for other tools.
2025-03-06 06:57:00 -08:00
bjorn3
4b7bcdbf9f Use the github cli to publish dev releases
This removes a whole bunch of complicated javascript with two lines of
bash.

Fixes rust-lang/rustc_codegen_cranelift#1562
2025-03-06 14:43:29 +00:00
DaniPopes
58c10c66c1 Lower BinOp::Cmp to llvm.{s,u}cmp.* intrinsics
Lowers `mir::BinOp::Cmp` (`three_way_compare` intrinsic) to the corresponding
LLVM `llvm.{s,u}cmp.i8.*` intrinsics, added in LLVM 19.
2025-03-06 22:29:05 +08:00
Tomasz Miąsko
c5b7a9c4b5 Factor out edge breaking code 2025-03-06 15:13:56 +01:00
lcnr
1fac14de23 fix typo
Co-authored-by: Rémy Rakic <remy.rakic+github@gmail.com>
2025-03-06 14:46:10 +01:00
Lukas Wirth
6a3ede1240 Merge pull request #19290 from aibaars/patch-1
Add warning and debug information when `cargo metadata` fails
2025-03-06 13:21:24 +00:00
bjorn3
aa31d42b39 Remove no longer necessary disabling of dylib usage for run-make tests
Run-make tests are now fully compiled using the bootstrap compiler.
2025-03-06 12:51:22 +00:00
bjorn3
75109ec1ba FIx rustc test suite 2025-03-06 12:46:54 +00:00
Arthur Baars
66a1164eeb Change %e to ?e to include detailed error message 2025-03-06 12:42:35 +00:00
bjorn3
f048c45018 Rustup to rustc 1.87.0-nightly (30f168ef8 2025-03-05) 2025-03-06 12:40:11 +00:00
LuuuXXX
4cd350f616 remove zip file in /tmp to save some space and use large runner 2025-03-06 20:34:28 +08:00
okaneco
d4c0c94577 Stabilize const_copy_from_slice feature
Stabilizes `copy_from_slice` method on `[T]`
2025-03-06 07:32:52 -05:00
bjorn3
41b355ac4b Sync from rust 30f168ef81 2025-03-06 12:16:04 +00:00
lcnr
71d688bb72 TypeVerifier do not walk into required consts 2025-03-06 12:53:35 +01:00
Rémy Rakic
7d6bbe2df7 expand comments of TyCtxt impl of DynSync/DynSend
so that it doesn't get removed again
2025-03-06 11:20:25 +00:00
Oli Scherer
a2c1211b6d Hide the end of ranges in pretty printing if it's also the maximum of the type 2025-03-06 10:50:23 +00:00
Oli Scherer
e5c1d1cb7e Remove the Option part of range ends in the HIR 2025-03-06 10:47:40 +00:00
Oli Scherer
e8f7a382be Remove the Option part of range ends in the HIR 2025-03-06 10:47:40 +00:00
lcnr
ad45962939 apply_closure_requirement use LocalDefId 2025-03-06 11:04:35 +01:00
Oli Scherer
0e7b283573 Avoid having to handle an Option in the type system 2025-03-06 10:03:11 +00:00
Oli Scherer
4f2b108816 Prefer a two value enum over bool 2025-03-06 10:03:11 +00:00
许杰友 Jieyou Xu (Joe)
515be00f0c Merge pull request #2269 from moxian/patch-1
Don't suggest explicitly `cfg`-gating `trace!` calls in bootstrap
2025-03-06 17:30:16 +08:00
Rémy Rakic
ca64815c70 Revert "rustc_middle: parallel: TyCtxt: remove "unsafe impl DynSend/DynSync""
This reverts commit 8eba29ac10.
2025-03-06 09:16:24 +00:00
moxian
e13af7abca Don't even bother checking changelog in --dry-run mode 2025-03-06 01:07:02 -08:00
Trevor Gross
1112886edc Use the v2 resolver in the workspace 2025-03-06 04:04:39 -05:00
Trevor Gross
2d8c362963 Migrate testcrate and panic-handler to edition 2024
Includes `extern` -> `unsafe extern` blocks and formatting updates.
2025-03-06 03:58:28 -05:00
xizheyin
7e199b10c9 Add ui test: suggest-struct-or-union-add-generic-impl-trait.rs
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
2025-03-06 16:23:23 +08:00
Yotam Ofek
fde37335aa librustdoc: flatten nested ifs 2025-03-06 08:16:28 +00:00
Lukas Wirth
2e6292c0f3 Merge pull request #19295 from alibektas/rust_analyzer_run_on_cargo_toml
fix: Make RustAnalyzer:Run available in manifest file
2025-03-06 08:08:56 +00:00
Lukas Wirth
86741ea6fd Merge pull request #19297 from Natural-selection1/master
Adjust relevance scoring threshold to consistent with existing implem…
2025-03-06 08:05:46 +00:00
yanglsh
a028651184 fix: missing_const_for_fn FP on unstable const traits 2025-03-06 14:25:06 +08:00
Scott McMurray
eae5ed609d Make is_le and friends work like clang's 2025-03-05 21:58:46 -08:00
Ralf Jung
b178f22bd8 Merge pull request #4220 from rust-lang/rustup-2025-03-06
Automatic Rustup
2025-03-06 05:58:06 +00:00
Scott McMurray
1b21952f02 Also add a MIR pre-codegen test for the derived PartialOrd::le 2025-03-05 21:45:16 -08:00
The Miri Cronjob Bot
f80cac723a Merge from rustc 2025-03-06 05:12:09 +00:00
The Miri Cronjob Bot
95a65704d9 Preparing for merge from rustc 2025-03-06 05:05:15 +00:00
Tongjun Gao
d95d2784da Adjust relevance scoring threshold to consistent with existing implementations 2025-03-06 10:14:39 +08:00
moxian
1be80d48fa Leave a breadcrumb towards bootstrap config documentation 2025-03-05 17:43:24 -08:00
moxian
571f95fb94 Remember silenced bootstrap changelog warnings even in --dry-run 2025-03-05 16:28:35 -08:00
moxian
243f5699d5 Don't suggest explicitly cfg-gating trace! calls in bootstrap 2025-03-05 15:34:48 -08:00
Tomasz Miąsko
5bae3adde9 Calculate predecessor count directly
Avoid allocating a vector of small vectors merely to determine how many
predecessors each basic block has.

Additionally use u8 and saturating operations. The pass only needs to
distinguish between [0..1] and [2..].
2025-03-06 00:25:46 +01:00
Tomasz Miąsko
508b803c44 Remove start block special case
Edges to the start block are invalid. The special case is unnecessary.
2025-03-06 00:23:15 +01:00
Catherine Flores
81643e297c unnecessary_to_owned: don't call iter() on a temporary object (#14243)
fix #14242

changelog: [`unnecessary_to_owned`]: don't call `iter` on a temporary
object
2025-03-05 23:17:32 +00:00
Jubilee Young
9d8ce72901 compiler: factor Windows x86-32 ABI impl into its own file
While it shares more than zero code with the SysV x86-32 ABI impl,
there is no particular reason to organize wildly different ABIs
using if-else in the same function.
2025-03-05 15:11:20 -08:00
Michael Goulet
181ef540cf Use final path segment for diagnostic 2025-03-05 23:06:54 +00:00