dianne
d7d6238b23
use backticks instead of single quotes when reporting "use of unstable library feature"
...
This is consistent with all other diagnostics I could find containing
features and enables the use of `DiagSymbolList` for generalizing
diagnostics for unstable library features to multiple features.
2024-11-03 13:55:52 -08:00
Michael Goulet
dbf06d2170
Get rid of predicates_defined_on
2024-08-24 18:25:41 -04:00
León Orell Valerian Liehr
fdf8f024ad
Improve the impl and diag output of lint type_alias_bounds
2024-07-23 01:48:03 +02:00
León Orell Valerian Liehr
63a54d93be
Don't suppress lint type_alias_bounds for ty aliases containing inherent assoc tys
2024-07-23 01:26:26 +02:00
long-long-float
332b41dbce
Use ordinal number in argument error
...
Fix error message
Fix tests
Format
2024-07-14 13:50:09 +09:00
Jubilee
e7b07ea7a1
Rollup merge of #125978 - fmease:cleanup-hir-ty-lowering-consolidate-assoc-item-access-checking, r=davidtwco
...
Cleanup: HIR ty lowering: Consolidate the places that do assoc item probing & access checking
Use `probe_assoc_item` (for hygienically probing an assoc item and checking if it's accessible wrt. visibility and stability) for assoc item constraints, too, not just for assoc type paths and make the privacy error translatable.
2024-06-12 03:57:19 -07:00
León Orell Valerian Liehr
c59a2b2746
Cleanup: HIR ty lowering: Consolidate assoc item access checking
2024-06-04 23:13:16 +02:00
Oli Scherer
39b39da40b
Stop proving outlives constraints on regions we already reported errors on
2024-05-29 09:27:07 +00:00
Oli Scherer
a04ac26a9d
Allow type_of to return partially non-error types if the type was already tainted
2024-05-28 11:55:20 +00:00
Michael Goulet
119c7bbef7
Report better WF obligation leaf obligations in new solver
2024-05-16 21:08:42 -04:00
Oli Scherer
dadece067e
Let inherent associated types constrain opaque types during projection
2024-04-19 16:12:54 +00:00
Michael Goulet
ce5f8c93fa
Bless test fallout (duplicate diagnostics)
2024-03-20 13:00:34 -04:00
Michael Goulet
01e6b43a07
Mark some next-solver-behavior tests explicitly with revisions
2024-03-10 23:23:46 -04:00
Michael Goulet
383051092f
Ignore tests w/ current/next revisions from compare-mode=next-solver
2024-03-10 21:18:41 -04:00
Oli Scherer
ae50e36dfa
Merge collect_mod_item_types query into check_well_formed
2024-03-07 14:26:31 +00:00
Michael Goulet
003b920591
Don't grab variances if we're invariant
2024-03-01 18:11:45 +00:00
Santiago Pastorino
23ae3dbb31
Make infer higher ranked equate use bidirectional subtyping in invariant context
2024-02-29 15:27:56 -03:00
许杰友 Jieyou Xu (Joe)
ec2cc761bc
[AUTO-GENERATED] Migrate ui tests from //
to //@
directives
2024-02-16 20:02:50 +00:00
Oli Scherer
5f6390f947
Continue compilation after check_mod_type_wf errors
2024-02-14 11:00:30 +00:00
Esteban Küber
3691ab8e7a
Use only one label for multiple unsatisfied bounds on type (astconv)
2024-01-26 20:47:11 +00:00
lcnr
058ab53dc5
use implied bounds compat mode in MIR borrowck
2024-01-19 15:27:32 +01:00
Jack Huey
a9e30e6cdf
Don't use compat versions of implied bounds in ImpliedOutlivesBounds query
2024-01-17 22:03:06 -05:00
George-lewis
d56cdd48cb
Bless tests
...
Update tests
2024-01-13 12:46:58 -05:00
Oli Scherer
af7f8f9811
Silence follow up errors if astconv already errored
2024-01-11 09:03:26 +00:00
Oli Scherer
0978f6e010
Avoid silencing relevant follow-up errors
2024-01-09 21:08:16 +00:00
Eric Holk
aaa3e7642b
Update test outputs
2023-12-22 11:01:07 -08:00
lcnr
11d16c4082
update use of feature flags
2023-12-14 15:22:37 +01:00
Santiago Pastorino
440f46dc16
Get rid of infer vars in inherent assoc types selection by using probe
2023-11-25 17:48:09 -03:00
Santiago Pastorino
8694b0973a
Do not erase late bound regions, replace them with placeholders
2023-11-25 15:31:39 -03: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
Oli Scherer
beaf46f7e5
Work around the fact that check_mod_type_wf
may spuriously return ErrorGuaranteed
, even if that error is only emitted by check_modwitem_types
2023-10-25 12:04:54 +00:00
Esteban Küber
890e92feed
Unify suggestion wording
2023-10-17 17:33:55 +00:00
Ali MJ Al-Nasrawy
a8830631b9
remove trailing dots
2023-10-08 10:06:17 +00:00
Ali MJ Al-Nasrawy
996ffcb718
always show and explain sub region
2023-10-08 09:59:51 +00:00
Ali MJ Al-Nasrawy
5be0b2283a
improve the suggestion of generic_bound_failure
2023-10-08 09:56:57 +00:00
Alex Macleod
5453a9f34d
Add a note to duplicate diagnostics
2023-10-05 01:04:41 +00:00
Michael Goulet
d6ce9ce115
Don't store lazyness in DefKind
2023-09-26 02:53:59 +00:00
Eduardo Sánchez Muñoz
c599761140
rustc_hir_analysis: add a helper to check function the signature mismatches
...
This function is now used to check `#[panic_handler]`, `start` lang item, `main`, `#[start]` and intrinsic functions.
The diagnosis produced are now closer to the ones produced by trait/impl method signature mismatch.
2023-09-19 18:15:23 +02:00
bors
1accf068d8
Auto merge of #113126 - Bryanskiy:delete_old, r=petrochenkov
...
Replace old private-in-public diagnostic with type privacy lints
Next part of RFC https://github.com/rust-lang/rust/issues/48054 .
r? `@petrochenkov`
2023-09-01 12:40:01 +00:00
León Orell Valerian Liehr
6f5d8556ca
Handle inherent associated types fallout
2023-08-03 02:18:52 +02:00
Bryanskiy
e26614e6a7
Replace old private-in-public diagnostic with type privacy lints
2023-08-02 13:40:28 +03:00
nxya
a54a66830d
moved note as unspanned note, moved note to the bottom of the msg
2023-07-18 21:53:34 -04:00
nxya
e6e8892051
added links as a note
2023-07-18 09:27:35 -04:00
nxya
f92a9f6808
add links to query documentation for E0391
2023-07-18 09:27:26 -04:00
nxya
bef91ee687
added links as a note
2023-07-18 09:20:25 -04:00
nxya
c429a72db9
add links to query documentation for E0391
2023-07-18 09:20:25 -04:00
Michael Goulet
085ae9e8b4
Add support for inherent projections
2023-07-16 21:14:38 +00:00
Guillaume Gomez
157bab670f
Rollup merge of #113286 - fmease:iat-dont-select-if-not-enabled, r=compiler-errors
...
Don't perform selection if inherent associated types are not enabled
Fixes #113265 .
As discussed
r? `@compiler-errors`
2023-07-03 18:46:14 +02:00
León Orell Valerian Liehr
838f85d6f7
Don't perform selection if IATs are not enabled
2023-07-03 14:33:38 +02:00
lcnr
30ed152330
update tests
2023-07-03 09:12:15 +02:00