about summary refs log tree commit diff
path: root/compiler/rustc_driver/src/pretty.rs
AgeCommit message (Collapse)AuthorLines
2021-03-27Remove (lots of) dead codeJoshua Nelson-11/+0
Found with https://github.com/est31/warnalyzer. Dubious changes: - Is anyone else using rustc_apfloat? I feel weird completely deleting x87 support. - Maybe some of the dead code in rustc_data_structures, in case someone wants to use it in the future? - Don't change rustc_serialize I plan to scrap most of the json module in the near future (see https://github.com/rust-lang/compiler-team/issues/418) and fixing the tests needed more work than I expected. TODO: check if any of the comments on the deleted code should be kept.
2021-03-12Run analyses before thir-tree dumpsÖmer Sinan Ağacan-23/+30
Fixes #83048
2021-03-11Add `-Z unpretty` flag for the THIRLeSeulArtichaut-0/+17
2021-03-03Add `-Z unpretty` flags for the ASTLeSeulArtichaut-19/+29
2021-02-19A few more code cleanupsLeSeulArtichaut-34/+18
2021-02-19Cleanup `PpMode` and friendsLeSeulArtichaut-20/+18
2021-02-17Rollup merge of #82174 - est31:master, r=oli-obkGuillaume Gomez-11/+11
Replace File::create and write_all with fs::write Also don't convert to u8 buffers and back when we are only creating strings.
2021-02-16Replace File::create and write_all with fs::writeest31-11/+11
Also don't convert to u8 buffers and back when we are only creating strings.
2021-02-15Only store a LocalDefId in hir::Item.Camille GILLOT-1/+1
Items are guaranteed to be HIR owner.
2021-01-09Fix --pretty=expanded with --remap-path-prefixJeremy Fitzhardinge-2/+9
Per https://github.com/rust-lang/rust/issues/80832, using --pretty=expanded and --remap-path-prefix results in an ICE. This is becasue the session source files table is stored in remapped form, whereas --pretty-expanded looks up unremapped files. This remaps the path prefixes before lookup.
2020-11-15Rollup merge of #79005 - petrochenkov:noinjected, r=davidtwcoJonas Schievink-2/+0
cleanup: Remove `ParseSess::injected_crate_name` Its only remaining use is in pretty-printing where the necessary information can be easily re-computed.
2020-11-13Clean up outdated `use_once_payload` pretty printer commentJ. Ryan Stinnett-3/+0
While reading some parts of the pretty printer code, I noticed this old comment which seemed out of place. The `use_once_payload` this outdated comment mentions was removed in 2017 in 40f03a1e0d6702add1922f82d716d5b2c23a59f0, so this completes the work by removing the comment.
2020-11-13cleanup: Remove `ParseSess::injected_crate_name`Vadim Petrochenkov-2/+0
2020-08-30mv compiler to compiler/mark-0/+507