1
Fork 0

trivial cfg(bootstrap) changes

This commit is contained in:
Pietro Albini 2022-04-05 22:42:23 +02:00
parent e96538aeeb
commit 181d28bb61
No known key found for this signature in database
GPG key ID: 3E06ABE80BAAF19C
42 changed files with 176 additions and 314 deletions

View file

@ -58,7 +58,7 @@ pub struct Allocation<Tag = AllocId, Extra = ()> {
/// means that both the inner type (`Allocation`) and the outer type
/// (`ConstAllocation`) are used quite a bit.
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, HashStable)]
#[cfg_attr(not(bootstrap), rustc_pass_by_value)]
#[rustc_pass_by_value]
pub struct ConstAllocation<'tcx, Tag = AllocId, Extra = ()>(
pub Interned<'tcx, Allocation<Tag, Extra>>,
);