-
Notifications
You must be signed in to change notification settings - Fork 162
Comparing changes
Open a pull request
base repository: bitflags/bitflags
base: 2.9.1
head repository: bitflags/bitflags
compare: 2.9.3
- 17 commits
- 13 files changed
- 3 contributors
Commits on May 17, 2025
-
Configuration menu - View commit details
-
Copy full SHA for db98bb0 - Browse repository at this point
Copy the full SHA db98bb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d539c1 - Browse repository at this point
Copy the full SHA 1d539c1View commit details -
Merge pull request #446 from bitflags/KodrAus-patch-1
Fix difference in the spec
Configuration menu - View commit details
-
Copy full SHA for 80684fd - Browse repository at this point
Copy the full SHA 80684fdView commit details
Commits on Jul 27, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 15519b0 - Browse repository at this point
Copy the full SHA 15519b0View commit details -
Merge pull request #453 from bitflags/fix/match-docs
Fix up inaccurate docs on bitflags_match
Configuration menu - View commit details
-
Copy full SHA for 2b786c9 - Browse repository at this point
Copy the full SHA 2b786c9View commit details
Commits on Aug 11, 2025
-
Configuration menu - View commit details
-
Copy full SHA for fe4c49d - Browse repository at this point
Copy the full SHA fe4c49dView commit details -
Configuration menu - View commit details
-
Copy full SHA for c8e2354 - Browse repository at this point
Copy the full SHA c8e2354View commit details
Commits on Aug 15, 2025
-
Configuration menu - View commit details
-
Copy full SHA for ef247c5 - Browse repository at this point
Copy the full SHA ef247c5View commit details
Commits on Aug 16, 2025
-
Merge pull request #454 from KodrAus/fix/rustc-dep-of-std
Remove rustc internal crate feature
Configuration menu - View commit details
-
Copy full SHA for f1beb28 - Browse repository at this point
Copy the full SHA f1beb28View commit details -
Configuration menu - View commit details
-
Copy full SHA for 82a365f - Browse repository at this point
Copy the full SHA 82a365fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d185ca5 - Browse repository at this point
Copy the full SHA d185ca5View commit details -
Merge pull request #456 from KodrAus/cargo/2.9.2
Prepare for 2.9.2 release
Configuration menu - View commit details
-
Copy full SHA for 85b5e60 - Browse repository at this point
Copy the full SHA 85b5e60View commit details
Commits on Aug 20, 2025
-
Avoid local variables in generated code.
The generated code for various operations has local variables: ``` pub const fn union(self, other: Self) -> Self { let f = self; let other = other; { Self::from_bits_retain(f.bits() | other.bits()) } } ``` These are present due to the way the relevant macros are structured. This commit restructures the `__impl_bitflags` macro to avoid these indirections, resulting in this code instead: ``` pub const fn union(self, other: Self) -> Self { Self(self.0 | other.0) } ``` Benefits: - `cargo expand` output is nicer. - It is a little faster to compile. - `__impl_bitflags!` becomes simpler, with many fewer parameters. E.g. `$self` instead of `$union0`, `$intersect0`, etc. - The `__impl_bitflags!` call sites are also a little nicer, using `&self` instead of `f`.Configuration menu - View commit details
-
Copy full SHA for aead794 - Browse repository at this point
Copy the full SHA aead794View commit details -
Avoid calling
InternalBitFlags::{bits,from_bits_retain}.It's simpler to just use `Self()` and `.0`. Here's an example of how that changes the output for one method: ``` pub const fn union(self, other: Self) -> Self { - Self::from_bits_retain(self.bits() | other.bits()) + Self(self.0 | other.0) } ``` As well as being simpler, this change makes the code a tiny bit faster to compile, and results in much better code quality (no function calls) in dev builds.Configuration menu - View commit details
-
Copy full SHA for a3f1f78 - Browse repository at this point
Copy the full SHA a3f1f78View commit details
Commits on Aug 22, 2025
-
Merge pull request #458 from nnethercote/streamline-generated-code
Streamline generated code
Configuration menu - View commit details
-
Copy full SHA for 9e1cf3e - Browse repository at this point
Copy the full SHA 9e1cf3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2c3a4f4 - Browse repository at this point
Copy the full SHA 2c3a4f4View commit details -
Merge pull request #459 from KodrAus/cargo/2.9.3
Prepare for 2.9.3 release
Configuration menu - View commit details
-
Copy full SHA for f59ad49 - Browse repository at this point
Copy the full SHA f59ad49View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 2.9.1...2.9.3