Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump bitflags from 2.2.1 to 2.3.3 #994

Merged
merged 1 commit into from
Jul 18, 2023
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 1, 2023

Bumps bitflags from 2.2.1 to 2.3.3.

Release notes

Sourced from bitflags's releases.

2.3.3

Changes to -=

The -= operator was incorrectly changed to truncate bits that didn't correspond to valid flags in 2.3.0. This has been fixed up so it once again behaves the same as - and difference.

Changes to !

The ! operator previously called Self::from_bits_truncate, which would truncate any bits that only partially overlapped with a valid flag. It will now use bits & Self::all().bits(), so any bits that overlap any bits specified by any flag will be respected. This is unlikely to have any practical implications, but enables defining a flag like const ALL = !0 as a way to signal that any bit pattern is a known set of flags.

Changes to formatting

Zero-valued flags will never be printed. You'll either get 0x0 for empty flags using debug formatting, or the set of flags with zero-valued flags omitted for others.

Composite flags will no longer be redundantly printed if there are extra bits to print at the end that don't correspond to a valid flag.

What's Changed

Full Changelog: bitflags/bitflags@2.3.2...2.3.3

2.3.2

What's Changed

New Contributors

Full Changelog: bitflags/bitflags@2.3.1...2.3.2

2.3.1

What's Changed

Full Changelog: bitflags/bitflags@2.3.0...2.3.1

2.3.0

Major changes

BitFlags trait deprecated in favor of Flags trait

This release introduces the Flags trait and deprecates the BitFlags trait. These two traits are semver compatible so if you have public API code depending on BitFlags you can move to Flags without breaking end-users. This is possible because the BitFlags trait was never publicly implementable, so it now carries Flags as a supertrait. All implementations of Flags additionally implement BitFlags.

... (truncated)

Changelog

Sourced from bitflags's changelog.

2.3.3

Changes to -=

The -= operator was incorrectly changed to truncate bits that didn't correspond to valid flags in 2.3.0. This has been fixed up so it once again behaves the same as - and difference.

Changes to !

The ! operator previously called Self::from_bits_truncate, which would truncate any bits that only partially overlapped with a valid flag. It will now use bits & Self::all().bits(), so any bits that overlap any bits specified by any flag will be respected. This is unlikely to have any practical implications, but enables defining a flag like const ALL = !0 as a way to signal that any bit pattern is a known set of flags.

Changes to formatting

Zero-valued flags will never be printed. You'll either get 0x0 for empty flags using debug formatting, or the set of flags with zero-valued flags omitted for others.

Composite flags will no longer be redundantly printed if there are extra bits to print at the end that don't correspond to a valid flag.

What's Changed

Full Changelog: bitflags/bitflags@2.3.2...2.3.3

2.3.2

What's Changed

New Contributors

Full Changelog: bitflags/bitflags@2.3.1...2.3.2

2.3.1

What's Changed

Full Changelog: bitflags/bitflags@2.3.0...2.3.1

2.3.0

What's Changed

Full Changelog: bitflags/bitflags@2.2.1...2.3.0

Commits
  • 6ed2e8d Merge pull request #367 from KodrAus/cargo/2.3.3
  • 290961e prepare for 2.3.3 release
  • 3ac85e2 Merge pull request #366 from KodrAus/feat/test-cleanups
  • 64b7c98 include tests for hex, binary, and octal
  • b344782 remove unneeded condition
  • 8f5f7cc fill in tests for intersection and union
  • 481e13f fill in tests for insert remove and toggle
  • 4b71f86 only yield flags if they include as-yet unyielded bits
  • 330a028 fill in some more tests
  • b933056 fill in tests for from_* methods
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Jul 1, 2023
@dependabot dependabot bot force-pushed the dependabot/cargo/bitflags-2.3.3 branch from d097a5e to 02a4726 Compare July 18, 2023 08:31
@flxo
Copy link
Member

flxo commented Jul 18, 2023

@dependabot rebase

Bumps [bitflags](https://github.com/bitflags/bitflags) from 2.2.1 to 2.3.3.
- [Release notes](https://github.com/bitflags/bitflags/releases)
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md)
- [Commits](bitflags/bitflags@2.2.1...2.3.3)

---
updated-dependencies:
- dependency-name: bitflags
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/cargo/bitflags-2.3.3 branch from 02a4726 to 4ae3408 Compare July 18, 2023 08:32
@flxo
Copy link
Member

flxo commented Jul 18, 2023

@dependabot squash and merge

@dependabot dependabot bot merged commit 9cc4725 into main Jul 18, 2023
@dependabot dependabot bot deleted the dependabot/cargo/bitflags-2.3.3 branch July 18, 2023 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant