Skip to content

Commit

Permalink
cfg from_raw_parts to "nightly"
Browse files Browse the repository at this point in the history
  • Loading branch information
mental32 committed Dec 28, 2020
1 parent 323220a commit a461975
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/structures/gdt.rs
Expand Up @@ -112,6 +112,7 @@ impl GlobalDescriptorTable {
/// * The user must make sure that the entries are well formed
/// * The provided slice **must not be larger than 8 items** (only up to the first 8 will be observed.)
#[inline]
#[cfg(feature = "nightly")]
pub const unsafe fn from_raw_parts(slice: &[u64]) -> GlobalDescriptorTable {
assert!(
slice.len() <= 8,
Expand Down

0 comments on commit a461975

Please sign in to comment.