remove redundant namespacing from some features

This commit is contained in:
Ralf Jung
2019-11-17 20:45:27 +01:00
parent 3708978129
commit f8fbd6d073
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -9,10 +9,10 @@ fn main() {
// Check for a minimum version
if version >= Version::from((1, 36, 0)) {
println!("cargo:rustc-cfg=memoffset_maybe_uninit");
println!("cargo:rustc-cfg=maybe_uninit");
}
if version >= Version::from((1, 40, 0)) {
println!("cargo:rustc-cfg=memoffset_doctests");
println!("cargo:rustc-cfg=doctests");
}
}
+2 -2
View File
@@ -59,10 +59,10 @@
#![no_std]
#[macro_use]
#[cfg(memoffset_doctests)]
#[cfg(doctests)]
#[cfg(doctest)]
extern crate doc_comment;
#[cfg(memoffset_doctests)]
#[cfg(doctests)]
#[cfg(doctest)]
doctest!("../README.md");
+2 -2
View File
@@ -20,7 +20,7 @@
/// Macro to create a local `base_ptr` raw pointer of the given type, avoiding UB as
/// much as is possible currently.
#[cfg(memoffset_maybe_uninit)]
#[cfg(maybe_uninit)]
#[macro_export]
#[doc(hidden)]
macro_rules! _memoffset__let_base_ptr {
@@ -34,7 +34,7 @@ macro_rules! _memoffset__let_base_ptr {
let $name = uninit.as_ptr();
};
}
#[cfg(not(memoffset_maybe_uninit))]
#[cfg(not(maybe_uninit))]
#[macro_export]
#[doc(hidden)]
macro_rules! _memoffset__let_base_ptr {