Skip to content

Commit

Permalink
Merge pull request #1494 from dtolnay/primitive
Browse files Browse the repository at this point in the history
Switch to using primitives in macro-generated code through std::primitive
  • Loading branch information
dtolnay authored Aug 17, 2023
2 parents 020fe20 + 47dc5d0 commit 24d6ef4
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ pub use std::fmt::{self, Debug, Formatter};
pub use std::hash::{Hash, Hasher};
pub use std::marker::Copy;
pub use std::option::Option::{None, Some};
pub use std::primitive::{bool, str};
pub use std::result::Result::{Err, Ok};
pub use std::stringify;

Expand Down Expand Up @@ -34,14 +35,4 @@ pub use proc_macro::TokenStream;
#[cfg(feature = "printing")]
pub use quote::{ToTokens, TokenStreamExt};

#[allow(non_camel_case_types)]
pub type bool = help::Bool;
#[allow(non_camel_case_types)]
pub type str = help::Str;

mod help {
pub type Bool = bool;
pub type Str = str;
}

pub struct private(pub(crate) ());

0 comments on commit 24d6ef4

Please sign in to comment.