Skip to content

Commit 89ecd54

Browse files
committed
Fixing ci issues
1 parent 7c89056 commit 89ecd54

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

compiler/rustc_type_ir/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#![allow(rustc::usage_of_type_ir_inherent)]
66
#![allow(rustc::usage_of_type_ir_traits)]
77
#![cfg_attr(feature = "nightly", allow(internal_features))]
8-
#![cfg_attr(feature = "nightly", feature(associated_type_defaults, rustc_attrs, negative_impls))]
8+
#![cfg_attr(feature = "nightly", feature(associated_type_defaults, negative_impls, rustc_attrs))]
99
// tidy-alphabetical-end
1010

1111
extern crate self as rustc_type_ir;

compiler/rustc_type_ir/src/sty/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use std::fmt;
22

33
use derive_where::derive_where;
4+
#[cfg(feature = "nightly")]
45
use rustc_data_structures::intern::Interned;
56
#[cfg(feature = "nightly")]
67
use rustc_macros::HashStable_NoContext;
@@ -19,7 +20,7 @@ use crate::{
1920
/// Use this rather than `RegionKind`, whenever possible.
2021
#[derive_where(Clone, Copy, PartialEq, Eq, Hash; I: Interner)]
2122
#[cfg_attr(feature = "nightly", derive(HashStable_NoContext))]
22-
#[rustc_pass_by_value]
23+
#[cfg_attr(feature = "nightly", rustc_pass_by_value)]
2324
pub struct Region<I: Interner>(pub I::InternedRegionKind);
2425

2526
// These are only the `inherent` trait methods that have been ported across
@@ -128,6 +129,7 @@ impl<I: Interner> IntoKind for Region<I> {
128129
}
129130
}
130131

132+
#[cfg(feature = "nightly")]
131133
impl<'tcx, T: Copy> IntoKind for Interned<'tcx, T> {
132134
type Kind = T;
133135

0 commit comments

Comments
 (0)