Esteban Küber
|
d860e5b088
|
Mention type parameter in more cases and don't suggest ~const bound already there
|
2024-12-07 21:37:13 +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 |
|
许杰友 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 |
|
r0cky
|
c7519d42c2
|
Update tests
|
2024-02-07 10:42:01 +08:00 |
|
Jake Goulding
|
53eca9fa87
|
Adjust compiler tests for unused_tuple_struct_fields -> dead_code
|
2024-01-02 15:34: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 |
|
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 |
|
David Tolnay
|
823bacb6e3
|
Revert "Suggest using Arc on !Send /!Sync types"
This reverts commit 9de1a472b6 .
|
2023-08-28 03:16:48 -07:00 |
|
Esteban Kuber
|
9de1a472b6
|
Suggest using Arc on !Send /!Sync types
|
2023-08-09 14:04:10 +00:00 |
|
Michael Goulet
|
5924c2511e
|
Only point at impl self ty in WF if trait predicate shares self ty
|
2023-01-12 22:25:30 +00:00 |
|
Michael Goulet
|
2aabb0fd5d
|
Point at impl self type for impl wf obligations
|
2023-01-12 20:44:47 +00:00 |
|
Albert Larsan
|
cf2dff2b1e
|
Move /src/test to /tests
|
2023-01-11 09:32:08 +00:00 |
|