Eduard-Mihai Burtescu
|
55871aad9a
|
rustc: split out the pretty-printing parts of ty::print into a separate module.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
26f180705a
|
rustc: move ty/print.rs to ty/print/mod.rs.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
6d67d6846c
|
rustc_codegen_utils: print all nominal types as paths, in symbol names.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
5211e37b1d
|
rustc: don't pass Namespace explicitly, but rather track it in FmtPrinter.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
ab26b26d34
|
rustc: introduce a ty::print::PrettyPrinter helper for printing "<...>".
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
35e5123f51
|
rustc: support overriding type printing in ty::print::Printer.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
88d96b269c
|
rustc: support overriding region printing in ty::print::Printer.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
fc914aa88a
|
rustc: centralize region printing in ty::RegionKind's Print impl.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
cafd83d1d5
|
rustc: don't keep RegionHighlightMode in a thread-local.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
7c4eecef0b
|
rustc: pass ty::print::PrintCx by value.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
ab5d6fb302
|
rustc: remove the closure from ppaux's p! macro (by making ? implicit).
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
37e918526a
|
rustc: split off most of ty::print::PrintCx's fields into a separate struct.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
5616ca857d
|
rustc: uniformize ty::print's error handling by requiring Result.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
972af5e808
|
rustc: rename ppaux' print macro to just p and make its cx input implicit.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
387ea61ec1
|
rustc: make ppaux' print macro use only one closure.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
27ddf2cec8
|
rustc: replace node_path_str with uses of def_path_str.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
36f64f15fc
|
rustc: remove ty::print::FORCE_ABSOLUTE altogether.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
66cc029dd7
|
rustc: assert ty::print::FORCE_ABSOLUTE isn't needed anymore.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
df6650f38c
|
rustc: move ...::<impl ...> printing into pretty_path_qualified .
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
39fd54a418
|
rustc: move the FORCE_IMPL_FILENAME_LINE hack into print_def_path .
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
aec5a48481
|
rustc: move <...>-less impl path special-case to pretty_path_qualified.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
a15bfc6f48
|
rustc: merge PrintCx::parameterized and def_path printing.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
b0fbca953f
|
rustc: integrate LocalPathPrinter's behavior into FmtPrinter.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
9f8aaa04e0
|
rustc: move the contents of ty::item_path to ty::print.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
e0c75ff40d
|
rustc: rename item_path to def_path (except the module in ty).
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
f1af5a77a0
|
rustc: remove TyCtxt::parent_def_id in favor of TyCtxt::parent.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
6ca6c1a6cc
|
rustc_mir: adjust the type_length_limit diagnostic to be more useful.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
3e1cef7007
|
rustc: pass Option<&Substs> and Namespace around in ty::item_path.
|
2019-03-15 13:25:10 +02:00 |
|
Eduard-Mihai Burtescu
|
ed2be6fa89
|
rustc: move the FORCE_IMPL_FILENAME_LINE handling into LocalPathPrinter.
|
2019-03-15 09:26:14 +02:00 |
|
Eduard-Mihai Burtescu
|
2386168139
|
rustc: explicitly pass the namespace to PrintCx::parameterized.
|
2019-03-15 09:26:13 +02:00 |
|
Eduard-Mihai Burtescu
|
08d27441ec
|
rustc: move the formatter into ty::print::PrintCx.
|
2019-03-15 09:26:13 +02:00 |
|
Eduard-Mihai Burtescu
|
732b71a1ba
|
rustc: add a ty::RegionKind::display_outputs_anything method to avoid printing to a string.
|
2019-03-15 09:26:13 +02:00 |
|
Eduard-Mihai Burtescu
|
329b8ca818
|
rustc: always rely on '_ to be not printed by ty::Region itself.
|
2019-03-15 09:26:13 +02:00 |
|
Eduard-Mihai Burtescu
|
387cacf76b
|
rustc: remove ty::item_path::RootMode by moving local logic into the printer.
|
2019-03-15 09:26:13 +02:00 |
|
Eduard-Mihai Burtescu
|
7d211e5b12
|
rustc: rewrite ty::item_path to be more functional than mutation-oriented.
|
2019-03-15 09:26:13 +02:00 |
|
Eduard-Mihai Burtescu
|
7505bb6bbb
|
rustc_codegen_utils: revert some symbol_names refactors (while keeping the functional changes).
|
2019-03-15 09:26:13 +02:00 |
|
Eduard-Mihai Burtescu
|
1c2a3c5d79
|
rustc: support impl's in PrintCx::parameterized.
|
2019-03-15 09:26:13 +02:00 |
|
Eduard-Mihai Burtescu
|
fbbc7e915d
|
rustc: rewrite PrintCx::parameterized to be much simpler and more general.
|
2019-03-15 09:26:13 +02:00 |
|
Eduard-Mihai Burtescu
|
939c69c71f
|
rustc: use define_print! to implement fmt::{Display,Debug} for Kind.
|
2019-03-15 09:26:13 +02:00 |
|
Eduard-Mihai Burtescu
|
eb525b0916
|
rustc: tie the 'tcx between Print and PrintCx in ty::print.
|
2019-03-15 09:26:13 +02:00 |
|
Eduard-Mihai Burtescu
|
3bad9f7b3d
|
rustc: implement fmt::{Debug,Display} on Ty instead of TyS.
|
2019-03-15 09:26:13 +02:00 |
|
Eduard-Mihai Burtescu
|
01fa283d6f
|
rustc: remove fmt::{Debug,Display} from ty::TyKind.
|
2019-03-15 09:26:13 +02:00 |
|
Eduard-Mihai Burtescu
|
0b3ab4018b
|
rustc: keep a TyCtxt in PrintCx and use it instead of ty::tls.
|
2019-03-15 09:26:13 +02:00 |
|
Eduard-Mihai Burtescu
|
5f3841ca2f
|
rustc: rename PrintContext to PrintCx.
|
2019-03-15 09:26:13 +02:00 |
|
Eduard-Mihai Burtescu
|
c684814102
|
rustc: don't support missing TLS TyCtxt in ty::print.
|
2019-03-15 09:26:13 +02:00 |
|
Eduard-Mihai Burtescu
|
852fc6d2b6
|
rustc: don't support tcx.lift returning None in ppaux.
|
2019-03-15 09:26:13 +02:00 |
|
Eduard-Mihai Burtescu
|
372b1a5930
|
rustc: uniformize all lift expect messages to "could not lift for printing".
|
2019-03-15 09:26:13 +02:00 |
|
Eduard-Mihai Burtescu
|
297546e62d
|
rustc: add a 'tcx parameter to Print.
|
2019-03-15 09:26:13 +02:00 |
|
Eduard-Mihai Burtescu
|
382d24e7d7
|
rustc: start moving util::ppaux to ty::print.
|
2019-03-15 09:26:13 +02:00 |
|
Eduard-Mihai Burtescu
|
228d6f45d8
|
rustc: remove unnecessary extern_prelude logic from ty::item_path.
|
2019-03-15 09:26:13 +02:00 |
|