Julian Knodt
61f33bfd29
first pass at default values for const generics
...
- Adds optional default values to const generic parameters in the AST
and HIR
- Parses these optional default values
- Adds a `const_generics_defaults` feature gate
2021-01-01 10:55:10 +01:00
Matthias Krüger
d12a358673
use matches!() macro in more places
2020-12-24 13:35:12 +01:00
mibac138
3548be94c0
Gracefully handle confusing -> with : in function return type
2020-12-03 18:19:42 +01:00
mibac138
5404deeb64
Gracefully handle mistyping -> as => in function return type
2020-12-01 12:12:48 +01:00
bors
cfed9184f4
Auto merge of #79266 - b-naber:gat_trait_path_parser, r=petrochenkov
...
Generic Associated Types in Trait Paths - Ast part
The Ast part of https://github.com/rust-lang/rust/pull/78978
r? `@petrochenkov`
2020-11-27 00:18:24 +00:00
b-naber
823dbb38e4
ast and parser
2020-11-25 19:55:41 +01:00
varkor
efcbf1b00b
Permit standalone generic parameters as const generic arguments in macros
2020-11-18 13:16:35 +00:00
Joshua Nelson
57c6ed0c07
Fix even more clippy warnings
2020-10-30 10:13:39 -04:00
varkor
ac1454001c
Suggest expressions that look like const generic arguments should be enclosed in brackets
...
Co-Authored-By: Esteban Kuber <github@kuber.com.ar>
2020-10-26 21:54:45 +00:00
Aaron Hill
55082ce413
Attach TokenStream
to ast::Path
2020-09-10 17:33:06 -04:00
mark
9e5f7d5631
mv compiler to compiler/
2020-08-30 18:45:07 +03:00