Assume that u128 is available
diff --git a/build.rs b/build.rs
index 187255f..771ca43 100644
--- a/build.rs
+++ b/build.rs
@@ -1,9 +1,5 @@
// rustc-cfg emitted by the build script:
//
-// "u128"
-// Include u128 and i128 constructors for proc_macro2::Literal. Enabled on
-// any compiler 1.26+.
-//
// "use_proc_macro"
// Link to extern crate proc_macro. Available on any compiler and any target
// except wasm32. Requires "proc-macro" Cargo cfg to be enabled (default is
@@ -53,10 +49,6 @@
None => return,
};
- if version.minor >= 26 {
- println!("cargo:rustc-cfg=u128");
- }
-
let semver_exempt = cfg!(procmacro2_semver_exempt);
if semver_exempt {
// https://github.com/alexcrichton/proc-macro2/issues/147
diff --git a/src/fallback.rs b/src/fallback.rs
index f40a874..4859dd3 100644
--- a/src/fallback.rs
+++ b/src/fallback.rs
@@ -681,40 +681,32 @@
u16_suffixed => u16,
u32_suffixed => u32,
u64_suffixed => u64,
+ u128_suffixed => u128,
usize_suffixed => usize,
i8_suffixed => i8,
i16_suffixed => i16,
i32_suffixed => i32,
i64_suffixed => i64,
+ i128_suffixed => i128,
isize_suffixed => isize,
f32_suffixed => f32,
f64_suffixed => f64,
}
- #[cfg(u128)]
- suffixed_numbers! {
- u128_suffixed => u128,
- i128_suffixed => i128,
- }
-
unsuffixed_numbers! {
u8_unsuffixed => u8,
u16_unsuffixed => u16,
u32_unsuffixed => u32,
u64_unsuffixed => u64,
+ u128_unsuffixed => u128,
usize_unsuffixed => usize,
i8_unsuffixed => i8,
i16_unsuffixed => i16,
i32_unsuffixed => i32,
i64_unsuffixed => i64,
- isize_unsuffixed => isize,
- }
-
- #[cfg(u128)]
- unsuffixed_numbers! {
- u128_unsuffixed => u128,
i128_unsuffixed => i128,
+ isize_unsuffixed => isize,
}
pub fn f32_unsuffixed(f: f32) -> Literal {
diff --git a/src/lib.rs b/src/lib.rs
index 24a4001..9c44ea7 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1016,18 +1016,14 @@
u16_suffixed => u16,
u32_suffixed => u32,
u64_suffixed => u64,
+ u128_suffixed => u128,
usize_suffixed => usize,
i8_suffixed => i8,
i16_suffixed => i16,
i32_suffixed => i32,
i64_suffixed => i64,
- isize_suffixed => isize,
- }
-
- #[cfg(u128)]
- suffixed_int_literals! {
- u128_suffixed => u128,
i128_suffixed => i128,
+ isize_suffixed => isize,
}
unsuffixed_int_literals! {
@@ -1035,18 +1031,14 @@
u16_unsuffixed => u16,
u32_unsuffixed => u32,
u64_unsuffixed => u64,
+ u128_unsuffixed => u128,
usize_unsuffixed => usize,
i8_unsuffixed => i8,
i16_unsuffixed => i16,
i32_unsuffixed => i32,
i64_unsuffixed => i64,
- isize_unsuffixed => isize,
- }
-
- #[cfg(u128)]
- unsuffixed_int_literals! {
- u128_unsuffixed => u128,
i128_unsuffixed => i128,
+ isize_unsuffixed => isize,
}
/// Creates a new unsuffixed floating-point literal.
diff --git a/src/wrapper.rs b/src/wrapper.rs
index 994ed24..695fef1 100644
--- a/src/wrapper.rs
+++ b/src/wrapper.rs
@@ -804,40 +804,32 @@
u16_suffixed => u16,
u32_suffixed => u32,
u64_suffixed => u64,
+ u128_suffixed => u128,
usize_suffixed => usize,
i8_suffixed => i8,
i16_suffixed => i16,
i32_suffixed => i32,
i64_suffixed => i64,
+ i128_suffixed => i128,
isize_suffixed => isize,
f32_suffixed => f32,
f64_suffixed => f64,
}
- #[cfg(u128)]
- suffixed_numbers! {
- i128_suffixed => i128,
- u128_suffixed => u128,
- }
-
unsuffixed_integers! {
u8_unsuffixed => u8,
u16_unsuffixed => u16,
u32_unsuffixed => u32,
u64_unsuffixed => u64,
+ u128_unsuffixed => u128,
usize_unsuffixed => usize,
i8_unsuffixed => i8,
i16_unsuffixed => i16,
i32_unsuffixed => i32,
i64_unsuffixed => i64,
- isize_unsuffixed => isize,
- }
-
- #[cfg(u128)]
- unsuffixed_integers! {
i128_unsuffixed => i128,
- u128_unsuffixed => u128,
+ isize_unsuffixed => isize,
}
pub fn f32_unsuffixed(f: f32) -> Literal {