feat: pass_by_value lint attribute
Useful for thin wrapper attributes that are best passed as value instead of reference.
This commit is contained in:
parent
66f64a441a
commit
4c3e330a8c
12 changed files with 165 additions and 56 deletions
|
@ -462,6 +462,7 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for TyS<'tcx> {
|
|||
}
|
||||
|
||||
#[rustc_diagnostic_item = "Ty"]
|
||||
#[cfg_attr(not(bootstrap), rustc_pass_by_value)]
|
||||
pub type Ty<'tcx> = &'tcx TyS<'tcx>;
|
||||
|
||||
impl ty::EarlyBoundRegion {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue