Esteban Küber
921de9d8ea
Revert suggestion verbosity change
2024-07-22 22:51:53 +00:00
Esteban Küber
5c2b36a21c
Change suggestion message wording
2024-07-22 22:04:49 +00:00
Esteban Küber
c807ac0340
Use verbose suggestion for "wrong # of generics"
2024-07-22 22:04:49 +00:00
Boxy
a54dbbfd0e
add_effects_test
2024-07-14 07:57:53 +01:00
Zalathar
9aaa0c5867
Always use a colon in //@ normalize-*: headers
2024-07-11 12:23:44 +10:00
Deadbeef
4f54193ccf
Fix intrinsic const parameter counting with effects
2024-07-07 11:30:03 +00:00
Deadbeef
daff015314
Migrate tests to use -Znext-solver
2024-06-30 17:08:45 +00:00
Deadbeef
34ae56de35
Make feature(effects) require -Znext-solver
2024-06-30 17:08:10 +00:00
Deadbeef
373e906296
bless UI tests
2024-06-28 10:57:35 +00:00
Deadbeef
72e8244e64
implement new effects desugaring
2024-06-28 10:57:35 +00:00
Deadbeef
81da6a6d40
Make effects an incomplete feature
2024-06-22 14:11:11 +00:00
Deadbeef
a6a83d3d4e
bless tests
2024-06-21 11:57:24 +00:00
Boxy
f74119a2e4
Bless tests and handle tests/crashes
2024-06-05 22:25:42 +01:00
Andrew Wock
66a13861ae
Fix ICE caused by ignoring EffectVars in type inference
...
Signed-off-by: Andrew Wock <ajwock@gmail.com>
2024-06-03 07:18:24 -04:00
Michael Goulet
ce5f8c93fa
Bless test fallout (duplicate diagnostics)
2024-03-20 13:00:34 -04:00
Oli Scherer
7f9830b16c
Make const_eval_select a rustc_intrinsic
2024-03-19 09:12:58 +00:00
Oli Scherer
8206cffc48
Merge check_mod_impl_wf and check_mod_type_wf
2024-03-07 06:27:09 +00:00
Ralf Jung
374607d6b9
const_eval_select: make it safe but be careful with what we expose on stable for now
2024-03-02 16:09:31 +01:00
Nicholas Nethercote
4f83e50f98
Revert some span_bugs to span_delayed_bug.
...
Fixes #121410 .
Fixes #121414 .
Fixes #121418 .
Fixes #121431 .
2024-02-23 08:35:18 +11:00
许杰友 Jieyou Xu (Joe)
ec2cc761bc
[AUTO-GENERATED] Migrate ui tests from // to //@ directives
2024-02-16 20:02:50 +00:00
Ralf Jung
0df7810734
remove StructuralEq trait
2024-01-24 07:56:23 +01:00
George-lewis
d56cdd48cb
Bless tests
...
Update tests
2024-01-13 12:46:58 -05:00
bors
94807670a6
Auto merge of #117449 - oli-obk:query_merge_immobile_game, r=matthewjasper
...
Avoid silencing relevant follow-up errors
r? `@matthewjasper`
This PR only adds new errors to tests that are already failing and fixes one ICE.
Several tests were changed to not emit new errors. I believe all of them were faulty tests, and not explicitly testing for the code that had new errors.
2024-01-09 22:50:49 +00:00
Oli Scherer
0978f6e010
Avoid silencing relevant follow-up errors
2024-01-09 21:08:16 +00:00
Michael Goulet
e44b11f695
~const trait or projection bounds do not imply non-const bounds
2024-01-08 15:01:14 +00:00
León Orell Valerian Liehr
aa799049d7
E0379: Provide suggestions
2024-01-02 13:49:48 +01:00
León Orell Valerian Liehr
ae8e401c9f
E0379: Make diagnostic more precise
2024-01-02 13:49:47 +01:00
León Orell Valerian Liehr
ba860344e1
Don't synthesize host effect params for trait assoc fns marked const
2024-01-02 13:49:47 +01:00
León Orell Valerian Liehr
3eb48a35c8
Introduce const Trait (always-const trait bounds)
2023-12-27 12:51:32 +01:00
Deadbeef
3006814404
add a test for ICE #112822
2023-12-23 15:09:55 +00:00
bors
edcbcc768a
Auto merge of #119072 - fee1-dead-contrib:effects-fixes, r=compiler-errors
...
Clean up `check_consts` and misc fixes
1. Remove most of the logic around erroring with trait methods. I have kept the part resolving it to a concrete impl, as that is used for const stability checks.
2. Turning on `effects` causes ICE with generic args, due to `~const Tr` when `Tr` is not `#[const_trait]` tripping up expectation in code that handles generic args, more specifically here:
8681e077b8/compiler/rustc_hir_analysis/src/astconv/generics.rs (L377)
We set `arg_count.correct` to `Err` to correctly signal that an error has already been reported.
3. UI test blesses.
Edit(fmease): Fixes #117244 (UI test is in #119099 for now).
r? compiler-errors
2023-12-23 12:26:22 +00:00
Deadbeef
e4f237d39e
bless ui tests
2023-12-19 04:28:21 +00:00
Michael Goulet
faea6ad579
Check const_eval_select intrinsic correctly
2023-12-18 20:28:06 +00:00
Michael Goulet
69f360d00c
Check FnPtr/FnDef built-in fn traits correctly with effects
2023-12-18 20:28:06 +00:00
Michael Goulet
efe8ae730f
Fix const drop checking
2023-12-07 16:28:33 +00:00
bors
f32d29837d
Auto merge of #118605 - fee1-dead-contrib:rm-rustc_host, r=compiler-errors
...
Remove `#[rustc_host]`, use internal desugaring
Also removed a way for users to explicitly specify the host param since that isn't particularly useful. This should eliminate any pain with encoding attributes across crates and etc.
r? `@compiler-errors`
2023-12-06 16:00:24 +00:00
Deadbeef
65212a07e7
Remove #[rustc_host], use internal desugaring
2023-12-05 01:15:21 +00:00
Deadbeef
e6a14c0336
Use default params until effects in desugaring
2023-12-04 15:08:14 +00:00
Michael Goulet
d3404d2b98
Add with_opt_const_effect_param helper, simplify
2023-11-28 21:17:55 +00:00
Michael Goulet
89c2c85fe1
Add PartialEq<&B> for &A
2023-11-28 21:17:19 +00:00
Michael Goulet
82a9e872d8
Fix PartialEq args when #[const_trait] is enabled
2023-11-28 21:17:19 +00:00
Deadbeef
d5ebdfc2c5
effects: Run enforce_context_effects for all method calls
2023-11-25 13:11:38 +00:00
Nilstrieb
41e8d152dc
Show number in error message even for one error
...
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
2023-11-24 19:15:52 +01:00
bors
a04d56b36d
Auto merge of #117817 - fmease:deny-more-tilde-const, r=fee1-dead
...
Deny more `~const` trait bounds
thereby fixing a family of ICEs (delayed bugs) for `feature(const_trait_impl, effects)` code.
As discussed
r? `@fee1-dead`
2023-11-12 04:40:44 +00:00
León Orell Valerian Liehr
8ce5d784a6
Deny more ~const trait bounds
2023-11-12 00:00:12 +01:00
Matthias Krüger
8a34fea835
Rollup merge of #117516 - matthiaskrgr:test_effects_113375_oob, r=fee1-dead
...
add test for #113375
Fixes #113375
r? `@fee1-dead`
2023-11-06 20:31:55 +01:00
Matthias Krüger
666cad9a5f
add test for #113375
...
Fixes #113375
2023-11-02 16:16:56 +01:00
Matthias Krüger
384f7382ba
add test for #113381
...
Fixes #113381
r? fee1-dead
2023-11-02 15:59:54 +01:00
Deadbeef
47efc90366
Deny providing explicit effect params
2023-10-26 08:24:25 +00:00
Deadbeef
f0f89d6d43
Duplicate ~const bounds with a non-const one in effects desugaring
2023-10-15 08:59:38 +00:00