summary refs log tree commit diff
path: root/src/librustc_save_analysis/lib.rs
AgeCommit message (Collapse)AuthorLines
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
2017-11-08save-analysis: fix bug with method idsNick Cameron-1/+7
This just handles a missing entry, doesn't try to recover, because I couldn't actually find a test case. cc https://github.com/rust-lang-nursery/rls/issues/558
2017-11-06save-analysis: fix bugs in method chainsNick Cameron-15/+18
Use the span we save in the PathSegment for a method call, rather than searching for it in the text. Fixes https://github.com/nrc/rls-analysis/issues/111
2017-11-04Auto merge of #45709 - nrc:rls-bugs-2, r=eddybbors-18/+52
Fix a bunch of minor save-analysis bugs r? @eddyb
2017-11-02Auto merge of #45468 - Xanewok:crate-source, r=nrcbors-9/+9
Emit crate disambiguators in save-analysis data Needed for https://github.com/nrc/rls-analysis/issues/93. Blocked by https://github.com/nrc/rls-data/pull/11. (For now, this pulls my branch [rls-data/crate-source](https://github.com/Xanewok/rls-data/tree/crate-source)) This will allow to disambiguate different crates types/versions when indexing resulting save-analysis data (most importantly allow to support bin+lib and different crate versions). r? @nrc
2017-11-02save-analysis: corrects reference for tuple struct and unit struct literalsNick Cameron-2/+13
Fixes https://github.com/nrc/rls-analysis/issues/77
2017-11-02save-analysis: handle function types in boundsNick Cameron-16/+39
This special cases the function type sugar in paths and deals with traits bounds as just the path parts. That required refactoring the path collector to distinguish between variable decls and references in patterns, basically just to please the borrow checker. cc https://github.com/nrc/rls-analysis/issues/37
2017-10-27Use rls-data 0.12Igor Matuszewski-1/+2
2017-10-27Implement RFC 1861: Extern typesPaul Lietar-0/+3
2017-10-27Emit crate disambiguators in save-analysis dataIgor Matuszewski-9/+8
2017-09-08Use NodeId/HirId instead of DefId for local variables.Eduard-Mihai Burtescu-7/+22
2017-09-07rustc: Remove `CrateStore::crates` as a methodAlex Crichton-1/+1
This commit moves the `crates` method to a query and then migrates all callers to use a query instead of the now-renamed `crates_untracked` method where possible. Closes #41417
2017-09-05rustc: Flag some CrateStore methods as "untracked"Alex Crichton-1/+1
The main use of `CrateStore` *before* the `TyCtxt` is created is during resolution, but we want to be sure that any methods used before resolution are not used after the `TyCtxt` is created. This commit starts moving the methods used by resolve to all be named `{name}_untracked` where the rest of the compiler uses just `{name}` as a query. During this transition a number of new queries were added to account for post-resolve usage of these methods.
2017-08-30Make fields of `Span` privateVadim Petrochenkov-6/+6
2017-08-25*: remove crate_{name,type} attributesTamir Duberstein-3/+0
Fixes #41701.
2017-08-21Auto merge of #43971 - alexcrichton:lint-statements, r=michaelwoeristerbors-1/+1
rustc: Add `Local` to the HIR map of parents When walking parents for lints we want to be sure to hit `let` statements which can have attributes, so hook up these statements in the HIR map. Closes #43910
2017-08-19rustc: Remove some dead codeVadim Petrochenkov-8/+1
2017-08-17rustc: Rename NodeLocal to NodeBindingAlex Crichton-1/+1
2017-08-15use field init shorthand EVERYWHEREZack M. Davis-4/+4
Like #43008 (f668999), but _much more aggressive_.
2017-08-11Improve validation of TypeckTables keys.Michael Woerister-1/+1
2017-08-11Encapsulate sub-table access in TypeckTables and validate keys on each access.Michael Woerister-2/+2
2017-08-11Make TypeckTables::type_dependent_defs use ItemLocalId instead of NodeId.Michael Woerister-3/+5