about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/ty/generics.rs
AgeCommit message (Collapse)AuthorLines
2021-08-03Do not suggest impl traits as type argumentsYuki Okushi-0/+15
2021-06-02Miscellaneous inlining improvementsTomasz Miąsko-0/+1
2021-04-21loosen ordering restricts for `const_generics_defaults`lcnr-1/+1
2021-03-23Update with commentskadmin-2/+4
A bunch of nits fixed, and a new test for pretty printing the AST.
2021-03-23Add query for const_param_defaultkadmin-3/+5
2021-03-23Add has_default to GenericParamDefKind::Constkadmin-10/+10
This currently creates a field which is always false on GenericParamDefKind for future use when consts are permitted to have defaults Update const_generics:default locations Previously just ignored them, now actually do something about them. Fix using type check instead of value Add parsing This adds all the necessary changes to lower const-generics defaults from parsing. Change P<Expr> to AnonConst This matches the arguments passed to instantiations of const generics, and makes it specific to just anonymous constants. Attempt to fix lowering bugs
2021-03-10Moved types starting with 'Generic' into generics.rs.Nicholas-Baron-0/+257