about summary refs log tree commit diff
path: root/src/librustc_save_analysis
AgeCommit message (Collapse)AuthorLines
2018-08-04Normalize variants of CrateType to standard styleMark Rousskov-2/+2
This is a clippy-breaking change.
2018-08-04cleanup: Remove `Def::GlobalAsm`Vadim Petrochenkov-1/+0
2018-08-01resolve: Implement prelude search for macro pathsVadim Petrochenkov-0/+2
resolve/expansion: Implement tool attributes
2018-07-30Auto merge of #52830 - matthewjasper:bootstrap-prep, r=matthewjasperbors-1/+1
[NLL] Fix some things for bootstrap Some changes that are required when bootstrapping rustc with NLL enabled. * Remove a bunch of unused `mut`s that aren't needed, but the existing lint doesn't catch. * Rewrite a function call to satisfy NLL borrowck. Note that the borrow is two-phase, but gets activated immediately by an unsizing coercion. cc #51823
2018-07-29Remove unused `mut`sMatthew Jasper-1/+1
2018-07-29Replace push loops with collect() and extend() where possibleljedrz-6/+5
2018-07-25Deny bare_trait_objects globallyTatsuyuki Ishi-1/+0
2018-07-18Match ergonomicsOliver Schneider-1/+1
2018-07-18Implement existential typesOliver Schneider-0/+53
2018-07-16ItemKindcsmoe-2/+2
2018-07-16TyKindcsmoe-1/+1
2018-07-16ExprKindcsmoe-2/+2
2018-07-14Address commentsVadim Petrochenkov-3/+3
2018-07-14Remove most of `PartialEq` impls from AST and HIR structuresVadim Petrochenkov-3/+3
2018-07-12Deny bare trait objects in src/librustc_save_analysisljedrz-3/+4
2018-07-01call it `hir::VisibilityKind` instead of `hir::Visibility_:*`Zack M. Davis-1/+1
It was pointed out in review that the glob-exported underscore-suffixed convention for `Spanned` HIR nodes is no longer preferred: see February 2016's #31487 for AST's migration away from this style towards properly namespaced NodeKind enums. This concerns #51968.
2018-06-30in which hir::Visibility recalls whence it came (i.e., becomes Spanned)Zack M. Davis-1/+3
There are at least a couple (and plausibly even three) diagnostics that could use the spans of visibility modifiers in order to be reliably correct (rather than hacking and munging surrounding spans to try to infer where the visibility keyword must have been). We follow the naming convention established by the other `Spanned` HIR nodes: the "outer" type alias gets the "prime" node-type name, the "inner" enum gets the name suffixed with an underscore, and the variant names are prefixed with the prime name and `pub use` exported from here (from HIR). Thanks to veteran reviewer Vadim Petrochenkov for suggesting this uniform approach. (A previous draft, based on the reasoning that `Visibility::Inherited` should not have a span, tried to hack in a named `span` field on `Visibility::Restricted` and a positional field on `Public` and `Crate`. This was ... not so uniform.)
2018-06-30Auto merge of #51717 - Mark-Simulacrum:snap, r=alexcrichtonbors-1/+0
Bootstrap from 1.28.0 beta
2018-06-30Bootstrap from 1.28.0-beta.3Mark Simulacrum-1/+0
2018-06-30Auto merge of #51762 - petrochenkov:oh-hi-mark, r=oli-obkbors-1/+1
hygiene: Implement transparent marks and use them for call-site hygiene in proc-macros Fixes https://github.com/rust-lang/rust/issues/50050
2018-06-30Auto merge of #51806 - oli-obk:lowering_cleanups1, r=cramertjbors-1/+1
Lowering cleanups [1/N]
2018-06-30Fortify dummy span checkingVadim Petrochenkov-1/+1
2018-06-28Use `Ident`s for associated item definitions in HIRVadim Petrochenkov-6/+7
Remove emulation of hygiene with gensyms
2018-06-27Generate the `NodeId` for `existential type` in the ASTOliver Schneider-1/+1
2018-06-23hygiene: Merge `NameAndSpan` into `ExpnInfo`Vadim Petrochenkov-2/+2
2018-06-21async await desugaring and testsTaylor Cramer-3/+3
2018-06-21Parse async fn header.Without Boats-9/+15
This is gated on edition 2018 & the `async_await` feature gate. The parser will accept `async fn` and `async unsafe fn` as fn items. Along the same lines as `const fn`, only `async unsafe fn` is permitted, not `unsafe async fn`.The parser will not accept `async` functions as trait methods. To do a little code clean up, four fields of the function type struct have been merged into the new `FnHeader` struct: constness, asyncness, unsafety, and ABI. Also, a small bug in HIR printing is fixed: it previously printed `const unsafe fn` as `unsafe const fn`, which is grammatically incorrect.
2018-06-20Make GenericBound explicitvarkor-5/+3
2018-06-20Rename ParamBound(s) to GenericBound(s)varkor-4/+4
2018-06-20Rename TraitTyParamBound to ParamBound::Traitvarkor-2/+2
2018-06-20Lift bounds into GenericParamvarkor-17/+17
2018-06-20Simply joint lifetime/type iterationvarkor-4/+1
2018-06-20Rename structures in astvarkor-11/+11
2018-06-20Refactor generic parameters in rustdoc/cleanvarkor-24/+18
2018-06-20Remove AngleBracketedArgs implvarkor-5/+13
2018-06-20Refactor ast::GenericParam as a structvarkor-70/+65
2018-06-20Rename ast::GenericParam and ast::GenericArgvarkor-7/+7
It's so confusing to have everything having the same name, at least while refactoring.
2018-06-20Make method and variable names more consistentvarkor-6/+6
2018-06-20Rename "parameter" to "arg"varkor-7/+7
2018-06-20Rename PathParameter(s) to GenericArg(s)varkor-4/+4
2018-06-20Consolidate PathParameters and AngleBracketedParameterDatavarkor-2/+2
2018-06-07Add existential type definitonsOliver Schneider-0/+1
2018-06-01Update recursion limitsJohn Kåre Alsaker-0/+2
2018-05-19rustc: introduce {ast,hir}::AnonConst to consolidate so-called "embedded ↵Eduard-Mihai Burtescu-3/+3
constants".
2018-05-15save-analysis: handle aliasing imports a bit more nicelyNick Cameron-93/+9
2018-05-13restore feature for stage0Alex Burka-0/+1
2018-05-13stabilize :lifetimeAlex Burka-1/+0
2018-05-07save-analysis: emit correct docs for methodsNick Cameron-36/+30
cc https://github.com/rust-lang-nursery/rls/issues/446
2018-04-26rustc_target: move in syntax::abi and flip dependency.Irina Popa-3/+5
2018-04-16Auto merge of #49847 - sinkuu:save_analysis_implicit_extern, r=petrochenkovbors-1/+2
Fix save-analysis generation with extern_in_paths/extern_absolute_paths Fixes #48742.