Michael Goulet
802d16ce3a
Don't actually make bound ty/const for RTN
2024-01-21 23:08:03 +00:00
George-lewis
d56cdd48cb
Bless tests
...
Update tests
2024-01-13 12:46:58 -05:00
Oli Scherer
0978f6e010
Avoid silencing relevant follow-up errors
2024-01-09 21:08:16 +00:00
León Orell Valerian Liehr
90d6fe2cba
Imply outlives-bounds on lazy type aliases
2023-12-28 02:03:43 +01:00
León Orell Valerian Liehr
55559d93e7
Resolve assoc item bindings by namespace
...
If a const is expected, resolve a const.
If a type is expected, resolve a type.
Don't try to resolve a type first falling back to consts.
2023-12-07 22:33:56 +01:00
Nilstrieb
9b80d85722
Manual find replace updates
2023-11-24 21:04:51 +01: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
Esteban Küber
b8a8ba9c91
Sort errors
2023-10-30 22:19:17 +00:00
Esteban Küber
17a6ae2df3
Detect object safety errors when assoc type is missing
...
When an associated type with GATs isn't specified in a `dyn Trait`, emit
an object safety error instead of only complaining about the missing
associated type, as it will lead the user down a path of three different
errors before letting them know that what they were trying to do is
impossible to begin with.
Fix #103155 .
2023-10-30 22:12:07 +00:00
Esteban Küber
3bbc70a5f7
Restrict param constraint suggestion
...
When encountering an associated item with a type param that could be
constrained, do not look at the parent item if the type param comes from
the associated item.
Fix #117209 .
2023-10-26 18:33:03 +00:00
Esteban Küber
bd8b46800d
Tweak wording of type errors involving type params
...
Fix #78206 .
2023-10-18 23:53:18 +00:00
Esteban Küber
dee86bff40
Suggest constraining assoc types in more cases
...
Fix #46969 .
2023-10-17 23:50:13 +00:00
Michael Goulet
59315b8a63
Stabilize AFIT and RPITIT
2023-10-13 21:01:36 +00:00
Matthias Krüger
c1c5ab717e
Rollup merge of #116428 - Alexendoo:note-duplicate-diagnostics, r=compiler-errors,estebank
...
Add a note to duplicate diagnostics
Helps explain why there may be a difference between manual testing and the test suite output and highlights them as something to potentially look into
For existing duplicate diagnostics I just blessed them other than a few files that had other `NOTE` annotations in
2023-10-05 19:24:35 +02:00
Alex Macleod
5453a9f34d
Add a note to duplicate diagnostics
2023-10-05 01:04:41 +00:00
Michael Goulet
137b6d0b01
Point to where missing return type should go
2023-10-04 21:09:54 +00:00
Michael Goulet
748476d94d
Print the path of an RPITIT in RTN
2023-09-07 02:08:51 +00:00
y21
507f10baee
suggest removing impl
in generic trait bound position
2023-08-29 20:27:38 +02:00
David Tolnay
823bacb6e3
Revert "Suggest using Arc
on !Send
/!Sync
types"
...
This reverts commit 9de1a472b6
.
2023-08-28 03:16:48 -07:00
Esteban Küber
b86285af16
Do not emit invalid suggestion in E0191 when spans overlap
...
Fix #115019 .
2023-08-22 15:51:12 +00:00
Esteban Küber
bf766cd31b
Add test for #115019
2023-08-21 19:59:27 +00:00
Michael Goulet
e4cf708d2f
Don't add associated type bound for non-types
2023-08-11 21:33:08 +00:00
Esteban Kuber
9de1a472b6
Suggest using Arc
on !Send
/!Sync
types
2023-08-09 14:04:10 +00: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
Santiago Pastorino
20429af7a3
Replace RPITIT current impl with new strategy that lowers as a GAT
2023-07-08 18:21:34 -03:00
Michael Goulet
858a861fff
Make associated type bounds in supertrait position implied
2023-06-27 18:28:07 +00:00
Santiago Pastorino
d77e55bbb9
Fix return type notation errors with -Zlower-impl-trait-in-trait-to-assoc-ty
2023-06-23 17:34:33 -03:00
许杰友 Jieyou Xu (Joe)
edafbaffb2
Adjust UI tests for unit_bindings
...
- Either explicitly annotate `let x: () = expr;` where `x` has unit
type, or remove the unit binding to leave only `expr;` instead.
- Fix disjoint-capture-in-same-closure test
2023-06-12 20:24:48 +08:00
Michael Goulet
20a83144b2
Support RTN on associated methods from supertraits
2023-05-03 19:41:15 +00:00
Dylan DPC
2e3373c231
Rollup merge of #111048 - compiler-errors:rpitit-not-incomplete, r=jackh726
...
Mark`feature(return_position_impl_trait_in_trait)` and`feature(async_fn_in_trait)` as not incomplete
I think they've graduated, since as far as I'm aware, they don't cause compiler crashes or unsoundness anymore.
2023-05-02 11:44:53 +05:30
Michael Goulet
7411468ff8
Mark RPITIT and AFIT as no longer incomplete
2023-05-02 05:04:50 +00:00
Michael Goulet
bec7193072
Don't use implied trait predicates in gather_explicit_predicates_of
2023-05-01 15:45:28 +00:00
Michael Goulet
8ea71f264e
Do not consider associated type bounds for super_predicates_that_define_assoc_type
2023-05-01 15:45:28 +00:00
Matthias Krüger
a34bcd70b2
Rollup merge of #110203 - compiler-errors:rtn-dots, r=eholk
...
Remove `..` from return type notation
`@nikomatsakis` and I decided that using `..` in the return-type notation syntax is probably overkill.
r? `@eholk` since you reviewed the last one
Since this is piggybacking now totally off of a pre-existing syntax (parenthesized generics), let me know if you need any explanation of the logic here, since it's a bit more complicated now.
2023-04-12 20:56:22 +02:00
Michael Goulet
25c342f30a
Split implied and super predicate queries
2023-04-11 17:45:42 +00:00
Michael Goulet
24cbf81b85
Remove ..
from return type notation
2023-04-10 22:19:46 +00:00
Yuki Okushi
271ac7b528
Add regression test for #104916
...
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2023-04-11 00:01:53 +09:00
Michael Goulet
ab0b9356e6
Emit feature error for parenthesized generics in associated type bounds
2023-04-03 21:20:48 +00:00
Michael Goulet
8b592db27a
Add (..)
syntax for RTN
2023-03-28 01:14:28 +00:00
Michael Goulet
104aacb49f
Add tests and error messages
2023-03-28 01:02:15 +00:00
Michael Goulet
b14eb0c497
pluralize stuff
2023-02-22 21:52:26 +00:00
Michael Goulet
deb135748d
Suppress duplicated errors for associated type bounds in object types
2023-02-22 21:52:26 +00:00
Michael Goulet
e7c490892f
Move associated type bounds check to ast lowering
...
This makes the check for when associated type bounds more accurate
2023-02-22 20:18:14 +00:00
Esteban Küber
30cf7a3f51
Introduce ReError
...
CC #69314
2023-02-09 10:26:49 +00:00
Esteban Küber
ab8dc9a0ad
Hide lifetimes of impl Trait
in force trimmed paths
2023-01-30 20:12:21 +00:00
Esteban Küber
252c43b42b
Do not mention lifetime names in force trimmed paths
2023-01-30 20:12:21 +00:00