about summary refs log tree commit diff
path: root/src/librustc/hir/map
AgeCommit message (Collapse)AuthorLines
2018-05-19rustc: introduce {ast,hir}::AnonConst to consolidate so-called "embedded ↵Eduard-Mihai Burtescu-102/+75
constants".
2018-05-19rustc: removed unused `DefPathData::Initializer` DefId's for associated ↵Eduard-Mihai Burtescu-14/+2
constants.
2018-04-27Rename InternedString to LocalInternedString and introduce a new thread-safe ↵John Kåre Alsaker-18/+21
InternedString
2018-04-26rustc_target: move in syntax::abi and flip dependency.Irina Popa-2/+2
2018-04-25Make DepGraph thread-safeJohn Kåre Alsaker-19/+7
2018-04-23introduce new DefPathData variants for traits, assoc typesNiko Matsakis-3/+19
2018-04-19Remove HIR inliningWesley Wiser-25/+1
Fixes #49690
2018-04-15Make use of thread-safe arenasJohn Kåre Alsaker-3/+3
2018-04-10Auto merge of #49390 - Zoxc:sync-syntax, r=michaelwoeristerbors-4/+10
More thread-safety changes r? @michaelwoerister
2018-04-06Remove more duplicated spansVadim Petrochenkov-2/+2
2018-04-06Rename `ast::Variant_::name` into `ident` + Fix rebaseVadim Petrochenkov-1/+1
2018-04-03expand macro invocations in `extern {}` blocksAustin Bonander-0/+4
2018-03-28Make HirMap thread-safeJohn Kåre Alsaker-4/+10
2018-03-20Pass attributes to hir::TyParamMrowqa-0/+1
2018-03-15Rollup merge of #48966 - retep007:hir-fingerprint-optimization, ↵kennytm-8/+12
r=michaelwoerister Speed up SVH computation by using Fingerprint::combine() Fix #47297
2018-03-14Speed up SVH computation by using Fingerprint::combine()Peter Hrvola-8/+12
Fix #47297 r? @michaelwoerister
2018-03-10Auto merge of #47574 - zilbuz:issue-14844, r=nikomatsakisbors-18/+57
Show the used type variable when issuing a "can't use type parameters from outer function" error message Fix #14844 r? @estebank
2018-03-08Add a map of `DefId` to `Span` in the `Definitions` structBasile Desloges-18/+57
2018-03-08Add InterpretInterner to StableHashingContext for AllocId serializationOliver Schneider-1/+1
2018-03-02Perform manual fixupsManish Goregaokar-1/+4
2018-03-02Run Rustfix on librustcManish Goregaokar-3/+3
2018-02-28Rollup merge of #48479 - mark-i-m:rustc-guide, r=nikomatsakiskennytm-4/+0
Start moving to the rustc guide! r? @nikomatsakis cc #48478
2018-02-24Rollup merge of #48353 - michaelwoerister:monoitem-static-defid, r=eddybManish Goregaokar-0/+98
Allow for instantiating statics from upstream crates This PR makes the infrastructure around translating statics a bit more flexible so that it can also instantiate statics from upstream crates if the need arises. This is preparatory work for a MIR-only RLIBs prototype, where the instantiation of a `static` may be deferred until a leaf crate. r? @eddyb (feel free to assign to someone else if you're busy)
2018-02-23Start moving to the rustc guide!Mark Mansi-4/+0
2018-02-19Implement describe_def query for LOCAL_CRATEMichael Woerister-0/+98
2018-02-18Generate documentation for auto-trait implsAaron Hill-0/+4
A new section is added to both both struct and trait doc pages. On struct/enum pages, a new 'Auto Trait Implementations' section displays any synthetic implementations for auto traits. Currently, this is only done for Send and Sync. On trait pages, a new 'Auto Implementors' section displays all types which automatically implement the trait. Effectively, this is a list of all public types in the standard library. Synthesized impls for a particular auto trait ('synthetic impls') take into account generic bounds. For example, a type 'struct Foo<T>(T)' will have 'impl<T> Send for Foo<T> where T: Send' generated for it. Manual implementations of auto traits are also taken into account. If we have the following types: 'struct Foo<T>(T)' 'struct Wrapper<T>(Foo<T>)' 'unsafe impl<T> Send for Wrapper<T>' // pretend that Wrapper<T> makes this sound somehow Then Wrapper will have the following impl generated: 'impl<T> Send for Wrapper<T>' reflecting the fact that 'T: Send' need not hold for 'Wrapper<T>: Send' to hold Lifetimes, HRTBS, and projections (e.g. '<T as Iterator>::Item') are taken into account by synthetic impls However, if a type can *never* implement a particular auto trait (e.g. 'struct MyStruct<T>(*const T)'), then a negative impl will be generated (in this case, 'impl<T> !Send for MyStruct<T>') All of this means that a user should be able to copy-paste a synthetic impl into their code, without any observable changes in behavior (assuming the rest of the program remains unchanged).
2018-02-13Handle path prefix mapping in a more stable way when computing the crate hash.Michael Woerister-2/+19
2018-01-13Remove `impl Foo for ..` in favor of `auto trait Foo`leonardo.yvens-3/+1
No longer parse it. Remove AutoTrait variant from AST and HIR. Remove backwards compatibility lint. Remove coherence checks, they make no sense for the new syntax. Remove from rustdoc.
2018-01-13Auto merge of #47181 - michaelwoerister:var-len-def-index, r=eddybbors-5/+4
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-10/+10
2018-01-08Use different DefIndex representation that is better suited for variable ↵Michael Woerister-5/+4
length integer encodings.
2018-01-07Try to fix a perf regression by updating logMalo Jaffré-1/+1
Upgrade `log` to `0.4` in multiple crates.
2018-01-01Fix docs for future pulldown migrationMalo Jaffré-0/+1
2017-12-22Auto merge of #46842 - michaelwoerister:fingerprint-vec, r=nikomatsakisbors-15/+26
incr.comp.: Use an array instead of a hashmap for storing result hashes. Doing so should result in some of the core tracking components being faster. r? @nikomatsakis
2017-12-21Add GenericParam, refactor Generics in ast, hir, rustdocJonas Platte-13/+18
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-20incr.comp.: Use an IndexVec instead of a hashmap for storing result hashes.Michael Woerister-15/+26
2017-12-14add trait aliases to HIRAlex Burka-1/+3
2017-12-09Use Try syntax for Option in place of macros or matchMatt Brubeck-3/+2
2017-12-04Auto merge of #46427 - michaelwoerister:transitive-svh, r=nikomatsakisbors-3/+23
incr.comp.: Incorporate the stable commandline arg hash and SVHs of upstream crates into the SVH. So far the SVH detected changes in the HIR, which is already very sensitive, but in order for `eval_always` queries to also be sensitive to changes in upstream crates, the SVH also needs to capture changes there. This PR fixes [rust-icci/crossbeam](https://travis-ci.org/rust-icci/crossbeam/builds/308936448), but I have not yet been able to come up with a minimal regression test. r? @nikomatsakis
2017-12-02Auto merge of #46343 - jseyfried:fix_hygiene_bug, r=nrcbors-1/+2
Fix hygiene bug. Fixes #42708. r? @nrc
2017-12-01incr.comp.: Incorporate the stable commandline arg hash and SVHs of upstream ↵Michael Woerister-3/+23
crates in the SVH.
2017-11-30Implement RFC 2128 (use_nested_groups)Pietro Albini-15/+7
This commit adds support for nested groups inside `use` declarations, such as `use foo::{bar, sub::{baz::Foo, *}};`.
2017-11-28Fix hygiene bug.Jeffrey Seyfried-1/+2
2017-11-17Auto merge of #46004 - michaelwoerister:cached-mir-wip-3, r=nikomatsakisbors-1/+11
incr.comp.: Implement query result cache and use it to cache type checking tables. This is a spike implementation of caching more than LLVM IR and object files when doing incremental compilation. At the moment, only the `typeck_tables_of` query is cached but MIR and borrow-check will follow shortly. The feature is activated by running with `-Zincremental-queries` in addition to `-Zincremental`, it is not yet active by default. r? @nikomatsakis
2017-11-16Introduce LocalDefId which provides a type-level guarantee that the DefId is ↵Michael Woerister-1/+11
from the local crate.
2017-11-14rustc: split off BodyOwnerKind from MirSource.Eduard-Mihai Burtescu-0/+22
2017-11-09change separator from `.` to `-`Mikhail Modin-2/+5
2017-11-09change MIR dump filenames from `nodeN` to `DefPath`Mikhail Modin-0/+20
2017-11-08incr.comp.: Add some missing reads in HIR map.Michael Woerister-0/+12
2017-11-04Make DefIndex use newtype_index macroSantiago Pastorino-1/+1