Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use unsafe_op_in_unsafe_fn #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#![warn(missing_docs)]
#![warn(rustdoc::missing_doc_code_examples)]
#![warn(nonstandard_style)]
#![warn(rust_2018_idioms)]
#![warn(rustdoc::missing_doc_code_examples)]
#![warn(single_use_lifetimes)]
#![warn(unsafe_op_in_unsafe_fn)]
#![warn(unused_crate_dependencies)]
#![warn(unused)]

//! Allocate heap memory with user-specified alignment.

Expand Down Expand Up @@ -189,7 +194,6 @@ impl<T> AlignedBox<[T]> {
// # SAFETY
// The initializer function has to initialize the value behind the pointer without
// reading or dropping the old uninitialized value, e.g., using std::ptr::write.
#[allow(unused_unsafe)] // https://github.com/rust-lang/rfcs/pull/2585
unsafe fn new_slice(
alignment: usize,
nelems: usize,
Expand Down Expand Up @@ -232,7 +236,6 @@ impl<T> AlignedBox<[T]> {
// # SAFETY
// The initializer function has to initialize the value behind the pointer without
// reading or dropping the old uninitialized value, e.g., using std::ptr::write.
#[allow(unused_unsafe)] // https://github.com/rust-lang/rfcs/pull/2585
unsafe fn realloc(
&mut self,
nelems: usize,
Expand Down