Michael Goulet
1e96d7a553
Consider param-env for fast path
2025-07-20 17:45:01 +00:00
Michael Goulet
42c9bfd2b9
Remove Symbol for Named LateParam/Bound variants
2025-07-04 18:14:22 +00:00
lcnr
9eac7a3e04
move (and remove) impl Trait tests
2025-05-09 02:35:18 +00:00
Frank King
42f51d4fd4
Implment #[cfg] and #[cfg_attr] in where clauses
2025-03-01 22:02:46 +08:00
Michael Goulet
23ab0f2cdc
Check Sizedness of return type in WF
2025-02-03 19:00:22 +00:00
Boxy
3ef506fb4d
Don't pick T: FnPtr nested goals
2025-01-22 06:55:38 +00:00
Esteban Küber
3f2a63a68b
Use trait name instead of full constraint in suggestion message
...
```
help: consider restricting type parameter `T` with traits `Copy` and `Trait`
|
LL | fn duplicate_custom<T: Copy + Trait>(t: S<T>) -> (S<T>, S<T>) {
| ++++++++++++++
```
```
help: consider restricting type parameter `V` with trait `Copy`
|
LL | fn index<'a, K, V: std::marker::Copy>(map: &'a HashMap<K, V>, k: K) -> &'a V {
| +++++++++++++++++++
```
2024-12-07 21:29:58 +00:00
Esteban Küber
d13c34828e
reword trait bound suggestion message to include the bounds
2024-12-07 21:26:20 +00:00
许杰友 Jieyou Xu (Joe)
95ff642797
tests: remove //@ pretty-expanded usages
...
Done with
```bash
sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs
```
and
```
sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs
```
2024-11-26 02:50:48 +08:00
Esteban Küber
1a0c502183
On long E0277 primary span label, move it to a help
...
Long span labels don't read well.
2024-11-02 03:08:04 +00:00
Oli Scherer
3594a19f2a
Taint infcx when reporting errors
2024-06-19 04:41:56 +00:00
Michael Goulet
de6b219803
Make WHERE_CLAUSES_OBJECT_SAFETY a regular object safety violation
2024-06-03 09:49:04 -04:00
Boxy
8124b26122
update region debug formatting
2024-03-18 16:44:12 +00:00
León Orell Valerian Liehr
cce81289e6
Detect empty leading where-clauses on type aliases
2024-02-29 17:20:04 +01:00
许杰友 Jieyou Xu (Joe)
ec2cc761bc
[AUTO-GENERATED] Migrate ui tests from // to //@ directives
2024-02-16 20:02:50 +00:00
r0cky
c7519d42c2
Update tests
2024-02-07 10:42:01 +08:00
Esteban Küber
a9841936fe
Deduplicate more sized errors on call exprs
...
Change the implicit `Sized` `Obligation` `Span` for call expressions to
include the whole expression. This aids the existing deduplication
machinery to reduce the number of errors caused by a single unsized
expression.
2024-01-24 02:53:15 +00:00
jyn
b5d8361909
rename to verbose-internals
2023-12-19 13:35:37 -05: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
lcnr
86fa1317a3
rename ReLateBound to ReBound
...
other changes:
- `Region::new_late_bound` -> `Region::new_bound`
- `Region::is_late_bound` -> `Region::is_bound`
2023-11-13 14:13:54 +00:00
Michael Goulet
30e6cea0ae
Point out if a local trait has no implementations
2023-09-10 21:20:36 +00:00
Michael Goulet
dc946649f5
Clean up some bad ui testing annotations
2023-08-15 01:03:09 +00:00
León Orell Valerian Liehr
051eb7ca7c
Unlock trailing where-clauses for lazy type aliases
2023-08-10 16:13:08 +02:00
León Orell Valerian Liehr
b809207dec
Lint against misplaced where-clauses on assoc tys in traits
2023-07-11 01:19:11 +02:00
Caio
25e395653d
Move tests
2023-05-24 19:35:59 -03:00
Esteban Küber
5b40aa5eb4
Tweak output for 'add line' suggestion
2023-04-12 22:50:10 +00:00
Thom Chiovoloni
0db1f54f89
Bless tests
2023-04-05 15:59:29 +00:00
Michael Goulet
a58682d7cc
Specify what 'this' actually is
2023-02-21 05:21:07 +00:00
David Tolnay
4501d3abe1
Autotrait bounds on dyn-safe trait methods
2023-02-03 08:33:40 -08:00
Michael Goulet
83fbc71d02
Filter impl and where-clause candidates that reference errors
2023-01-11 20:03:29 +00:00
Albert Larsan
cf2dff2b1e
Move /src/test to /tests
2023-01-11 09:32:08 +00:00