about summary refs log tree commit diff
path: root/src/librustc/util
AgeCommit message (Collapse)AuthorLines
2018-06-20Rename DefPathData::LifetimeDef to LifetimeParamvarkor-1/+1
2018-06-18Auto merge of #51248 - fabric-and-ink:newtype_index_debrujin, r=nikomatsakisbors-1/+1
Declare DebruijnIndex via newtype_index macro Part of #49887 Declare `DebruijnIndex` via the `newtype_index` macro.
2018-06-14Declare DebruijnIndex via newtype_index macroFabian Drinck-1/+1
2018-06-07Add existential type definitonsOliver Schneider-1/+2
2018-05-29Auto merge of #50475 - csmoe:debr, r=nikomatsakisbors-1/+1
Refactor DebruijnIndex to be 0-based Fixes #49813
2018-05-28stop invoking `DebruijnIndex::new` directlyNiko Matsakis-1/+1
Co-authored-by: csmoe <35686186+csmoe@users.noreply.github.com>
2018-05-28in which `NodeMap` and friends are macrotized!Zack M. Davis-17/+12
2018-05-28operate on `HirId` in `hir::Pat::each_binding`, and consequences of thatZack M. Davis-1/+2
Changing the `each_binding` utility method to take the `HirId` of a binding pattern rather than its `NodeId` seems like a modest first step in support of the `HirId`ification initiative #50928. (The inspiration for choosing this in particular came from the present author's previous work on diagnostics issued during liveness analysis, which is the most greatly affected module in this change.)
2018-05-21rustc: move TypeParamDef's fields into GenericParamDefKind::Type.Eduard-Mihai Burtescu-2/+4
2018-05-19rustc: introduce {ast,hir}::AnonConst to consolidate so-called "embedded ↵Eduard-Mihai Burtescu-2/+1
constants".
2018-05-17Rename trans to codegen everywhere.Irina Popa-2/+2
2018-05-15Review refactoringvarkor-17/+15
2018-05-15Rename param_counts to own_countsvarkor-9/+9
2018-05-15Lift pure_wrt_drop to GenericParamDefvarkor-2/+2
2018-05-15Refactor generic params loopsvarkor-3/+5
2018-05-15Pull common parameters into GenericParamDefvarkor-22/+19
This leads to a lot of simplifications, as most code doesn't actually need to know about the specific lifetime/type data; rather, it's concerned with properties like name, index and def_id.
2018-05-15Inline get_typevarkor-2/+7
2018-05-15Use GenericParamCount instead of FxHashMapvarkor-11/+11
2018-05-15Eliminate ty::Generics::types()varkor-10/+15
And with one final incanation, the specific kind iterators were banished from ty::Generics, never to be seen again!
2018-05-15Generalise more cases of explicit iteration of specific kindsvarkor-2/+2
2018-05-15Generalise cases of explicit iteration of specific kindsvarkor-14/+16
2018-05-15Rename TypeParameterDef -> TypeParamDef and RegionParameterDef -> RegionParamDefvarkor-4/+4
2018-05-15Prefer iterator to vecvarkor-6/+6
2018-05-15Consolidate ty::Genericsvarkor-7/+7
2018-05-11Introduce ConstValue and use it instead of miri's Value for constant valuesJohn Kåre Alsaker-7/+3
2018-05-08Insert fields from TypeAndMut into TyRef to allow layout optimizationJohn Kåre Alsaker-2/+2
2018-05-08Store the GeneratorInterior in the new GeneratorSubstsJohn Kåre Alsaker-10/+3
2018-05-08Store generator movability outside GeneratorInteriorJohn Kåre Alsaker-2/+2
2018-05-05Misc tweaksJohn Kåre Alsaker-0/+11
2018-05-02change skolemizations to use universe indexSean Griffin-2/+2
This is sort of confusing "side step". All it does is to change the representation of a skolemized region. but the source of that universe index is not the inference context, which is what we eventually want, but rather an internal counter in the region inference context. We'll patch that up later. But doing this now ought to help with confusing diffs later.
2018-04-27Auto merge of #50102 - Zoxc:query-nomacro, r=michaelwoeristerbors-1/+7
Move query code outside macros and store query jobs separately from query results Based on https://github.com/rust-lang/rust/pull/50067 r? @michaelwoerister
2018-04-27Move query functions out from the define_maps! macroJohn Kåre Alsaker-1/+7
2018-04-27Rename InternedString to LocalInternedString and introduce a new thread-safe ↵John Kåre Alsaker-1/+1
InternedString
2018-04-26rustc_target: move in syntax::abi and flip dependency.Irina Popa-1/+1
2018-04-24Make Binder's field private and clean up its usageTyler Mandry-3/+3
2018-04-23introduce new DefPathData variants for traits, assoc typesNiko Matsakis-2/+19
2018-04-14Rollup merge of #49913 - varkor:RegionParameterDef-InternedString, ↵kennytm-9/+8
r=petrochenkov Use InternedString rather than Name for RegionParameterDef This makes it consistent with `TypeParameterDef`.
2018-04-13Use InternedString rather than Name for RegionParameterDefvarkor-9/+8
This makes it consistent with TypeParameterDef.
2018-04-10Make PerfStats thread-safe and remove unused fieldsJohn Kåre Alsaker-12/+5
2018-04-06Print query stack on ICEsJohn Kåre Alsaker-1/+9
2018-03-30Rename fs::read_string to read_to_string and stabilizeMatt Brubeck-1/+2
2018-03-29Auto merge of #49313 - sgrif:sg-revert-stuff, r=nikomatsakisbors-1/+1
Remove universes from `ty::ParamEnv` This change was never meant to land. #48407 takes an alternate approach. However, that PR is now blocked on some issues with canonicalization, and rebasing these reverts gets harder each time, so let's just get this bit out of the way now. r? @nikomatsakis
2018-03-23Revert "change skolemizations to use universe index"Sean Griffin-1/+1
This reverts commit 35e78b5cddc04c6bd13da2a1290d27cfb8ae8db8.
2018-03-23Rollup merge of #49262 - oli-obk:fixed_size_array_len, r=estebankAlex Crichton-2/+2
Produce nice array lengths on a best effort basis fixes #49208 r? @estebank
2018-03-22Produce nice array lengths on a best effort basisOliver Schneider-2/+2
2018-03-21work around fallout from these changes in rustcNiko Matsakis-0/+18
2018-03-14remove defaulting to unitAndrew Cann-2/+2
Types will no longer default to `()`, instead always defaulting to `!`. This disables the associated warning and removes the flag from TyTuple
2018-03-13add `canonicalize` method to `InferCtxt` [VIC]Niko Matsakis-0/+9
2018-03-13add handy helper for Cell<usize>, used for perf statsNiko Matsakis-0/+10
2018-03-09Move PROFQ_CHAN to a Session fieldJohn Kåre Alsaker-30/+32