about summary refs log tree commit diff
path: root/src/librustc/ty/structural_impls.rs
AgeCommit message (Collapse)AuthorLines
2019-06-19Weave the alignment through `ByRef`Oliver Scherer-1/+1
2019-06-14Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-2/+2
2019-06-14Unify all uses of 'gcx and 'tcx.Eduard-Mihai Burtescu-55/+55
2019-06-12Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-9/+5
2019-06-12rustc: replace `TyCtxt<'tcx, 'gcx, 'tcx>` with `TyCtxt<'gcx, 'tcx>`.Eduard-Mihai Burtescu-32/+32
2019-06-12Fix fallout from `deny(unused_lifetimes)`.Eduard-Mihai Burtescu-32/+32
2019-06-12rustc: replace `TyCtxt<'a, 'gcx, 'tcx>` with `TyCtxt<'tcx, 'gcx, 'tcx>`.Eduard-Mihai Burtescu-32/+32
2019-05-31Remove ty::BrFresh and new_boundYuki Okushi-1/+0
2019-05-25Make `ConstValue::Slice` solely take `[u8]` and `str`Oliver Scherer-2/+2
2019-05-25Don't use `ty::Const` without immediately interningOliver Scherer-45/+1
2019-05-25Reuse the pretty printing architecture for printing of constantsOliver Scherer-0/+33
2019-05-07Rollup merge of #60579 - varkor:typaram-index, r=eddybMazdak Farrokhzad-1/+1
Rename `ParamTy::idx` to `ParamTy::index` This makes it consistent with `ParamConst` and `EarlyBoundRegion`.
2019-05-06Implement TypeFoldable for InferConstvarkor-5/+13
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-05-06Rename `ParamTy::idx` to `ParamTy::index`varkor-1/+1
2019-05-03rustc: rename hir::def::Def to Res (short for "resolution").Eduard-Mihai Burtescu-3/+3
2019-05-01Take ConstValue::Placeholder into account in new locationsvarkor-1/+3
2019-05-01Inline ConstError into TypeErrorvarkor-19/+2
2019-05-01Add `ConstError`varkor-1/+20
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-04-16refactor ExprKind to use new PointerCast enumSaleem Jaffer-21/+3
2019-04-16refactor Adjustment to use new PointerCast enumSaleem Jaffer-15/+22
2019-04-02Replace adt_def with name in mir::ProjectionElem::DowncastTyler Mandry-1/+1
2019-04-01Allow closure to unsafe fn coercionTaiki Endo-3/+3
2019-03-16Revert the `LazyConst` PROliver Scherer-58/+28
2019-03-15Fix rebase fallout and address some review comments.Eduard-Mihai Burtescu-1/+1
2019-03-15rustc: slice substs in ty::print instead of passing the full ones.Eduard-Mihai Burtescu-2/+2
2019-03-15rustc: remove PrintCx from ty::Print and rely on printers carrying TyCtxt.Eduard-Mihai Burtescu-5/+25
2019-03-15rustc: don't thread existential projections through path_generic_args.Eduard-Mihai Burtescu-3/+2
2019-03-15rustc: remove obsolete hacks from ppaux, relating to normalization under HRTB.Eduard-Mihai Burtescu-22/+0
2019-03-15rustc: move Debug impls from ppaux to ty::structural_impls.Eduard-Mihai Burtescu-0/+270
2019-03-15rustc: always rely on '_ to be not printed by ty::Region itself.Eduard-Mihai Burtescu-0/+1
2019-03-15rustc: tie the 'tcx between Print and PrintCx in ty::print.Eduard-Mihai Burtescu-0/+32
2019-03-05Implement structural_impls for const genericsvarkor-1/+21
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
2019-02-27Rename variadic to c_variadicDan Robertson-2/+2
Function signatures with the `variadic` member set are actually C-variadic functions. Make this a little more explicit by renaming the `variadic` boolean value, `c_variadic`.
2019-02-24Rollup merge of #58511 - oli-obk:const_to_op, r=RalfJungMazdak Farrokhzad-2/+2
Const to op simplification r? @RalfJung alternative to https://github.com/rust-lang/rust/pull/58486
2019-02-21restore the actual leak-checkNiko Matsakis-0/+8
2019-02-16Reuse the `Pointer` type instead of passing reassembling it at many use sitesOliver Scherer-2/+2
2019-02-09Auto merge of #58207 - nnethercote:intern_lazy_const, r=oli-obkbors-1/+1
Make `intern_lazy_const` actually intern its argument. Currently it just unconditionally allocates it in the arena. For a "Clean Check" build of the the `packed-simd` benchmark, this change reduces both the `max-rss` and `faults` counts by 59%; it slightly (~3%) increases the instruction counts but the `wall-time` is unchanged. For the same builds of a few other benchmarks, `max-rss` and `faults` drop by 1--5%, but instruction counts and `wall-time` changes are in the noise. Fixes #57432, fixes #57829.
2019-02-06Make `intern_lazy_const` actually intern its argument.Nicholas Nethercote-1/+1
Currently it just unconditionally allocates it in the arena. For a "Clean Check" build of the the `packed-simd` benchmark, this change reduces both the `max-rss` and `faults` counts by 59%; it slightly (~3%) increases the instruction counts but the `wall-time` is unchanged. For the same builds of a few other benchmarks, `max-rss` and `faults` drop by 1--5%, but instruction counts and `wall-time` changes are in the noise. Fixes #57432, fixes #57829.
2019-02-05move librustc to 2018Mark Mansi-27/+27
2019-01-27`ConstValue::ScalarPair` only needs to represent slicesOliver Scherer-1/+1
2019-01-04Auto merge of #56723 - oli-obk:lazy_const, r=nikomatsakisbors-21/+48
Don't emit `Unevaluated` from `const_eval` cc @eddyb @RalfJung
2019-01-02improve handling for subtypeNiko Matsakis-8/+2
Still not great, but good enough to land this PR.
2019-01-01`<&'tcx ty::Const as Deref>::deref`Oliver Scherer-4/+33
2019-01-01Move the `Unevaluated` constant arm upwards in the type structureOliver Scherer-20/+18
2018-12-27Add a def-id in `ty::ParamEnv`scalexm-1/+2
2018-12-25Remove licensesMark Rousskov-10/+0
2018-11-30Improve the diagnostic messageOliver Scherer-0/+1
2018-11-24Introduce `TyKind::Placeholder` variantscalexm-0/+2
2018-11-12Use IndexVec instead of `usize` in librustcOliver Scherer-1/+1
2018-11-12Shrink some internal enumsOliver Scherer-0/+1