mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-27 12:25:05 +00:00
Fix assert_never invoking assert_always
This commit is contained in:
parent
f51457a643
commit
e23bfafb32
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ macro_rules! impl_from {
|
||||||
/// Shamelessly stolen from: https://www.sqlite.org/assert.html
|
/// Shamelessly stolen from: https://www.sqlite.org/assert.html
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! assert_never {
|
macro_rules! assert_never {
|
||||||
($cond:expr) => { $crate::assert_always!($cond, "") };
|
($cond:expr) => { $crate::assert_never!($cond, "") };
|
||||||
($cond:expr, $($fmt:tt)*) => {{
|
($cond:expr, $($fmt:tt)*) => {{
|
||||||
let value = $cond;
|
let value = $cond;
|
||||||
if value {
|
if value {
|
||||||
|
|
Loading…
Reference in a new issue