Skip to content

Commit 0aedec4

Browse files
committed
Remove unnecessary features from rustc_abi
1 parent 2d73d30 commit 0aedec4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

compiler/rustc_abi/src/layout.rs

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use crate::{
1010
NonZeroUsize, Primitive, ReprOptions, Scalar, Size, StructKind, TagEncoding, TargetDataLayout,
1111
Variants, WrappingRange,
1212
};
13+
1314
pub trait LayoutCalculator {
1415
type TargetDataLayoutRef: Borrow<TargetDataLayout>;
1516

compiler/rustc_abi/src/lib.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
1-
#![cfg_attr(feature = "nightly", feature(step_trait, rustc_attrs, min_specialization))]
1+
#![cfg_attr(feature = "nightly", feature(step_trait))]
22
#![cfg_attr(feature = "nightly", allow(internal_features))]
33

44
use std::fmt;
5-
#[cfg(feature = "nightly")]
6-
use std::iter::Step;
75
use std::num::{NonZeroUsize, ParseIntError};
86
use std::ops::{Add, AddAssign, Mul, RangeInclusive, Sub};
97
use std::str::FromStr;
108

119
use bitflags::bitflags;
10+
use rustc_index::{Idx, IndexSlice, IndexVec};
11+
1212
#[cfg(feature = "nightly")]
1313
use rustc_data_structures::stable_hasher::StableOrd;
14-
use rustc_index::{Idx, IndexSlice, IndexVec};
1514
#[cfg(feature = "nightly")]
1615
use rustc_macros::HashStable_Generic;
1716
#[cfg(feature = "nightly")]
1817
use rustc_macros::{Decodable, Encodable};
18+
#[cfg(feature = "nightly")]
19+
use std::iter::Step;
1920

2021
mod layout;
2122

0 commit comments

Comments
 (0)