mirror of
https://github.com/openharmony/third_party_rust_memoffset.git
synced 2026-07-18 12:25:36 -04:00
remove redundant namespacing from some features
This commit is contained in:
@@ -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
@@ -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
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user