summary refs log tree commit diff
path: root/compiler/rustc_middle/src/ty/parameterized.rs
AgeCommit message (Collapse)AuthorLines
2022-09-07rustc: Parameterize `ty::Visibility` over used IDVadim Petrochenkov-2/+2
It allows using `LocalDefId` instead of `DefId` when possible, and also encode cheaper `Visibility<DefIndex>` into metadata.
2022-08-30Separate macro_rules and macro_definition.Camille GILLOT-1/+1
2022-08-30Use tables for macros.Camille GILLOT-1/+1
2022-08-30Move AssocContainer to a metadata table.Camille GILLOT-0/+1
2022-08-29Rollup merge of #99821 - cjgillot:ast-lifetimes-2, r=compiler-errorsDylan DPC-0/+1
Remove separate indexing of early-bound regions ~Based on https://github.com/rust-lang/rust/pull/99728.~ This PR copies some modifications from https://github.com/rust-lang/rust/pull/97839 around object lifetime defaults. These modifications allow to stop counting generic parameters during lifetime resolution, and rely on the indexing given by `rustc_typeck::collect`.
2022-08-03Compute `object_lifetime_default` per parameter.Camille GILLOT-0/+1
2022-07-26Implement `#[rustc_default_body_unstable]`Maybe Waffle-0/+1
This attribute allows to mark default body of a trait function as unstable. This means that implementing the trait without implementing the function will require enabling unstable feature. This is useful in conjunction with `#[rustc_must_implement_one_of]`, we may want to relax requirements for a trait, for example allowing implementing either of `PartialEq::{eq, ne}`, but do so in a safe way -- making implementation of only `PartialEq::ne` unstable.
2022-07-12Move abstract const to rustc_middle::tykadmin-1/+1
2022-05-24Make Lazy not care about lifetimes until decodeMichael Goulet-0/+119