about summary refs log tree commit diff
path: root/src/librustc_mir/monomorphize/mod.rs
AgeCommit message (Collapse)AuthorLines
2020-08-30mv compiler to compiler/mark-32/+0
2020-08-24hir: consistent use and naming of lang itemsDavid Wood-2/+2
This commit adjusts the naming of various lang items so that they are consistent and don't include prefixes containing the target or "LangItem". In addition, lang item variants are no longer exported from the `lang_items` module. Signed-off-by: David Wood <david@davidtw.co>
2020-07-20mir: `unused_generic_params` queryDavid Wood-0/+1
This commit implements the `unused_generic_params` query, an initial version of polymorphization which detects when an item does not use generic parameters and is being needlessly monomorphized as a result. Signed-off-by: David Wood <david@davidtw.co>
2020-06-05Rename traits::ImplSourceImpl to ImplSourceUserDefined.Ana-Maria Mihalache-3/+4
2020-06-05Rename traits::Vtable to ImplSource.Ana-Maria Mihalache-3/+3
2020-05-15Remove lang_items\(\).*\.unwrap\(\)Nathan Corbyn-1/+3
2020-04-18Detect mistyped associated consts in `Instance::resolve`.Eduard-Mihai Burtescu-1/+1
2020-03-30rustc -> rustc_middle part 2Mazdak Farrokhzad-3/+3
2020-03-06Don't redundantly repeat field names (clippy::redundant_field_names)Matthias Krüger-1/+1
2020-03-01`delay_span_bug` when codegen cannot select obligationEsteban Küber-1/+1
Fix #69602, introduced in #60126 by letting the compiler continue past type checking after encountering errors.
2019-12-22Format the worldMark Rousskov-2/+2
2019-11-21Aggregation of drive-by cosmetic changes.Alexander Regueiro-1/+1
2019-06-14Unify all uses of 'gcx and 'tcx.Eduard-Mihai Burtescu-1/+1
2019-06-12Run `rustfmt --file-lines ...` for changes from previous commits.Eduard-Mihai Burtescu-4/+5
2019-06-12rustc: replace `TyCtxt<'tcx, 'gcx, 'tcx>` with `TyCtxt<'gcx, 'tcx>`.Eduard-Mihai Burtescu-1/+1
2019-06-12Fix fallout from `deny(unused_lifetimes)`.Eduard-Mihai Burtescu-1/+1
2019-06-12rustc: replace `TyCtxt<'a, 'gcx, 'tcx>` with `TyCtxt<'tcx, 'gcx, 'tcx>`.Eduard-Mihai Burtescu-1/+1
2019-06-02move monoitemext to inherent methodsMark Mansi-3/+0
2019-06-02remove reexports of mir::mono::{MonoItem,CodegenUnit}Mark Mansi-2/+2
2019-06-02move single-use functionMark Mansi-44/+0
2019-06-02deduplicate ty::Instance constructorsMark Mansi-85/+0
2019-06-02remove reexport of rustc::ty::InstanceMark Mansi-2/+1
2019-05-26Rename "Associated*" to "Assoc*"Andrew Xu-1/+1
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`.
2018-12-25Remove licensesMark Rousskov-10/+0
2018-07-27SimplifyShotaro Yamada-6/+4
2018-07-25Improve readability in a few sortsljedrz-3/+1
2018-05-21rustc: make mk_substs_trait take &[Kind] instead of &[Ty].Eduard-Mihai Burtescu-6/+2
2018-05-17Rename trans to codegen everywhere.Irina Popa-10/+10
2018-05-08Store the GeneratorInterior in the new GeneratorSubstsJohn Kåre Alsaker-2/+1
2018-04-24Make Binder's field private and clean up its usageTyler Mandry-1/+1
2018-03-13transition various normalization functions to the new methodsNiko Matsakis-1/+1
In particular: - `fully_normalize_monormophic_ty` => `normalize_erasing_regions` - `normalize_associated_type_in_env` => `normalize_erasing_regions` - `fully_normalize_associated_types_in` => `normalize_erasing_regions` - `erase_late_bound_regions_and_normalize` => `normalize_erasing_late_bound_regions`
2018-03-13refactor `ParamEnv::empty(Reveal)` into two distinct methodsNiko Matsakis-2/+2
- `ParamEnv::empty()` -- does not reveal all, good for typeck - `ParamEnv::reveal_all()` -- does, good for trans - `param_env.with_reveal_all()` -- converts an existing parameter environment
2018-02-23Introduce UnpackedKindvarkor-2/+2
This adds an `UnpackedKind` type as a typesafe counterpart to `Kind`. This should make future changes to kinds (such as const generics!) more resilient, as the type-checker should catch more potential issues.
2018-01-19Allow runtime switching between trans backendsbjorn3-0/+48
2017-12-18Move partitioning.rs to rustc_mirMaik Klein-0/+2
2017-12-18Rename mono_item.rs to item.rsMaik Klein-1/+1
2017-12-18Move trans_item and monomorphize to rustc_mirMaik Klein-0/+128
2017-12-18Move collector to monomorphizeMaik Klein-0/+1