Skip to content

Commit

Permalink
test using global paths
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Nov 28, 2024
1 parent f3b5b4c commit 1d7caa7
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ macro_rules! prelude {
mod prelude {
// Exports from `core`
#[allow(unused_imports)]
pub(crate) use core::clone::Clone;
pub(crate) use ::core::clone::Clone;
#[allow(unused_imports)]
pub(crate) use core::marker::{Copy, Send, Sync};
pub(crate) use ::core::marker::{Copy, Send, Sync};
#[allow(unused_imports)]
pub(crate) use core::option::Option;
pub(crate) use ::core::option::Option;
#[allow(unused_imports)]
pub(crate) use core::{fmt, hash, iter, mem};
pub(crate) use ::core::{fmt, hash, iter, mem};

// Commonly used types defined in this crate
#[allow(unused_imports)]
Expand Down Expand Up @@ -110,9 +110,9 @@ macro_rules! s {
#[repr(C)]
#[cfg_attr(
feature = "extra_traits",
core::prelude::v1::derive(Debug, Eq, Hash, PartialEq)
::core::prelude::v1::derive(Debug, Eq, Hash, PartialEq)
)]
#[core::prelude::v1::derive(core::clone::Clone, core::marker::Copy)]
#[::core::prelude::v1::derive(::core::clone::Clone, ::core::marker::Copy)]
#[allow(deprecated)]
$(#[$attr])*
pub struct $i { $($field)* }
Expand All @@ -132,9 +132,9 @@ macro_rules! s_paren {
__item! {
#[cfg_attr(
feature = "extra_traits",
core::prelude::v1::derive(Debug, Eq, Hash, PartialEq)
::core::prelude::v1::derive(Debug, Eq, Hash, PartialEq)
)]
#[core::prelude::v1::derive(core::clone::Clone, core::marker::Copy)]
#[::core::prelude::v1::derive(::core::clone::Clone, ::core::marker::Copy)]
$(#[$attr])*
pub struct $i ( $($field)* );
}
Expand All @@ -155,7 +155,7 @@ macro_rules! s_no_extra_traits {
(it: $(#[$attr:meta])* pub union $i:ident { $($field:tt)* }) => (
__item! {
#[repr(C)]
#[core::prelude::v1::derive(core::clone::Clone, core::marker::Copy)]
#[::core::prelude::v1::derive(::core::clone::Clone, ::core::marker::Copy)]
$(#[$attr])*
pub union $i { $($field)* }
}
Expand All @@ -164,7 +164,7 @@ macro_rules! s_no_extra_traits {
(it: $(#[$attr:meta])* pub struct $i:ident { $($field:tt)* }) => (
__item! {
#[repr(C)]
#[core::prelude::v1::derive(core::clone::Clone, core::marker::Copy)]
#[::core::prelude::v1::derive(::core::clone::Clone, ::core::marker::Copy)]
$(#[$attr])*
pub struct $i { $($field)* }
}
Expand Down Expand Up @@ -194,9 +194,9 @@ macro_rules! e {
__item! {
#[cfg_attr(
feature = "extra_traits",
core::prelude::v1::derive(Debug, Eq, Hash, PartialEq)
::core::prelude::v1::derive(Debug, Eq, Hash, PartialEq)
)]
#[core::prelude::v1::derive(core::clone::Clone, core::marker::Copy)]
#[::core::prelude::v1::derive(::core::clone::Clone, ::core::marker::Copy)]
$(#[$attr])*
pub enum $i { $($field)* }
}
Expand Down

0 comments on commit 1d7caa7

Please sign in to comment.