about summary refs log tree commit diff
path: root/compiler/rustc_driver/src/pretty.rs
AgeCommit message (Collapse)AuthorLines
2023-02-02Rename rustc_driver to rustc_driver_implJohn Kåre Alsaker-522/+0
2023-01-29Rollup merge of #107006 - b-naber:thir-tree, r=jackh726Matthias Krüger-0/+15
Output tree representation on thir-tree The current output of `-Zunpretty=thir-tree` is really cumbersome to work with, using an actual tree representation should make it easier to see what the thir looks like.
2023-01-26previous thir unpretty output through thir-flatb-naber-0/+15
2023-01-23Prefer queries over Compiler methodsOli Scherer-3/+3
2023-01-16Move compiler input and ouput paths into sessionOli Scherer-25/+14
2023-01-16Group some commonly passed together values into a structOli Scherer-17/+11
2023-01-05Fix `uninlined_format_args` for some compiler cratesnils-3/+3
Convert all the crates that have had their diagnostic migration completed (except save_analysis because that will be deleted soon and apfloat because of the licensing problem).
2022-09-27rustc_typeck to rustc_hir_analysislcnr-1/+1
2022-09-24separate definitions and `HIR` ownersTakayuki Maeda-1/+1
fix a ui test use `into` fix clippy ui test fix a run-make-fulldeps test implement `IntoQueryParam<DefId>` for `OwnerId` use `OwnerId` for more queries change the type of `ParentOwnerIterator::Item` to `(OwnerId, OwnerNode)`
2022-09-14make `mk_attr_id` part of `ParseSess`SparrowLii-0/+2
2022-08-30add UI test for unprettyyukang-5/+5
2022-08-28pretty printing give proper erro message without panicyukang-5/+9
2022-07-29Rename local_did to def_idMiguel Guarniz-1/+1
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-07-29Change maybe_body_owned_by to take local def idMiguel Guarniz-1/+1
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
2022-03-03Remove the everybody loops passbjorn3-1/+1
It isn't used anymore by rustdoc
2022-03-02rename ErrorReported -> ErrorGuaranteedmark-2/+2
2021-10-09Stop referring to hir::Crate in hir_pretty.Camille GILLOT-10/+20
2021-10-04Rollup merge of #89453 - waywardmonkeys:consistent-supertrait-usage, r=nagisaJubilee-2/+2
Consistently use 'supertrait'. A subset of places referred to 'super-trait', so this changes them to all use 'supertrait'. This matches 'supertype' and some other usages. An exception is 'auto-trait' which is consistently used in that manner.
2021-10-02Auto merge of #89405 - GuillaumeGomez:fix-clippy-lints, r=cjgillotbors-3/+2
Fix clippy lints I'm currently working on allowing clippy to run on librustdoc after a discussion I had with `@Mark-Simulacrum.` So in the meantime, I fixed a few lints on the compiler crates.
2021-10-02Consistently use 'supertrait'.Bruce Mitchener-2/+2
A subset of places referred to 'super-trait', so this changes them to all use 'supertrait'. This matches 'supertype' and some other usages. An exception is 'auto-trait' which is consistently used in that manner.
2021-10-01Fix clippy lintsGuillaume Gomez-3/+2
2021-09-29Move body_owners to tcx.hir().Camille GILLOT-1/+1
2021-09-07Move the dataflow framework to its own crate.Camille GILLOT-1/+1
2021-07-24Support -Z unpretty=thir-tree againSmitty-3/+13
2021-06-26Use `Option::map()` instead of `if let`Fabian Wolff-10/+6
2021-06-26Fix ICE with `-Zunpretty=hir,typed` when an expression occurs in a function ↵Fabian Wolff-16/+18
signature
2021-05-19Auto merge of #83842 - LeSeulArtichaut:thir-vec, r=nikomatsakisbors-14/+2
Store THIR in `IndexVec`s instead of an `Arena` This is a necessary step to store the THIR in a query: #85273. See [relevant discussion on Zulip](https://rust-lang.zulipchat.com/#narrow/stream/278509-project-thir-unsafeck/topic/THIR-dependent.20queries.20design). r? `@ghost` cc `@cjgillot` `@nikomatsakis`
2021-05-19Store THIR in `IndexVec`s instead of an `Arena`LeSeulArtichaut-14/+2
2021-05-12Use () for analysis.Camille GILLOT-3/+2
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