Format all the let chains in compiler
This commit is contained in:
@@ -337,9 +337,7 @@ pub trait Emitter: Translate {
|
||||
&& last_name != name
|
||||
{
|
||||
let descr = macro_kind.descr();
|
||||
format!(
|
||||
" which comes from the expansion of the {descr} `{last_name}`",
|
||||
)
|
||||
format!(" which comes from the expansion of the {descr} `{last_name}`",)
|
||||
} else {
|
||||
"".to_string()
|
||||
};
|
||||
@@ -1935,7 +1933,9 @@ impl EmitterWriter {
|
||||
is_multiline,
|
||||
)
|
||||
}
|
||||
if let DisplaySuggestion::Add = show_code_change && is_item_attribute {
|
||||
if let DisplaySuggestion::Add = show_code_change
|
||||
&& is_item_attribute
|
||||
{
|
||||
// The suggestion adds an entire line of code, ending on a newline, so we'll also
|
||||
// print the *following* line, to provide context of what we're advising people to
|
||||
// do. Otherwise you would only see contextless code that can be confused for
|
||||
|
||||
Reference in New Issue
Block a user