Add replace_args
method for rustc_errors::diagnostic::Diagnostic
This commit is contained in:
parent
b4820a3b94
commit
3b949eb7c1
2 changed files with 5 additions and 3 deletions
|
@ -940,6 +940,10 @@ impl Diagnostic {
|
|||
self
|
||||
}
|
||||
|
||||
pub fn replace_args(&mut self, args: FxHashMap<DiagnosticArgName<'static>, DiagnosticArgValue<'static>>) {
|
||||
self.args = args;
|
||||
}
|
||||
|
||||
pub fn styled_message(&self) -> &[(DiagnosticMessage, Style)] {
|
||||
&self.message
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue