about summary refs log tree commit diff
path: root/src/librustc_driver/pretty.rs
AgeCommit message (Collapse)AuthorLines
2020-08-30mv compiler to compiler/mark-507/+0
2020-08-17rust_ast::ast => rustc_astUjjwal Sharma-1/+1
2020-07-17Rename TypeckTables to TypeckResults.Valentin Lazureanu-9/+11
2020-07-02rustc_driver/pretty: avoid using TypeckTables::empty for TypedAnnotation.Eduard-Mihai Burtescu-10/+19
2020-05-22Use `OnceCell` instead of `Once`Dylan MacKenzie-2/+2
2020-05-08Remove ast::{Ident, Name} reexports.Camille GILLOT-1/+2
2020-04-23librustc_middle: return LocalDefId instead of DefId in local_def_idmarmeladema-1/+1
2020-04-02use direct import for ErrorReportedMazdak Farrokhzad-1/+1
2020-03-30Use if let instead of match when only matching a single variant ↵Matthias Krüger-18/+12
(clippy::single_match) Makes code more compact and reduces nestig.
2020-03-30rustc -> rustc_middle part 3 (rustfmt)Mazdak Farrokhzad-3/+3
2020-03-30rustc -> rustc_middle part 2Mazdak Farrokhzad-3/+3
2020-03-24rustc: remove rustc_hir_pretty dependency.Mazdak Farrokhzad-3/+4
2020-03-24move rustc_hir::print -> rustc_hir_prettyMazdak Farrokhzad-1/+1
2020-03-16use direct imports for `rustc::{lint, session}`.Mazdak Farrokhzad-2/+2
2020-03-14Index HIR after creating TyCtxtJohn Kåre Alsaker-10/+10
2020-03-12remove lifetimes that can be elided (clippy::needless_lifetimes)Matthias Krüger-11/+11
2020-02-29Rename `syntax` to `rustc_ast` in source codeVadim Petrochenkov-1/+1
2020-02-22Rename CodeMap to SourceMap follow upMaxim Zholobak-2/+2
2020-02-06Move the `krate` method to Hir and remove the Krate dep nodeJohn Kåre Alsaker-3/+3
2020-02-06Add a Hir wrapper typeJohn Kåre Alsaker-5/+5
2020-02-01pretty: injected_crate_name -> has_injected_crateMazdak Farrokhzad-2/+2
2020-02-01syntax::print -> new crate rustc_ast_prettyMazdak Farrokhzad-2/+1
2020-02-01pretty: remove ParseSess dependencyMazdak Farrokhzad-10/+8
2020-01-15remove redundant clones, found by clippyMatthias Krüger-2/+0
2020-01-05Remove rustc_hir reexports in rustc::hir.Mazdak Farrokhzad-3/+3
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-2/+2
2019-12-22Format the worldMark Rousskov-121/+91
2019-12-21Use Arena inside hir::Crate.Camille GILLOT-1/+1
2019-11-22Rollup merge of #66575 - Mark-Simulacrum:no-uii, r=petrochenkovMazdak Farrokhzad-58/+7
Remove pretty printing of specific nodes in AST The ability to print a specific item as identified by NodeId or path seems not particularly useful, and certainly carries quite a bit of complexity with it. This is intended to simplify our CLI parsing a bit and remove a non-uncomplicated piece of it; I largely did this to remove the dependency on NodeId from librustc/session but it's not really necessary to do so in this invasive a way. The alternative is moving it to librustc_interface or driver, probably.
2019-11-20Remove pretty printing of specific nodes in ASTMark Rousskov-58/+7
The ability to print a specific item as identified by NodeId or path seems not particularly useful, and certainly carries quite a bit of complexity with it.
2019-11-19Remove duplicate functionAliaksandr Radzivanovich-5/+1
Function source_name declared in file src/librustc_driver/lib.rs is a duplicate of a function by the same name declared in file src/librustc/session/config.rs
2019-11-09Move pretty parsing into Session optionsMark Rousskov-250/+70
This allows us to query whether PpmEveryBodyLoops is set during expansion and run the everybody loops pass.
2019-11-09Move next_node_id to ResolverMark Rousskov-8/+0
This doesn't migrate the pretty-printing everybody loops, which will be done in the next few commits.
2019-09-27-Z unpretty message: include expanded,hygieneMazdak Farrokhzad-3/+3
2019-09-27Remove unpretty=flowgraph.Mazdak Farrokhzad-164/+14
2019-09-17Print syntax contexts and marks when printing hygiene informationMatthew Jasper-2/+7
2019-09-06Move the HIR cfg to `rustc_ast_borrowck`Matthew Jasper-2/+1
No new code should be using it.
2019-07-23normalize use of backticks for compiler messages in remaining modulesSamy Kacimi-2/+2
https://github.com/rust-lang/rust/issues/60532
2019-07-11Remove rustc_mir dependency from rustc_borrowckMatthew Jasper-2/+2
2019-07-10Move pp::Printer helpers to direct implMark Rousskov-1/+0
2019-07-10Move pp::Printer out field to owned StringMark Rousskov-2/+1
This enforces that eof() must be called to get the String out, and generally is better from an API perspective. No users of pretty printing pre-allocate the buffer.
2019-07-10print_crate returns String instead of taking an out pointerMark Rousskov-6/+3
2019-07-10Replace src: &mut dyn Read with StringMark Rousskov-11/+10
2019-07-06Add arm ids for -Zunpretty=hir,identifiedMatthew Jasper-10/+10
2019-07-05Rollup merge of #62168 - ljedrz:the_culmination_of_hiridification, r=ZoxcMazdak Farrokhzad-2/+2
The (almost) culmination of HirIdification It's finally over. This PR removes old `FIXME`s and renames some functions so that the `HirId` variant has the shorter name. All that remains (and rightfully so) is stuff in `resolve`, `save_analysis` and (as far as I can tell) in a few places where we can't replace `NodeId` with `HirId`.
2019-07-05Auto merge of #62099 - Mark-Simulacrum:syntax-print-clean-2, r=eddybbors-71/+61
Remove io::Result from syntax::print Since we're now writing directly to the vector, there's no need to thread results through the whole printing infrastructure
2019-07-04rename hir::map::local_def_id_from_hir_id to local_def_idljedrz-1/+1
2019-07-04rename hir::map::local_def_id to local_def_id_from_node_idljedrz-1/+1
2019-07-03Remove needless lifetimesJeremy Stucki-10/+10
2019-06-29Remove io::Result from syntax::printMark Rousskov-54/+44
Since we're now writing directly to the vector, there's no need to thread results through the whole printing infrastructure