about summary refs log tree commit diff
path: root/src/librustc/ty/context.rs
AgeCommit message (Collapse)AuthorLines
2020-03-30rustc -> rustc_middle part 1Mazdak Farrokhzad-2768/+0
2020-03-28Auto merge of #70483 - Centril:rollup-slli4yf, r=Centrilbors-3/+3
Rollup of 5 pull requests Successful merges: - #70345 (Remove `no_integrated_as` mode.) - #70434 (suggest `;` on expr `mac!()` which is good as stmt `mac!()`) - #70457 (non-exhastive diagnostic: add note re. scrutinee type) - #70478 (Refactor type_of for constants) - #70480 (clarify hir_id <-> node_id method names) Failed merges: r? @ghost
2020-03-27clarify hir_id <-> node_id method namesBastian Kauschke-3/+3
2020-03-26Generalise QueryJobId.Camille GILLOT-2/+2
2020-03-25Rename LayoutDetails to just Layout.Ana-Maria Mihalache-3/+3
2020-03-25Rollup merge of #70373 - Centril:canon-imports, r=Mark-SimulacrumMazdak Farrokhzad-6/+4
normalize some imports & prefer direct ones r? @Mark-Simulacrum
2020-03-24normalize some imports, prefer direct ones.Mazdak Farrokhzad-6/+4
2020-03-24move ModifiedStatic error to ConstEval errors, and generally adjust ↵Ralf Jung-0/+1
terminology from "static" to "global" where appropriate
2020-03-21Rollup merge of #70119 - eddyb:typeck-tables-local-def-id, r=petrochenkovDylan DPC-77/+50
rustc: use LocalDefId instead of DefId in TypeckTables. The logic in `TypeckTables`' implementation of `HashStable`, which created `DefId`s by combining a `CrateNum` from a `DefId` and a `DefIndex` from a `LocalDefId`, bothered me a bit. I don't know how much this matters, but it works so might as well submit it.
2020-03-21Rollup merge of #67888 - Zoxc:metadata-prefetch, r=matthewjasperMazdak Farrokhzad-1/+1
Prefetch some queries used by the metadata encoder This brings the time for `metadata encoding and writing` for `syntex_syntax` from 1.338s to 0.997s with 6 threads in non-incremental debug mode. r? @Mark-Simulacrum
2020-03-20remove redundant returns (clippy::needless_return)Matthias Krüger-2/+2
2020-03-19Make the timer more verboseJohn Kåre Alsaker-1/+1
2020-03-19rustc: use LocalDefId instead of DefId in TypeckTables.Eduard-Mihai Burtescu-77/+50
2020-03-19rustc: use LocalDefId instead of DefIndex in hir::map::definitions.Eduard-Mihai Burtescu-7/+4
2020-03-19rustc: use LocalDefId instead of DefIndex in HirId.Eduard-Mihai Burtescu-12/+11
2020-03-19rustc: introduce DefId::as_local(self) -> Option<LocalDefId> and use it.Eduard-Mihai Burtescu-4/+8
2020-03-19rustc: make LocalDefId's index field public like DefId's is.Eduard-Mihai Burtescu-1/+1
2020-03-19rustc: use LocalDefId instead of DefIndex for query keys.Eduard-Mihai Burtescu-7/+10
2020-03-17Remove `free_region_map` from `TypeckTables`Matthew Jasper-9/+0
It was unused.
2020-03-16Rollup merge of #70036 - mark-i-m:describe-it-4, r=eddybDylan DPC-14/+15
Make article_and_description primarily use def_kind r? @eddyb cc @matthewjasper
2020-03-15make article_and_description primarily use def_kindmark-14/+15
2020-03-14Index HIR after creating TyCtxtJohn Kåre Alsaker-10/+5
2020-03-14Clean up the collectorJohn Kåre Alsaker-1/+1
2020-03-14Create Map after TyCtxtJohn Kåre Alsaker-16/+26
2020-03-12Rollup merge of #69747 - spastorino:rename-rustc-guide, r=pietroalbiniMazdak Farrokhzad-2/+2
Rename rustc guide This is in preparation for https://github.com/rust-lang/rustc-guide/issues/470 Needs to be merged after we actually rename the guide. Have used this to rename: `git grep -l 'rustc_guide' | xargs sed -i 's/rustc_guide/rustc_dev_guide/g'` `git grep -l 'rustc-guide' | xargs sed -i 's/rustc-guide/rustc-dev-guide/g'` `git grep -l 'rustc guide' | xargs sed -i 's/rustc guide/rustc dev guide/g'`
2020-03-12Rollup merge of #69674 - mark-i-m:assoc-fn, r=matthewjasperMazdak Farrokhzad-1/+1
Rename DefKind::Method and TraitItemKind::Method r? @eddyb, @Centril, or @matthewjasper cc #69498 #60163
2020-03-10rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.orgSantiago Pastorino-1/+1
2020-03-10Rename rustc guide to rustc dev guideSantiago Pastorino-2/+2
2020-03-10Rename rustc-guide to rustc-dev-guideSantiago Pastorino-1/+1
2020-03-06Don't redundantly repeat field names (clippy::redundant_field_names)Matthias Krüger-5/+5
2020-03-03DefKind::Method -> DefKind::AssocFnMark Mansi-1/+1
2020-03-01Auto merge of #69592 - petrochenkov:nosyntax, r=Centrilbors-4/+4
Rename `libsyntax` to `librustc_ast` This was the last rustc crate that wasn't following the `rustc_*` naming convention. Follow-up to https://github.com/rust-lang/rust/pull/67763.
2020-02-29Rename `syntax` to `rustc_ast` in source codeVadim Petrochenkov-3/+3
2020-02-29Rollup merge of #69572 - matthiaskrgr:try_err_and_iter_on_ref, r=CentrilDylan DPC-2/+2
use .iter() instead of .into_iter() on references
2020-02-29Make it build againVadim Petrochenkov-1/+1
2020-02-29use .iter() instead of .into_iter() on references.Matthias Krüger-2/+2
2020-02-28use is_empty() instead of len() == x to determine if structs are empty.Matthias Krüger-8/+8
2020-02-26Auto merge of #67742 - mark-i-m:describe-it, r=matthewjasperbors-2/+20
Generalized article_and_description r? @matthewjasper The logic of finding the right word and article to print seems to be repeated elsewhere... this is an experimental method to unify this logic...
2020-02-24librustc{, codegen_ssa,infer,mir_build}: don't clone types that are copyMatthias Krüger-1/+1
2020-02-22address some review comments/bugsmark-0/+2
2020-02-22article and descr for closuresMark Mansi-4/+5
2020-02-22add generator_kind queryMark Mansi-9/+13
2020-02-22some fixesMark Mansi-7/+4
2020-02-22Generalized article_and_descriptionMark Mansi-1/+15
2020-02-19Use a constructor function per dep node instead of an enum and a single functionJohn Kåre Alsaker-2/+2
2020-02-19Split query execution into hot and cold pathsJohn Kåre Alsaker-0/+1
2020-02-14Auto merge of #68693 - Zoxc:query-no-arc, r=michaelwoeristerbors-2/+2
Construct query job latches on-demand r? @michaelwoerister
2020-02-13Make TraitCandidate generic.Camille GILLOT-1/+4
2020-02-13Use HirId in TraitCandidate.Camille GILLOT-0/+1
2020-02-12Use a counter instead of pointers to the stackJohn Kåre Alsaker-1/+1