Vadim Petrochenkov
38ed36bba4
hir: Preserve used syntax in `TyKind::TraitObject`
2021-03-18 03:02:32 +03:00
Esteban Küber
32c97da0f4
In some limited cases, suggest `where` bounds for non-type params
...
Partially address #81971 .
2021-02-17 09:26:40 -08:00
Camille GILLOT
c676e358a5
Use ItemId as a strongly typed index.
2021-02-15 19:24:58 +01:00
Mark Rousskov
d5b760ba62
Bump rustfmt version
...
Also switches on formatting of the mir build module
2021-02-02 09:09:52 -05:00
LeSeulArtichaut
0724573448
Move a few more types to `rustc_type_ir`
2021-01-18 21:06:12 +01:00
Matthias Krüger
8a90626a46
reduce borrowing and (de)referencing around match patterns (clippy::match_ref_pats)
2021-01-02 20:09:17 +01:00
LingMan
a6ff925f8b
Reduce boilerplate with the matches! macro
...
Replaces simple bool `match`es of the form
match $expr {
$pattern => true
_ => false
}
and their inverse with invocations of the matches! macro.
2020-09-21 05:28:40 +02:00
iximeow
e1607c87f0
clean up comment text a bit
...
Co-authored-by: Esteban Küber <esteban@kuber.com.ar>
2020-09-14 13:13:02 -07:00
iximeow
0eac38b7a6
fix syntax error in suggesting generic constraint in trait parameter
...
suggest `where T: Foo` for the first bound on a trait, then suggest
`, T: Foo` when the suggested bound would add to an existing set of
`where` clauses. `where T: Foo` may be the first bound if `T` has a
default, because we'd rather suggest
```
trait A<T=()> where T: Copy
```
than
```
trait A<T: Copy=()>
```
for legibility reasons.
2020-09-13 21:24:34 -07:00
LeSeulArtichaut
3e14b684dd
Change ty.kind to a method
2020-09-04 17:47:51 +02:00
mark
9e5f7d5631
mv compiler to compiler/
2020-08-30 18:45:07 +03:00