add #[rustc_pass_by_value] to more types

This commit is contained in:
lcnr
2022-03-08 15:39:52 +01:00
parent 67b3e81838
commit b8135fd5c8
27 changed files with 165 additions and 152 deletions

View File

@@ -13,6 +13,7 @@ use std::fmt;
/// the code base.
#[derive(Copy, Clone, PartialEq, Eq, Hash, Debug)]
#[derive(Encodable, Decodable)]
#[rustc_pass_by_value]
pub struct HirId {
pub owner: LocalDefId,
pub local_id: ItemLocalId,