Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Bump enumflags2 from 0.6.4 to 0.7.4 #11108

Merged
merged 2 commits into from
Apr 5, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 24, 2022

Bumps enumflags2 from 0.6.4 to 0.7.4.

Release notes

Sourced from enumflags2's releases.

Release 0.7.4

  • Added BitFlags::len, which returns the number of flags set.
  • Added BitFlags::exactly_one, which converts a singleton flag set to the flag. Returns Option::None if the input is not a singleton.
  • The iterator returned by BitFlags::iter now implements ExactSizeIterator and FusedIterator.
  • BitFlags now implements IntoIterator.

Release 0.7.3

  • The code generated by the macro no longer triggers Clippy's use_self lint. To prevent further issues of this kind, Clippy now runs on the test suite in CI, with the pedantic and nursery lints enabled too.
  • Some more functions are marked #[inline] now. This will probably improve downstream performance in non-LTO builds.
  • Some more functions are marked #[must_use] now, at the suggestion of Clippy. If this triggers, your code was probably weird and/or broken, but it's not really a mistake I'd expect anyone to make.
  • Minor documentation improvements.

Release 0.7.2

The iterator returned by BitFlags::iter now implements Clone.

Release 0.7.0

  • Breaking change: instead of #[derive(BitFlags)], the macro is now #[bitflags]
    • This allows a long-awaited feature: when a discriminant isn't provided, the macro will choose an unused bit for you.
  • You can now create instances of BitFlags without repeating the name: make_bitflags!(MyFlags::{Foo, Bar}) instead of MyFlags::Foo | MyFlags::Bar. Works in a const fn, too!
  • Many new APIs that allow working with BitFlags in a const fn despite rustc limitations
  • Many improved error messages
  • Implementation details do not show up in user documentation anymore
  • Breaking change: rename the RawBitFlags trait to BitFlag - there's nothing raw about it
  • Breaking change: the not_literal feature doesn't exist, the relevant functionality is now enabled by default - there is no concern about confusing error messages anymore
  • Breaking change: the #[repr(u??)] attribute is now required - previously, Rust's default of usize was used, which is a terrible idea for the size of a bitfield
  • Breaking change: BitFlags::new is now called from_bits_unchecked - new suggests that this is the main, preferred way of creating BitFlags. This is not the case.
  • the value returned by Default::default can now be customized with #[bitflags(default = Foo | Bar)]
Commits
  • e1c8b64 Add a safety section for RawBitFlags
  • 0c70b0f Avoid a double negative in the safety documentation
  • 4dca6d7 Add SAFETY comments
  • 6efe566 Mark RawBitFlags as unsafe
  • 7d751b3 Remove unnecessary unsafe code
  • 7af4376 We don't need FLAG_LIST anymore
  • b6d8869 Use self.iter() for formatting
  • adca300 The tests also need to be modified...
  • cee5643 Release 0.7.4
  • bc5381e Rename to_flag -> exactly_one
  • 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 A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Mar 24, 2022
Bumps [enumflags2](https://github.com/NieDzejkob/enumflags2) from 0.6.4 to 0.7.4.
- [Release notes](https://github.com/NieDzejkob/enumflags2/releases)
- [Commits](meithecatte/enumflags2@v0.6.4...v0.7.4)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/cargo/enumflags2-0.7.4 branch from 1e485c4 to afd33c5 Compare April 5, 2022 17:05
@bkchr bkchr added the D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit label Apr 5, 2022
@shawntabrizi
Copy link
Member

bot merge

@paritytech-processbot paritytech-processbot bot merged commit d4ca1fd into master Apr 5, 2022
@paritytech-processbot paritytech-processbot bot deleted the dependabot/cargo/enumflags2-0.7.4 branch April 5, 2022 21:14
DaviRain-Su pushed a commit to octopus-network/substrate that referenced this pull request Aug 23, 2022
* Bump enumflags2 from 0.6.4 to 0.7.4

Bumps [enumflags2](https://github.com/NieDzejkob/enumflags2) from 0.6.4 to 0.7.4.
- [Release notes](https://github.com/NieDzejkob/enumflags2/releases)
- [Commits](meithecatte/enumflags2@v0.6.4...v0.7.4)

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

Signed-off-by: dependabot[bot] <[email protected]>

* use `#[bitflags]` attribute macro

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Shawn Tabrizi <[email protected]>
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* Bump enumflags2 from 0.6.4 to 0.7.4

Bumps [enumflags2](https://github.com/NieDzejkob/enumflags2) from 0.6.4 to 0.7.4.
- [Release notes](https://github.com/NieDzejkob/enumflags2/releases)
- [Commits](meithecatte/enumflags2@v0.6.4...v0.7.4)

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

Signed-off-by: dependabot[bot] <[email protected]>

* use `#[bitflags]` attribute macro

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Shawn Tabrizi <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants