mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2026-05-06 00:54:15 +00:00
Fix assert_never invoking assert_always
This commit is contained in:
@@ -66,7 +66,7 @@ macro_rules! impl_from {
|
||||
/// Shamelessly stolen from: https://www.sqlite.org/assert.html
|
||||
#[macro_export]
|
||||
macro_rules! assert_never {
|
||||
($cond:expr) => { $crate::assert_always!($cond, "") };
|
||||
($cond:expr) => { $crate::assert_never!($cond, "") };
|
||||
($cond:expr, $($fmt:tt)*) => {{
|
||||
let value = $cond;
|
||||
if value {
|
||||
|
||||
Reference in New Issue
Block a user