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

chore: bump const_format from 0.2.20 to 0.2.21 #20058

Merged
merged 1 commit into from
Sep 21, 2021

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 21, 2021

Bumps const_format from 0.2.20 to 0.2.21.

Release notes

Sourced from const_format's releases.

0.2.21 release

This release improves the assertion failure message for all the assertc* macros.

Example

Code:

#![feature(const_mut_refs)]
use const_format::{StrWriter, assertc_ne, writec};
use const_format::utils::str_eq;
macro_rules! check_valid_pizza{
($user:expr, $topping:expr) => {
assertc_ne!(
$topping,
"pineapple",
"You can't put pineapple on pizza, {}",
$user,
);
}
}
check_valid_pizza!("John", "salami");
check_valid_pizza!("Dave", "sausage");
check_valid_pizza!("Bob", "pineapple");

Error message before:

error: any use of this value will cause an error
  --> src/lib.rs:140:1
   |
22 | check_valid_pizza!("Bob", "pineapple");
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ exceeded interpreter step limit (see `#[const_eval_limit]`)
   |
   = note: `#[deny(const_err)]` on by default
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0080]: could not evaluate constant --> /const_format/src/panicking.rs:32:5 | 32 | . | ^ the evaluated program panicked at '

module_path: rust_out line: 22

assertion failed: LEFT != RIGHT

</tr></table>

... (truncated)

Changelog

Sourced from const_format's changelog.

0.2.21

Rewrote assertion macros to:

  • Have more concise error messages
  • Point to all their arguments when the assertion fails
  • Resemble std error messages more

0.2.19

Added char support to all formatting macros.

Added char, &[char], and Option<char> impls of FormatMarker trait, with debug formatting methods.

Added Formatter::{write_char, write_char_debug} methods.

Added StrWriterMut::{as_str_alt, write_char, write_char_debug} methods.

Added StrWriter::{as_str_alt, unsize} methods.

Deprecated strwriter_as_str macro, superceded by StrWriter::as_str_alt.

Bumped the minimum required nightly version to 2021-07-05 due to use of const-stabilized core::str::from_utf8_unchecked.

0.2.18

Fixed potential soundness bug where unions used to do pointer casts were not #[repr(C)]

0.2.16

Added these macros that act like str methods:

  • str_get
  • str_index
  • str_repeat
  • str_replace
  • str_splice

Added the SplicedStr struct.

0.2.15

Added map_ascii_case macro to convert the casing style of a &'static str.

Added the Case enum.

Fixed "constant_time_as_str" crate feature in newer nightlies, this will break code that uses the feature and hasn't updated the nightly compiler to a release post mid-july 2021.

0.2.14

... (truncated)

Commits

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)

Bumps [const_format](https://github.com/rodrimati1992/const_format_crates) from 0.2.20 to 0.2.21.
- [Release notes](https://github.com/rodrimati1992/const_format_crates/releases)
- [Changelog](https://github.com/rodrimati1992/const_format_crates/blob/master/Changelog.md)
- [Commits](https://github.com/rodrimati1992/const_format_crates/commits/0.2.21)

---
updated-dependencies:
- dependency-name: const_format
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies rust Pull requests that update Rust code labels Sep 21, 2021
@codecov
Copy link

codecov bot commented Sep 21, 2021

Codecov Report

Merging #20058 (87a309c) into master (4675fa6) will increase coverage by 0.1%.
The diff coverage is 84.1%.

@@            Coverage Diff            @@
##           master   #20058     +/-   ##
=========================================
+ Coverage    82.6%    82.8%   +0.1%     
=========================================
  Files         478      487      +9     
  Lines      133547   134895   +1348     
=========================================
+ Hits       110369   111714   +1345     
- Misses      23178    23181      +3     

@CriesofCarrots CriesofCarrots merged commit 1daebeb into master Sep 21, 2021
@dependabot dependabot bot deleted the dependabot/cargo/const_format-0.2.21 branch September 21, 2021 21:21
dankelleher pushed a commit to identity-com/solana that referenced this pull request Nov 24, 2021
Bumps [const_format](https://github.com/rodrimati1992/const_format_crates) from 0.2.20 to 0.2.21.
- [Release notes](https://github.com/rodrimati1992/const_format_crates/releases)
- [Changelog](https://github.com/rodrimati1992/const_format_crates/blob/master/Changelog.md)
- [Commits](https://github.com/rodrimati1992/const_format_crates/commits/0.2.21)

---
updated-dependencies:
- dependency-name: const_format
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
frits-metalogix added a commit to identity-com/solana that referenced this pull request Nov 24, 2021
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