Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Oct 9, 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 Pull requests that update a dependency file rust Pull requests that update Rust code labels Oct 9, 2021
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Oct 14, 2021

Superseded by #11.

@dependabot dependabot bot closed this Oct 14, 2021
@dependabot dependabot bot deleted the dependabot/cargo/const_format-0.2.21 branch October 14, 2021 08:27
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.

0 participants