Esteban Küber
c73b3d20c6
Unify wording of resolve error
...
Remove "failed to resolve" and use the same format we use in other resolution errors "cannot find `name`".
```
error[E0433]: cannot find `nonexistent` in `existent`
--> $DIR/custom_attr_multisegment_error.rs:5:13
|
LL | #[existent::nonexistent]
| ^^^^^^^^^^^ could not find `nonexistent` in `existent`
```
2026-02-17 16:51:44 +00:00
Jonathan Brouwer
46d4bbf6df
Rollup merge of #150971 - disallow-eii-in-statement-position, r=wafflelapkin
...
Disallow eii in statement position
With how v2 macros resolve, and the name resolution of `super` works, I realized with @WaffleLapkin that there's actually no way to consistently expand EIIs in statement position.
r? @WaffleLapkin
2026-01-14 22:29:58 +01:00
Jana Dönszelmann
8dd701cec7
add test for rejecting EIIs in statement position
2026-01-13 12:08:10 +01:00
Jana Dönszelmann
b454f76bd1
ensure generics are still properly reported on EII *implementations*, and test this
2026-01-13 11:59:59 +01:00
Jana Dönszelmann
b64a9be97e
bless the tests
2026-01-13 11:59:59 +01:00
Jana Dönszelmann
1d96806788
type params on eii
2026-01-13 11:59:59 +01:00
Jana Dönszelmann
322bbdfaaf
rename eii-extern-target
2026-01-12 08:07:23 +01:00
Jana Dönszelmann
9b811544f2
once again reorganize the EII tests a bit
2026-01-10 11:10:44 +01:00
Jana Dönszelmann
7791bc2213
mark ICE regression test as fixed
2026-01-09 09:29:02 +01:00
Jana Dönszelmann
5ddda0c37b
fix up diagnostics referring to the right items
2026-01-09 09:29:02 +01:00
Jana Dönszelmann
5e5c724194
turn panics into span_delayed_bug to make sure this pattern doesn't go unnoticed
2026-01-09 09:29:02 +01:00
Jana Dönszelmann
3c8265a29f
add test for 149981
2026-01-09 09:29:02 +01:00
Matthias Krüger
5e365fd9de
Rollup merge of #150160 - jdonszelmann:fix-149980, r=Kivooeo
...
Fix ICE (#149980 ) for invalid EII in statement position
Based on https://github.com/rust-lang/rust/pull/150159
Fixes rust-lang/rust#149980
2025-12-21 18:50:44 +01:00
Jana Dönszelmann
c316c05dc5
refactor how eii expansion is wrapped fixing 149980
2025-12-19 18:43:04 +01:00
Jana Dönszelmann
897e88c63d
add test for 149980
2025-12-19 18:43:04 +01:00
Stuart Cook
77491e7878
Rollup merge of #150150 - jdonszelmann:move-eii-tests, r=JonathanBrouwer
...
move eii tests
Just a little housekeeping. This feature is getting a lot of tests, so it felt good to put some tests for type checking in its own folder to organise a little. Should be trivial!
2025-12-20 00:32:32 +11:00
Jana Dönszelmann
c040bb1c7e
move eii tests
2025-12-19 12:42:49 +01:00
Jana Dönszelmann
08b7d34e06
another related case that deserved a test
2025-12-17 18:05:13 +01:00
Jana Dönszelmann
1cd7cb1e8d
turn panic into span_delayed_bug
2025-12-17 18:04:03 +01:00
Jana Dönszelmann
bd137df64a
test for duplicate default eii ICE 149985
...
Co-authored-by: SATVIKsynopsis <futureiitianisme@gmail.com>
2025-12-17 18:02:37 +01:00
Jana Dönszelmann
065e4c1c8a
ignore windows
2025-12-13 22:49:45 +01:00
Jana Dönszelmann
e7b729cd92
ignore test with defaults on macos
2025-12-12 12:14:54 +01:00
Jana Dönszelmann
5768b234de
use our own alternative to STD_INTERNAL_SYMBOL and make sure we mangle EIIs properly
2025-12-12 12:14:54 +01:00
Jana Dönszelmann
13de732df5
add test for symbol mangling issue
2025-12-12 11:53:59 +01:00
Jana Dönszelmann
52e0bfccb0
rename feature gate to extern_item_impls
2025-12-12 11:32:35 +01:00
Jana Dönszelmann
3cf74cb2a4
disable gcc for now
2025-12-12 11:32:32 +01:00
Jana Dönszelmann
92c03a26fd
EII (builtin) macros in std
2025-12-12 11:17:33 +01:00
Jana Dönszelmann
615acd8b4d
add tests for using a single impl for two EIIs
2025-12-12 11:17:32 +01:00
Jana Dönszelmann
be98443639
TEMP: fixes error codes in non-codegen tests. those work after the type checking
2025-12-12 11:17:32 +01:00
Jana Dönszelmann
0ac215aabe
EII tests
2025-12-12 11:17:32 +01:00