mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Auto merge of #16447 - Veykril:mir-errors, r=Veykril
intenral: Cleanup error variants in MIR code a bit
This commit is contained in:
commit
11b401d0b4
17 changed files with 598 additions and 434 deletions
|
@ -302,13 +302,13 @@ impl flags::AnalysisStats {
|
|||
let mut fail = 0;
|
||||
for &c in consts {
|
||||
all += 1;
|
||||
let Err(e) = c.render_eval(db) else {
|
||||
let Err(error) = c.render_eval(db) else {
|
||||
continue;
|
||||
};
|
||||
if verbosity.is_spammy() {
|
||||
let full_name =
|
||||
full_name_of_item(db, c.module(db), c.name(db).unwrap_or(Name::missing()));
|
||||
println!("Const eval for {full_name} failed due {e:?}");
|
||||
println!("Const eval for {full_name} failed due {error:?}");
|
||||
}
|
||||
fail += 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue