about summary refs log tree commit diff
path: root/src/librustc_save_analysis/lib.rs
AgeCommit message (Collapse)AuthorLines
2016-09-01save-analsysis: add save-analysis-api CLI flagNick Cameron-1/+3
2016-08-17rustc: remove SelfSpace from ParamSpace.Eduard Burtescu-1/+1
2016-08-17rustc: reduce Substs and Generics to a simple immutable API.Eduard Burtescu-2/+1
2016-08-13Remove obsolete divergence related stuffAndrew Cann-1/+0
Replace FnOutput with Ty Replace FnConverging(ty) with ty Purge FnDiverging, FunctionRetTy::NoReturn and FunctionRetTy::None
2016-07-03prefer `if let` to match with `None => {}` arm in some placesZack M. Davis-6/+4
This is a spiritual succesor to #34268/8531d581, in which we replaced a number of matches of None to the unit value with `if let` conditionals where it was judged that this made for clearer/simpler code (as would be recommended by Manishearth/rust-clippy's `single_match` lint). The same rationale applies to matches of None to the empty block.
2016-06-26Rollup merge of #33943 - jseyfried:libsyntax_cleanup, r=nrcJeffrey Seyfried-1/+1
Miscellaneous low priority cleanup in `libsyntax`.
2016-06-25Rollup merge of #34403 - jonathandturner:move_liberror, r=alexcrichtonJeffrey Seyfried-1/+3
This PR refactors the 'errors' part of libsyntax into its own crate (librustc_errors). This is the first part of a few refactorings to simplify error reporting and potentially support more output formats (like a standardized JSON output and possibly an --explain mode that can work with the user's code), though this PR stands on its own and doesn't assume further changes. As part of separating out the errors crate, I have also refactored the code position portion of codemap into its own crate (libsyntax_pos). While it's helpful to have the common code positions in a separate crate for the new errors crate, this may also enable further simplifications in the future.
2016-06-23Move errors from libsyntax to its own crateJonathan Turner-1/+3
2016-06-20Merge PatKind::QPath into PatKind::Path in ASTVadim Petrochenkov-2/+1
2016-06-14Remove the type parameter from `syntax::visit::Visitor`Jeffrey Seyfried-1/+1
2016-06-11save-analysis: some refinements to JSON dataNick Cameron-0/+5
Split variable and function kinds to give more information. Give children for methods, structs, enums, and traits.
2016-06-10Introduce TyCtxt::expect_def/expect_resolution helpers and use them where ↵Vadim Petrochenkov-11/+3
possible
2016-05-29Auto merge of #33859 - nrc:save-field-sub, r=pnkfelixbors-3/+9
save-analysis: be a bit more defensive with field sub-expressions Prevents an ice with `(...).f` since the sub-expression is in the AST but not the HIR. We could actually do better in this specific case, but it doesn't seem worth it.
2016-05-27Auto merge of #33800 - nrc:save-fn-name, r=eddybbors-3/+2
save-analysis: use a function's short name
2016-05-26Implement `..` in tuple (struct) patternsVadim Petrochenkov-1/+1
2016-05-25save-analysis: be a bit more defensive with field sub-expressionsNick Cameron-3/+9
Prevents an ice with `(...).f` since the sub-expression is in the AST but not the HIR. We could actually do better in this specific case, but it doesn't seem worth it.
2016-05-23save-analysis: use a function's short nameNick Cameron-3/+2
2016-05-11save-analysis: give better text info in value fieldsNick Cameron-9/+46
2016-05-11save-analysis: attempt number 2 at a JSON versionNick Cameron-0/+3
2016-05-11rustc: Split 'tcx into 'gcx and 'tcx for InferCtxt and its users.Eduard Burtescu-4/+4
2016-05-11rustc: Replace &'a TyCtxt<'tcx> with a TyCtxt<'a, 'tcx> wrapper.Eduard Burtescu-4/+4
2016-05-03save-analysis: use a decoupled representation for dumped dataAdolfo Ochagavía-11/+11
Closes #33348
2016-05-01Avoid using the lowering context in `librustc_save_analysis`Jeffrey Seyfried-13/+7
2016-04-28Review changes and satisfy make tidyNick Cameron-1/+1
2016-04-26save-analysis-json: thread through -z optionNick Cameron-10/+36
In fact, we make JSOn the default and add an option for save-analysis-csv for the legacy behaviour. We also rename some bits and pieces `dxr` -> `save-analysis`
2016-04-25save-analysis: implement JSON dumpsNick Cameron-0/+11
2016-04-20debugging, misc fixesNick Cameron-5/+6
2016-04-06Rollup merge of #32570 - eddyb:tis-but-a-front, r=nikomatsakisManish Goregaokar-14/+12
r? @nikomatsakis Conflicts: src/librustc_save_analysis/lib.rs src/libsyntax/ast_util.rs
2016-04-06rustc: retire hir::map's paths.Eduard Burtescu-6/+6
2016-04-06Move span into `StructField`Vadim Petrochenkov-3/+3
2016-04-06Get rid of ast::StructFieldKindVadim Petrochenkov-17/+16
2016-04-06rustc: move middle::{def,def_id,pat_util} to hir.Eduard Burtescu-2/+2
2016-04-06syntax: dismantle ast_util.Eduard Burtescu-2/+1
2016-04-06rustc: move rustc_front to rustc::hir.Eduard Burtescu-4/+3
2016-03-31librustc_save_analysis: remove duplicate macro defBenjamin Herr-1/+0
2016-03-31librustc_save_analysis: use bug!(), span_bug!()Benjamin Herr-27/+22
2016-03-27rustc_trans: move save to librustc_save_analysis.Eduard Burtescu-0/+758