mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 13:06:28 +03:00
d43b667377
Improve error message for assert!() macro in functions returning bool Detect `assert!()` macro in error messages and provide clearer diagnostics When `assert!()` is used in a function returning a value, show a message explaining that `assert!()` doesn't return a value, instead of the generic "if may be missing an else clause" error. Fixes rust-lang/rust#151446