Commit Graph

303456 Commits

Author SHA1 Message Date
Jonathan Gruner
4aab8e88e4 document panic behavior of Vec::resize and Vec::resize_with 2025-04-08 00:00:38 +02:00
jackh726
d88e70c514 Port closure inference from rustc 2025-04-07 21:48:01 +00:00
Ralf Jung
e702f960f5 check_align: we can still check low alignments on MSVC 2025-04-07 23:30:55 +02:00
Ralf Jung
2678d04dd9 mitigate MSVC unsoundness by not emitting alignment attributes on win32-msvc targets
also mention the MSVC alignment issue in platform-support.md
2025-04-07 23:30:55 +02:00
sayantn
fbd13bd08c Add feature detection for new amx variants and movrs 2025-04-07 21:29:15 +00:00
sayantn
97606212ea Update SDE to 9.53.0 2025-04-07 21:29:15 +00:00
bors
c6c179662d Auto merge of #133781 - cjgillot:shallow-allowed-lints, r=petrochenkov
Do not visit whole crate to compute `lints_that_dont_need_to_run`.

This allows to reuse the computed lint levels instead of re-visiting the whole crate.
2025-04-07 21:03:55 +00:00
Michael Goulet
268c56e144 Implement overflow for infinite implied lifetime bounds 2025-04-07 21:01:24 +00:00
Michael Goulet
22d3c0d70a Prepend temp files with a string per invocation of rustc 2025-04-07 20:48:40 +00:00
Michael Goulet
68dd8b344a Prepend temp files with a string per invocation of rustc 2025-04-07 20:48:40 +00:00
Michael Goulet
9c372d8940 Prepend temp files with a string per invocation of rustc 2025-04-07 20:48:40 +00:00
Michael Goulet
3c3a6a2995 Simplify temp path creation a bit 2025-04-07 20:48:40 +00:00
Michael Goulet
ab84fe61ed Simplify temp path creation a bit 2025-04-07 20:48:40 +00:00
Michael Goulet
effef88ac7 Simplify temp path creation a bit 2025-04-07 20:48:40 +00:00
Michael Goulet
250b848272 Make error message for missing fields with .. and without .. more consistent 2025-04-07 20:45:08 +00:00
bjorn3
0e9a8540b0 Preserve rustc_literal_escaper with --sysroot llvm 2025-04-07 20:28:24 +00:00
Santiago Pastorino
4a0ea02e3a Only clone mir body if tcx.features().ergonomic_clones() 2025-04-07 16:53:12 -03:00
Santiago Pastorino
d6ad9e6191 Remove crash test that do not ICE anymore 2025-04-07 16:53:12 -03:00
Santiago Pastorino
dfa58e39c8 rustfmt does not support use closures yet 2025-04-07 16:53:11 -03:00
Santiago Pastorino
20f93c9e8e Add codegen test to be sure we get rid of uneeded clones after monomorphization 2025-04-07 16:53:11 -03:00
Santiago Pastorino
a0856eaff6 Add mir opt tests to be sure we generate copy, clones and moves when corresponds 2025-04-07 16:53:11 -03:00
Santiago Pastorino
9f69c66a47 Optimize codegen of use values that are copy post monomorphization 2025-04-07 16:53:11 -03:00
Santiago Pastorino
b9159e09a7 Use a local var for tcx 2025-04-07 16:53:11 -03:00
Santiago Pastorino
b078564fe6 Make use generated TerminatorKind::Call have call_source Use 2025-04-07 16:53:11 -03:00
Folkert de Vries
8866af3884 Add naked_functions_rustic_abi feature gate 2025-04-07 21:42:12 +02:00
bjorn3
25f263ded7 Rustup to rustc 1.88.0-nightly (2fa8b11f0 2025-04-06) 2025-04-07 19:40:28 +00:00
bjorn3
6b06289a16 Sync from rust 2fa8b11f09 2025-04-07 19:35:39 +00:00
Bennet Bleßmann
bc2912386f Revert "remove rust-analyser support for extern "rust-intrinsic" blocks"
This reverts commit 51b51b51d7.
2025-04-07 20:30:27 +02:00
Celina G. Val
b9754f9e7b Enable contracts for const functions
Use `const_eval_select!()` macro to enable contract checking only at
runtime. The existing contract logic relies on closures,
which are not supported in constant functions.

This commit also removes one level of indirection for ensures clauses,
however, it currently has a spurious warning message when the bottom
of the function is unreachable.
2025-04-07 11:17:33 -07:00
Michael Goulet
14d1215719 Restrict some queries by def-kind more 2025-04-07 18:10:28 +00:00
Alejandra González
f74d7ce813 Enable canonicalization of issue links in triagebot (#14563)
This PR enables to the canonicalization of issue links in triagebot.

Documentation pending at
https://github.com/rust-lang/rust-forge/pull/825

changelog: add `[canonicalize-issue-links]` in `triagebot.toml`
2025-04-07 17:09:57 +00:00
Ralf Jung
a7400a8b90 update intrinsics/mod.rs comment about const intrinsics 2025-04-07 19:06:34 +02:00
rustbot
2fb550bd54 Update books 2025-04-07 19:01:05 +02:00
Urgau
8b9165cc76 Enable canonicalization of issue links in triagebot.toml 2025-04-07 18:56:03 +02:00
Vadim Petrochenkov
fd854a772e compiletest: Avoid ignoring empty diagnostics in one more place
This catches some silly notes emitted by rustc, which should ideally be fixed
2025-04-07 19:43:41 +03:00
Ralf Jung
e1a69da856 unstable-book/intrinsics: wordsmith MIR-lowering intrinsic docs 2025-04-07 18:17:00 +02:00
Vadim Petrochenkov
5c160f511e compiletest: Stricter parsing for diagnostic kinds 2025-04-07 19:13:31 +03:00
Vadim Petrochenkov
b86b3fb640 compiletest: Always preserve kind for compiler diagnostics
Those that didn't previously preserved kind are now marked as not requiring annotations to keep the previous behavior.

Also, do not lose diagnostics with an empty message.
2025-04-07 19:13:30 +03:00
Vadim Petrochenkov
42048ea122 compiletest: Cleanup collection of actual errors 2025-04-07 19:13:30 +03:00
geetanshjuneja
7b37e91f22 cargo xtask tidy 2025-04-07 21:41:26 +05:30
geetanshjuneja
ac3a2b9ca9 added children modules 2025-04-07 21:14:01 +05:30
Jakub Beránek
6ece1de0cd Add job summary links to post-merge report
This should make it much easier to investigate the individual job changes.
2025-04-07 17:42:44 +02:00
Guillaume Gomez
30f56df6f9 Add regression test for #139282 2025-04-07 17:28:46 +02:00
Guillaume Gomez
39c6b6c7d2 Fix CSS 2025-04-07 17:28:46 +02:00
Ralf Jung
0da46d1065 targest → targets (spotted as I had the same typo) 2025-04-07 17:00:28 +02:00
Ralf Jung
da0b9a2b89 f*::NAN: guarantee that this is a quiet NaN 2025-04-07 17:00:15 +02:00
onur-ozkan
cae28b5119 implement check step for compiletest separately
Signed-off-by: onur-ozkan <work@onurozkan.dev>
2025-04-07 16:23:44 +03:00
bors
e643f59f6d Auto merge of #139482 - Zalathar:rollup-h2ht1y6, r=Zalathar
Rollup of 9 pull requests

Successful merges:

 - #139035 (Add new `PatKind::Missing` variants)
 - #139108 (Simplify `thir::PatKind::ExpandedConstant`)
 - #139112 (Implement `super let`)
 - #139365 (Default auto traits: fix perf)
 - #139397 (coverage: Build the CGU's global file table as late as possible)
 - #139455 ( Remove support for `extern "rust-intrinsic"` blocks)
 - #139461 (Stop calling `source_span` query in significant drop order code)
 - #139465 (add sret handling for scalar autodiff)
 - #139466 (Trivial tweaks to stop tracking source span directly)

r? `@ghost`
`@rustbot` modify labels: rollup
2025-04-07 12:58:15 +00:00
Stuart Cook
6e0b67419c Rollup merge of #139466 - compiler-errors:trivial-incr-tainting, r=oli-obk
Trivial tweaks to stop tracking source span directly

Firstly, remove some unnecessary work from `sccs_info`. This included debug printing which ends up giving all mir borrowck queries a dependency edge from the query to `source_span` (I think?).

Secondly, turn some calls from `hir_span` (which does some span adjustment, and thus incurs span tracking, which causes a dependency edge from the query to `source_span`) to `def_span`, which should cache better.

r? oli-obk
2025-04-07 22:29:22 +10:00
Stuart Cook
5863b426b9 Rollup merge of #139465 - EnzymeAD:autodiff-sret, r=oli-obk
add sret handling for scalar autodiff

r? `@oli-obk`

Fixing one of the todo's which I left in my previous batching PR.
This one handles sret for scalar autodiff.  `sret` mostly shows up when we try to return a lot of scalar floats.
People often start testing autodiff which toy functions which just use a few scalars as inputs and outputs, and those were the most likely to be affected by this issue. So this fix should make learning/teaching hopefully a bit easier.

Tracking:

- https://github.com/rust-lang/rust/issues/124509
2025-04-07 22:29:21 +10:00