mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Cleanup error variants in MIR code slightly
This commit is contained in:
parent
8a5829cf28
commit
5860763f18
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