All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
assert_impl_any!
macroassert_impl_one!
macroassert_trait_sub_all!
macroassert_trait_super_all!
macroREADME.md
assert_eq_size_val!
, const_assert_eq!
, and const_assert_ne!
to export their local inner macros. Not having this prevented them from working when use
d or called directly via static_assertions::macro!(...)
_assert_obj_safe!
from pre-1.0assert_eq_align!
macroconst _
in Rust 1.37assert_impl!
macroassert_fields!
now works for enum
types with multiple variantsconst_assert!
macro to only take one expressionassert!
), having the macro allow for multiple comma-separated expressions may lead to ambiguityType: Trait
syntaxType: field1, field2
syntaxassert_{ne,eq}_type!
to assert_type_{ne,eq}_all!
assert_impl!
to assert_impl_all!
and deprecated assert_impl!
assert_impl_all!
as replacement to assert_impl!
assert_not_impl_all!
and assert_not_impl_any!
macro counterparts to assert_impl_all!
assert_eq_type!
now works with types involving lifetimesconst_assert_ne!
macro counterpart to const_assert_eq!
assert_eq_type!
would pass when types can coerce via Deref
, such as with str
and String
assert_eq_type!
macro that allows for checking whether inputs are the same concrete typeassert_ne_type!
macro for checking whether inputs all refer to different typesconst_assert!
now only takes bool
values whereas integer (or other type) values could previously be passedassert_cfg!()
to last argument position, making it consistent with other macrosmacro!(label; ...)
syntax when compiling on nightly Rust and enabling the nightly
feature flagassert_eq_size_ptr
wraps its code inside of a closure, ensuring that the unsafe code inside never runsunneeded_field_pattern
within assert_fields
mem::transmute
while still utilizing it for size verification (Simon Sapin, #5)assert_cfg
macro that asserts that the given configuration is setassert_fields
macro to assert that a struct type or enum variant has a given fieldassert_impl
assert_impl
macro to ensure a type implements a given set of traitsassert_obj_safe
macro for ensuring that a trait is object-safeassert_eq_size_ptr
macroassert_eq_size
, const_assert
, and const_assert_eq
in non-function contexts via providing a unique label #1assert_eq_size
is no longer allowedconst_assert_eq
macroInitial release