aboutsummaryrefslogtreecommitdiff
path: root/patches/std.diff
diff options
context:
space:
mode:
Diffstat (limited to 'patches/std.diff')
-rw-r--r--patches/std.diff16
1 files changed, 8 insertions, 8 deletions
diff --git a/patches/std.diff b/patches/std.diff
index a34fe97..69d5b01 100644
--- a/patches/std.diff
+++ b/patches/std.diff
@@ -1,14 +1,14 @@
diff --git a/src/lib.rs b/src/lib.rs
-index 935e432..7e87795 100644
+index d28fd87..35eabca 100644
--- a/src/lib.rs
+++ b/src/lib.rs
-@@ -275,7 +275,8 @@
- //!
- //! Users should generally avoid defining a flag with a value of zero.
+@@ -420,7 +420,8 @@
+ //! For details on exactly what's generated for it, see the [`Field0`](example_generated/struct.Field0.html)
+ //! example docs.
--#![cfg_attr(not(test), no_std)]
+-#![cfg_attr(not(any(feature = "std", test)), no_std)]
+// ANDROID: Use std to allow building as a dylib.
-+#![cfg_attr(not(any(test, android_dylib)), no_std)]
- #![doc(html_root_url = "https://docs.rs/bitflags/1.3.2")]
++#![cfg_attr(not(any(feature = "std", test, android_dylib)), no_std)]
+ #![cfg_attr(not(test), forbid(unsafe_code))]
- #[doc(hidden)]
+ #![doc(html_root_url = "https://docs.rs/bitflags/2.2.1")]