about summary refs log tree commit diff
path: root/src/librustc/ty/print
AgeCommit message (Collapse)AuthorLines
2019-04-26Update handling of Tuplevarkor-2/+3
2019-04-14HirIdify hir::Defljedrz-2/+2
2019-03-24Merge `DefPathData::VariantCtor` and `DefPathData::StructCtor`Vadim Petrochenkov-6/+5
2019-03-24Separate variant id and variant constructor id.David Wood-7/+12
This commit makes two changes - separating the `NodeId` that identifies an enum variant from the `NodeId` that identifies the variant's constructor; and no longer creating a `NodeId` for `Struct`-style enum variants and structs. Separation of the variant id and variant constructor id will allow the rest of RFC 2008 to be implemented by lowering the visibility of the variant's constructor without lowering the visbility of the variant itself. No longer creating a `NodeId` for `Struct`-style enum variants and structs mostly simplifies logic as previously this `NodeId` wasn't used. There were various cases where the `NodeId` wouldn't be used unless there was an unit or tuple struct or enum variant but not all uses of this `NodeId` had that condition, by removing this `NodeId`, this must be explicitly dealt with. This change mostly applied cleanly, but there were one or two cases in name resolution and one case in type check where the existing logic required a id for `Struct`-style enum variants and structs.
2019-03-16Revert the `LazyConst` PROliver Scherer-26/+9
2019-03-15Fix rebase fallout and address some review comments.Eduard-Mihai Burtescu-0/+8
2019-03-15rustc: print ExistentialProjection with spaces around `=`, e.g. `dyn Foo<A = ↵Eduard-Mihai Burtescu-1/+1
X>`.
2019-03-15rustc: provide DisambiguatedDefPathData in ty::print.Eduard-Mihai Burtescu-33/+67
2019-03-15rustc: slice substs in ty::print instead of passing the full ones.Eduard-Mihai Burtescu-77/+68
2019-03-15rustc: let ty::print::pretty's p! macro call arbitrary methods.Eduard-Mihai Burtescu-35/+32
2019-03-15rustc: remove PrintCx from ty::Print and rely on printers carrying TyCtxt.Eduard-Mihai Burtescu-742/+657
2019-03-15rustc: remove the ability for pretty-printers to override nesting.Eduard-Mihai Burtescu-66/+55
2019-03-15rustc: don't thread existential projections through path_generic_args.Eduard-Mihai Burtescu-134/+180
2019-03-15rustc: make `pretty_path_generic_args`' task as simple as possible.Eduard-Mihai Burtescu-78/+57
2019-03-15rustc: print elided regions as '_ instead of nothing, and use a separate ↵Eduard-Mihai Burtescu-29/+27
check when optional.
2019-03-15rustc: always hide defaulted generic args, even in verbose mode.Eduard-Mihai Burtescu-25/+28
2019-03-15rustc: move ty::print::PrintConfig's fields to FmtPrinter.Eduard-Mihai Burtescu-161/+166
2019-03-15rustc: streamline the Print/fmt::Display impls in ppaux and move them to ↵Eduard-Mihai Burtescu-6/+303
ty::print::pretty.
2019-03-15rustc: remove obsolete hacks from ppaux, relating to normalization under HRTB.Eduard-Mihai Burtescu-26/+77
2019-03-15rustc: disconnect all the Debug functionality from ty::print.Eduard-Mihai Burtescu-42/+18
2019-03-15rustc: make util::ppaux private.Eduard-Mihai Burtescu-1/+1
2019-03-15rustc: remove fields from ty::print::PrintConfig available from tcx.Eduard-Mihai Burtescu-23/+13
2019-03-15rustc: split out the pretty-printing parts of ty::print into a separate module.Eduard-Mihai Burtescu-894/+1315
2019-03-15rustc: move ty/print.rs to ty/print/mod.rs.Eduard-Mihai Burtescu-0/+1248