trivial cfg(bootstrap) changes
This commit is contained in:
parent
e96538aeeb
commit
181d28bb61
42 changed files with 176 additions and 314 deletions
|
@ -1,5 +1,4 @@
|
|||
#![feature(nll)]
|
||||
#![cfg_attr(bootstrap, feature(native_link_modifiers))]
|
||||
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
|
||||
|
||||
// NOTE: This crate only exists to allow linking on mingw targets.
|
||||
|
|
|
@ -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>>,
|
||||
);
|
||||
|
|
|
@ -161,7 +161,7 @@ impl<'a> HashStable<StableHashingContext<'a>> for AdtDefData {
|
|||
}
|
||||
|
||||
#[derive(Copy, Clone, PartialEq, Eq, Hash, Ord, PartialOrd, HashStable)]
|
||||
#[cfg_attr(not(bootstrap), rustc_pass_by_value)]
|
||||
#[rustc_pass_by_value]
|
||||
pub struct AdtDef<'tcx>(pub Interned<'tcx, AdtDefData>);
|
||||
|
||||
impl<'tcx> AdtDef<'tcx> {
|
||||
|
|
|
@ -1262,7 +1262,7 @@ impl<'a> fmt::Debug for LayoutS<'a> {
|
|||
}
|
||||
|
||||
#[derive(Copy, Clone, PartialEq, Eq, Hash, HashStable_Generic)]
|
||||
#[cfg_attr(not(bootstrap), rustc_pass_by_value)]
|
||||
#[rustc_pass_by_value]
|
||||
pub struct Layout<'a>(pub Interned<'a, LayoutS<'a>>);
|
||||
|
||||
impl<'a> fmt::Debug for Layout<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue