Jonas Schievink
e296ed321e
Move librustc panic handler into the new one
2019-08-30 12:34:20 +02:00
Vadim Petrochenkov
ca0ef0fcf6
librustc: Unconfigure tests during normal build
2019-08-02 01:59:01 +03:00
Nicholas Nethercote
87b103d4a9
Add a "total" measurement to -Ztime-passes.
...
This is useful for getting the total compilation time at the end.
To do this, the patch changes `print_time_passes_entry` to not increment
the depth, which means that `print_time_passes_entry_internal` is no
longer needed.
2019-07-05 08:19:48 +10:00
Eduard-Mihai Burtescu
774724be3c
rustc: deny(unused_lifetimes).
2019-06-11 14:11:58 +03:00
Alexander Regueiro
35585c499f
Aggregation of drive-by cosmetic changes.
2019-06-05 21:09:26 +01:00
Michael Woerister
53f1c38734
Allow to specify profiling data output directory as -Zself-profile argument.
2019-05-28 16:14:34 +02:00
Nicholas Nethercote
be3724fb7c
Change rustc::util::common::FN_OUTPUT_NAME to a Symbol.
2019-05-17 20:04:20 +10:00
Michael Woerister
08efbac758
Implement event filtering for self-profiler.
2019-04-18 17:03:53 +02:00
Wesley Wiser
56e434d84d
Use measureme in self-profiler
...
Related to #58372
Related to #58967
2019-04-12 20:27:29 -04:00
flip1995
69f74df429
Deny internal lints in librustc
2019-04-03 18:24:21 +02:00
Eduard-Mihai Burtescu
1a0f3a2856
rustc: streamline the Print/fmt::Display impls in ppaux and move them to ty::print::pretty.
2019-03-15 13:25:10 +02:00
Eduard-Mihai Burtescu
030cdc9729
rustc: remove obsolete hacks from ppaux, relating to normalization under HRTB.
2019-03-15 13:25:10 +02:00
Eduard-Mihai Burtescu
fb53bb9e2b
rustc: move Debug impls from ppaux to ty::structural_impls.
2019-03-15 13:25:10 +02:00
Eduard-Mihai Burtescu
9c424850e8
rustc: disconnect all the Debug functionality from ty::print.
2019-03-15 13:25:10 +02:00
Eduard-Mihai Burtescu
d0a1bf5c88
rustc: make util::ppaux private.
2019-03-15 13:25:10 +02:00
Eduard-Mihai Burtescu
800ddb367e
rustc: remove fields from ty::print::PrintConfig available from tcx.
2019-03-15 13:25:10 +02:00
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
5211e37b1d
rustc: don't pass Namespace explicitly, but rather track it in FmtPrinter.
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
df6650f38c
rustc: move ...::<impl ...> printing into pretty_path_qualified.
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
e0c75ff40d
rustc: rename item_path to def_path (except the module in ty).
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
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
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
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