Oli Scherer
65aac24a08
Avoid some eager uses of HIR spans
2025-06-30 08:45:43 +00:00
Oli Scherer
5ddae353fe
Stop requiring HIR for impl item wf checks
2025-06-30 08:45:43 +00:00
Oli Scherer
38ef94aef1
Stop requiring HIR for trait item wf checks
2025-06-30 08:45:43 +00:00
Oli Scherer
6166cd6b50
Avoid looking at HIR for trait and impl items
2025-06-30 08:45:43 +00:00
Oli Scherer
70215dfe61
Avoid eagerly loading the hir fn sig
2025-06-30 08:45:43 +00:00
Oli Scherer
5940109a04
Merge lower_trait_item and lower_impl_item into check_item_type
2025-06-30 08:45:43 +00:00
Oli Scherer
cb158c2119
Merge lower_item into check_item_type
2025-06-30 08:45:43 +00:00
Oli Scherer
632a921479
Move lazy type alias checks to non-hir-wfck
2025-06-30 08:45:43 +00:00
Oli Scherer
28f023c751
Use predicate spans instead of whole item spans
2025-06-30 08:45:43 +00:00
Oli Scherer
ee8fa4eb16
Check variances in the non-hir wfchecker
2025-06-30 08:45:43 +00:00
Oli Scherer
d27c05709c
Make variance wfcheck only use the HIR in the error path
2025-06-30 08:45:43 +00:00
Oli Scherer
362d4ddff4
Don't look at static items' HIR for wfcheck
2025-06-30 08:45:43 +00:00
Oli Scherer
9b5d57d0a9
Unconditionally run check_item_type on all items
2025-06-30 08:06:08 +00:00
Oli Scherer
d0bb9a73aa
Try increasing the repetition limit
2025-06-30 08:04:40 +00:00
Oli Scherer
bd3205c02b
Require either wrapping nullary intrinsincs in const blocks or explicitly deciding not to
2025-06-30 08:04:40 +00:00
Oli Scherer
d37a04d09d
Remove the nullary intrinsic const eval logic and treat them like other intrinsics
2025-06-30 08:04:40 +00:00
Oli Scherer
672e0bec9e
Stop backends from needing to support nullary intrinsics
2025-06-30 08:04:19 +00:00
Oli Scherer
cca072ca15
Make check_param_wf only go through the HIR in the error path
2025-06-30 08:04:11 +00:00
Oli Scherer
215009bd0c
Stop storing Span that is only used for checking for global bounds that do not hold
2025-06-30 08:04:11 +00:00
Kivooeo
c240566561
cleaned up some tests
2025-06-30 12:45:47 +05:00
Jieyou Xu
e664e7e116
Move RUST_TEST_NOCAPTURE warning to early config check
2025-06-30 15:17:28 +08:00
Jieyou Xu
f03074da23
Move compiletest main.rs to src/bin/
...
To make it obvious `compiletest`-the-tool has two components:
1. The core compiletest library, and
2. The tool binary, which will be executed by bootstrap.
2025-06-30 15:17:12 +08:00
Jieyou Xu
c8cef5bfaa
Move some early config checks to the compiletest lib
2025-06-30 15:03:17 +08:00
Kivooeo
bf5910d9bb
cleaned up some tests
2025-06-30 11:50:19 +05:00
Nicholas Nethercote
c3c995a275
Handle build scripts better in -Zmacro-stats output.
...
Currently all build scripts are listed as `build_script_build` in the
stats header. This commit uses `CARGO_PKG_NAME` to improve that.
I tried it on Bevy, it works well, giving output like this on the build
script:
```
MACRO EXPANSION STATS: serde build script
```
and this on the crate itself:
```
MACRO EXPANSION STATS: serde
```
2025-06-30 16:32:00 +10:00
Kivooeo
1e3a2b2d4a
cleaned up some tests
2025-06-30 11:23:01 +05:00
Kivooeo
580bc12844
cleaned up some tests
2025-06-30 11:16:18 +05:00
Lukas Wirth
863d0b5d53
Merge pull request #20124 from zachs18/patch-1
...
Remove last use of `rustc_pattern_analysis::Captures`
2025-06-30 05:32:04 +00:00
zachs18
bc06bb193d
Remove last use of rustc_pat_analysis::Captures
...
It's not necessary anymore due to Rust 2024 lifetime capture rules.
2025-06-29 22:36:53 -05:00
Nicholas Nethercote
e0761a57ab
Improve macro-stats printing.
...
By allowing long names to overlap with the "Uses" field when it has
spare space. This avoids unnecessary line breaks in the output.
2025-06-30 13:33:51 +10:00
Nicholas Nethercote
25a6fd3213
Augment the macro-stats test.
...
With a long macro name that could fit on one line, but currently isn't
formatted that way, because the name would overlap with the maximum
width of the "Uses" column. (The next commit will fix this.)
2025-06-30 12:53:00 +10:00
bors
f19142044f
Auto merge of #142941 - compiler-errors:shallow-bail, r=lcnr
...
Shallowly bail from `coerce_unsized` more
We do a *lot* of coercion in HIR typeck. Most of the time we're just coercing a type to itself, but we always try `coerce_unsized` even if it's not necessary.
Let's avoid doing that by adding a fast path to `coerce_unsized`; see the comment in that function.
2025-06-30 02:02:46 +00:00
antoyo
15d23bd30b
Merge pull request #723 from rust-lang/sync_from_rust_2025_06_28
...
Sync from rust 2025/06/28
2025-06-29 20:08:46 -04:00
zachs18
d98aaf7f80
Show auto trait and blanket impls for !
...
Add an empty `impl ! {}` so `rustdoc` generates auto trait impls and blanket impls on `!`'s documentation page.
2025-06-29 18:38:46 -05:00
Antoni Boucher
4347a9273f
Fix handling of __builtin_ia32_rdtscp
2025-06-29 19:29:49 -04:00
FractalFir
c57393e2ea
Regenerated intrinsics
2025-06-30 00:24:43 +02:00
FractalFir
88db5895ed
Changed intrinsic generation to include full intrinsic names in panic messages
2025-06-30 00:24:28 +02:00
Ralf Jung
67ab61e8ba
add float_nan test for powf
...
plus various minor tweaks
2025-06-29 22:32:31 +02:00
LorrensP-2158466
60a48287d7
make some powf and powi cases involving SNaN non-deterministic
2025-06-29 22:25:41 +02:00
bors
35f6036521
Auto merge of #142802 - compiler-errors:dedup-analyses, r=lcnr
...
Collapse Analysis|Borrowck|PostBorrowckAnalysis when there are no opaques
r? lcnr
2025-06-29 19:12:29 +00:00
Kivooeo
4feb5de34c
moved tests
2025-06-30 00:03:28 +05:00
Antoni Boucher
67d8469c26
Add support for a few missing LLVM intrinsics
2025-06-29 14:22:00 -04:00
Kivooeo
4b6c3d923f
moved & deleted some tests
2025-06-29 22:47:01 +05:00
bors
ed2d759783
Auto merge of #143137 - RalfJung:miri-sync, r=RalfJung
...
Miri subtree update
r? `@ghost`
2025-06-29 16:04:05 +00:00
Folkert de Vries
bcf51051ed
inherit #[align] from trait method prototypes
2025-06-29 17:22:45 +02:00
Chayim Refael Friedman
2a66a5b7d5
Merge pull request #20122 from chenyukang/yukang-fix-remove-parens
...
Remove unnecessary parens in closure
2025-06-29 15:14:31 +00:00
Antoni Boucher
769fb75119
Fix exactudiv and exactsdiv for gcc without 128-bit integers
2025-06-29 10:48:58 -04:00
Jieyou Xu
20d69c6c26
Re-disable tests/run-make/short-ice on Windows MSVC again
2025-06-29 22:29:12 +08:00
Anne Stijns
54cec0cf5a
Port #[link_section] to the new attribute parsing infrastructure
2025-06-29 16:23:46 +02:00
Kivooeo
a38c78c461
moved tests
2025-06-29 18:06:00 +05:00