about summary refs log tree commit diff
path: root/src/librustc/traits/util.rs
AgeCommit message (Collapse)AuthorLines
2020-02-16Move librustc/{traits,infer} to librustc_infer.Camille GILLOT-674/+0
2020-02-02Add a resume type param to the generator substsJonas Schievink-1/+1
...and unify it with `()` for now
2020-02-02Add a resume type parameter to `Generator`Jonas Schievink-2/+4
2020-01-27don't clone types that are copy, round two.Matthias Krüger-2/+2
2020-01-20Add `ConstnessAnd` that implements `ToPredicate`Dylan MacKenzie-12/+13
2020-01-20Add `constness` field to `ty::Predicate::Trait`Dylan MacKenzie-4/+4
2020-01-17Use named fields for `hir::ItemKind::Impl`Dylan MacKenzie-1/+1
2020-01-10nix syntax::errors & prefer rustc_errors over errorsMazdak Farrokhzad-1/+1
2020-01-07Make traits::util::* free functions.Camille GILLOT-102/+100
2020-01-05Remove rustc_hir reexports in rustc::hir.Mazdak Farrokhzad-2/+2
2020-01-04canonicalize FxHash{Map,Set} importsMazdak Farrokhzad-1/+1
2020-01-01Rename `syntax_pos` to `rustc_span` in source codeVadim Petrochenkov-1/+1
2019-12-22Format the worldMark Rousskov-128/+127
2019-11-21Aggregation of drive-by cosmetic changes.Alexander Regueiro-1/+1
2019-10-05Deny specializing items not in the parent implJonas Schievink-3/+2
2019-09-27Remove global_tcx from TyCtxtMark Rousskov-2/+1
The non-global context was removed; there's only one context now. This is a noop method that only serves to confuse readers -- remove it.
2019-09-26Rename `Item.node` to `Item.kind`varkor-1/+1
2019-09-26Rename `subst::Kind` to `subst::GenericArg`varkor-2/+2
2019-09-18Add explanation to type mismatch involving type params and assoc typesEsteban Küber-14/+13
2019-09-07Apply suggestions from code reviewAlexander Regueiro-1/+1
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
2019-09-07Aggregation of cosmetic changes made during work on REPL PRs: librustcAlexander Regueiro-3/+3
2019-07-03Remove needless lifetimesJeremy Stucki-1/+1
2019-06-17remove _by_hir_id if there is no NodeId counterpartljedrz-1/+1
2019-06-14Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-15/+8
2019-06-14Unify all uses of 'gcx and 'tcx.Eduard-Mihai Burtescu-42/+42
2019-06-12Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-23/+23
2019-06-12rustc: replace `TyCtxt<'tcx, 'gcx, 'tcx>` with `TyCtxt<'gcx, 'tcx>`.Eduard-Mihai Burtescu-13/+13
2019-06-12Fix fallout from `deny(unused_lifetimes)`.Eduard-Mihai Burtescu-11/+11
2019-06-12rustc: replace `TyCtxt<'a, 'gcx, 'tcx>` with `TyCtxt<'tcx, 'gcx, 'tcx>`.Eduard-Mihai Burtescu-33/+33
2019-05-26Rename "Associated*" to "Assoc*"Andrew Xu-3/+3
We are going to uniform the terminology of all associated items. Methods that may or may not have `self` are called "associated functions". Because `AssociatedFn` is a bit long, we rename `Associated` to `Assoc`.
2019-05-20Addressed more points raised in review.Alexander Regueiro-39/+27
2019-05-20Addressed more points raised in review.Alexander Regueiro-54/+42
2019-05-20Addressed points raised in review.Alexander Regueiro-11/+22
2019-05-20Fixed detection of multiple non-auto traits.Alexander Regueiro-66/+129
2019-05-20Addressed review points.Alexander Regueiro-25/+20
2019-05-20Ban multi-trait objects via trait aliases.Alexander Regueiro-60/+155
2019-05-20Accumulation of various drive-by cosmetic changes.Alexander Regueiro-8/+6
2019-05-06Rename `ParamTy::idx` to `ParamTy::index`varkor-1/+1
2019-03-25Utilize `?` instead of `return None`.Corey Farwell-5/+1
2019-02-27rename Substs to InternalSubstscsmoe-2/+2
Change-Id: I3fa00e999a2ee4eb72db1fdf53a8633b49176a18
2019-02-10Auto merge of #58151 - ljedrz:HirIdify_rustc, r=Zoxcbors-3/+3
Partially HirId-ify rustc Another step towards https://github.com/rust-lang/rust/pull/57578.
2019-02-05rustc: partially HirIdifyljedrz-3/+3
2019-02-05move librustc to 2018Mark Mansi-7/+7
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-07Re-added accidentally-removed imports.Alexander Regueiro-1/+2
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-3/+2
2018-12-06Use a function to access the Hir map to be able to turn it into a query laterJohn Kåre Alsaker-2/+2
2018-11-11Rollup merge of #55745 - nnethercote:outlives_components-SmallVec, ↵Pietro Albini-1/+3
r=matthewjasper Convert `outlives_components`' return value to a `SmallVec` outparam. This avoids some allocations, reducing instruction counts by 1% on a couple of benchmarks.
2018-11-08Use `SmallVec` outparams in several functions.Nicholas Nethercote-1/+3
This avoids some allocations, reducing instruction counts by 1% on a couple of benchmarks.
2018-11-07Look at projections from supertraits when constructing trait objects.Alexander Regueiro-1/+1