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

Update more-asserts requirement from 0.2.1 to 0.3.0 #1384

Merged
merged 1 commit into from
Jun 10, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 3, 2022

Updates the requirements on more-asserts to permit the latest version.

Release notes

Sourced from more-asserts's releases.

v0.3.0

Version 0.3.0

Improvements

The internals of this crate have been rewritten and modernized to avoid a few problems in the previous implementation. Please file bugs if you notice issues.

  • The macros now properly reference things using $crate::, so that they may be called as more_asserts::some_macro! without first pulling them into scope with use.

  • The documentation has been overhauled. Rather than suggesting #[macro_use] extern crate more_asserts;, we now suggest a pattern of importing with use more_asserts as ma; and invoking as ma::assert_gt! and similar.

    Of course, pulling the macros in via #[macro_use] extern crate more_asserts; will still work.

  • The macros now are implemented by calling outlined #[track_caller] functions to perform formatting and invoke the panic rather than directly panicking inside the macro body.

    This reduces the amount of code bloat produced by calls to the macros, and can improve the success-path performance of code which uses the macros (generally by allowing the compiler to inline functions that it would otherwise consider too large).

    In pathological cases, it may improve compile time as well.

Breaking changes

Due to the use of #[track_caller], this release increases the MSRV (the required version of the Rust compiler) to 1.46.0. This is the only breaking change.

1.46.0 is several years old now (even Debian stable has it), so hopefully[^1] this is fine.

[^1]: If it is not, let me know (file an issue), and I can consider doing compiler version detection in a build script, but I would rather not do this.

Commits
  • a1e66e5 Prep release v0.3.0
  • f694839 Switch to an outlined #[track_caller]-based impl
  • a99c688 Don't document MSRV (at least, not until I've made up my mind about it)
  • 0b8b9a2 Update testing and CI
  • d192e14 Rewrite implementation to be less archaic
  • See full diff in compare view

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)

Updates the requirements on [more-asserts](https://github.com/thomcc/rust-more-asserts) to permit the latest version.
- [Release notes](https://github.com/thomcc/rust-more-asserts/releases)
- [Commits](thomcc/rust-more-asserts@v0.2.2...v0.3.0)

---
updated-dependencies:
- dependency-name: more-asserts
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies rust Pull requests that update Rust code labels Jun 3, 2022
@fulmicoton fulmicoton enabled auto-merge (squash) June 7, 2022 02:11
@fulmicoton fulmicoton disabled auto-merge June 10, 2022 01:38
@fulmicoton fulmicoton merged commit fc24842 into main Jun 10, 2022
@fulmicoton fulmicoton deleted the dependabot/cargo/more-asserts-0.3.0 branch June 10, 2022 01:38
This was referenced Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant