summary refs log tree commit diff
path: root/src/librustc_save_analysis/lib.rs
AgeCommit message (Collapse)AuthorLines
2018-07-29Remove unused `mut`sMatthew Jasper-1/+1
2018-07-25Deny bare_trait_objects globallyTatsuyuki Ishi-1/+0
2018-07-18Implement existential typesOliver Schneider-0/+1
2018-07-16ItemKindcsmoe-2/+2
2018-07-16TyKindcsmoe-1/+1
2018-07-16ExprKindcsmoe-2/+2
2018-07-12Deny bare trait objects in src/librustc_save_analysisljedrz-1/+2
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-30Fortify dummy span checkingVadim Petrochenkov-1/+1
2018-06-28Use `Ident`s for associated item definitions in HIRVadim Petrochenkov-2/+3
Remove emulation of hygiene with gensyms
2018-06-23hygiene: Merge `NameAndSpan` into `ExpnInfo`Vadim Petrochenkov-2/+2
2018-06-20Simply joint lifetime/type iterationvarkor-4/+1
2018-06-20Rename structures in astvarkor-2/+2
2018-06-20Refactor ast::GenericParam as a structvarkor-3/+3
2018-06-20Rename ast::GenericParam and ast::GenericArgvarkor-2/+2
It's so confusing to have everything having the same name, at least while refactoring.
2018-06-20Make method and variable names more consistentvarkor-2/+2
2018-06-20Rename "parameter" to "arg"varkor-2/+2
2018-06-20Rename PathParameter(s) to GenericArg(s)varkor-1/+1
2018-06-07Add existential type definitonsOliver Schneider-0/+1
2018-06-01Update recursion limitsJohn Kåre Alsaker-0/+2
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-0/+1
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.
2018-04-15Check generated save-analysis, instead of `bug!()`ingShotaro Yamada-1/+2
Injected crates don't have extern info. Let's skip them.
2018-04-12Avoid comparing fields by name when possibleVadim Petrochenkov-4/+5
Resolve them into field indices once and then use those resolutions + Fix rebase
2018-04-12AST/HIR: Merge field access expressions for named and numeric fieldsVadim Petrochenkov-0/+1
2018-04-11Extend `ExternCrate` to cover externs inferred from `use` or pathsShotaro Yamada-3/+3
2018-04-08Move deny(warnings) into rustbuildMark Simulacrum-1/+0
This permits easier iteration without having to worry about warnings being denied. Fixes #49517
2018-04-06Remove more duplicated spansVadim Petrochenkov-4/+4
2018-04-06Rename `ast::Variant_::name` into `ident` + Fix rebaseVadim Petrochenkov-1/+1
2018-04-06Get rid of `SpannedIdent`Vadim Petrochenkov-6/+6
2018-04-03expand macro invocations in `extern {}` blocksAustin Bonander-0/+1
2018-03-13add `canonicalize` method to `InferCtxt` [VIC]Niko Matsakis-0/+1
2018-02-10Emit data::Impl in save-analysisMartin Algesten-5/+36
2018-02-06Rollup merge of #48007 - nrc:rls-field-init, r=eddybkennytm-1/+1
save-analysis: avoid implicit unwrap When looking up a field defintion, since the name might be incorrect in the field init shorthand case. cc https://github.com/rust-lang-nursery/rls/issues/699 r? @eddyb
2018-02-05save-analysis: avoid implicit unwrapNick Cameron-1/+1
When looking up a field defintion, since the name might be incorrect in the field init shorthand case. cc https://github.com/rust-lang-nursery/rls/issues/699
2018-01-16add documentation from doc(include) to analysis dataQuietMisdreavus-0/+11
2018-01-13Auto merge of #47181 - michaelwoerister:var-len-def-index, r=eddybbors-1/+1
Use DefIndex encoding that works better with on-disk variable length integer representations. Use the least instead of the most significant bit for representing the address space. r? @eddyb
2018-01-09Replace uses of DepGraph.in_ignore with DepGraph.with_ignoreJohn Kåre Alsaker-12/+12
2018-01-08Use different DefIndex representation that is better suited for variable ↵Michael Woerister-1/+1
length integer encodings.
2018-01-08rustc::ty: Rename `struct_variant` to `non_enum_variant`Robin Kruppe-1/+1
It is also intended for use with unions.
2017-12-21Add GenericParam, refactor Generics in ast, hir, rustdocJonas Platte-12/+6
The Generics now contain one Vec of an enum for the generic parameters, rather than two separate Vec's for lifetime and type parameters. Additionally, places that previously used Vec<LifetimeDef> now use Vec<GenericParam> instead.
2017-12-14stub out trait aliases in save_analysisAlex Burka-0/+1
2017-12-14Use PathBuf instead of String where applicableOliver Schneider-2/+4
2017-11-08save-analysis: run rustfmtNick Cameron-175/+241