about summary refs log tree commit diff
path: root/compiler/rustc_save_analysis/src/sig.rs
AgeCommit message (Collapse)AuthorLines
2021-08-28Treat macros as HIR itemsinquisitivecrystal-0/+8
2021-03-23Add has_default to GenericParamDefKind::Constkadmin-3/+4
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-16ast/hir: Rename field-related structuresVadim Petrochenkov-2/+2
StructField -> FieldDef ("field definition") Field -> ExprField ("expression field", not "field expression") FieldPat -> PatField ("pattern field", not "field pattern") Also rename visiting and other methods working on them.
2021-02-15Only store a LocalDefId in hir::ForeignItem.Camille GILLOT-4/+4
2021-02-15Only store a LocalDefId in hir::Item.Camille GILLOT-12/+12
Items are guaranteed to be HIR owner.
2021-02-15Use ItemId as a strongly typed index.Camille GILLOT-1/+1
2021-01-12Separate out a `hir::Impl` structJoshua Nelson-2/+2
This makes it possible to pass the `Impl` directly to functions, instead of having to pass each of the many fields one at a time. It also simplifies matches in many cases.
2021-01-01const_generics_defaults: don't use todoRémy Rakic-1/+0
So that at least it won't ICE for users whether or not they enable the gate. For developers the FIXMEs are enough.
2021-01-01first pass at default values for const genericsJulian Knodt-1/+5
- 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
2020-11-26Remove ForeignMod struct.Camille GILLOT-1/+1
2020-11-15Rollup merge of #78352 - JohnTitor:issue-75229, r=Dylan-DPCDylan DPC-2/+2
Do not call `unwrap` with `signatures` option enabled Fixes #75229 Didn't add a test since I couldn't set `RUST_SAVE_ANALYSIS_CONFIG` even with `rustc-env`.
2020-10-25Do not call `unwrap` with `signatures` option enabledYuki Okushi-2/+2
2020-10-25Fix small typosYuki Okushi-3/+3
2020-09-10use push(char) instead of push_str(&str) to add single chars to stringsMatthias Krüger-1/+1
clippy::single-char-push-str
2020-08-30mv compiler to compiler/mark-0/+930