diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-20 17:12:17 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-12-23 13:23:28 +1100 |
| commit | 101bc225d88191fd8bb415d3351ef7b2fd5054b0 (patch) | |
| tree | 1f238dda6d8a64ba6404272ca6038f34627fb21b | |
| parent | b29b02ca5be3eb9c84d389fcc74a45fd00e64b6a (diff) | |
| download | rust-101bc225d88191fd8bb415d3351ef7b2fd5054b0.tar.gz rust-101bc225d88191fd8bb415d3351ef7b2fd5054b0.zip | |
Improve some names.
Lots of vectors of messages called `message` or `msg`. This commit pluralizes them. Note that `emit_message_default` and `emit_messages_default` both already existed, and both process a vector, so I renamed the former `emit_messages_default_inner` because it's called by the latter.
| -rw-r--r-- | src/parse/session.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/session.rs b/src/parse/session.rs index e8f7b422ada..8303c03e1eb 100644 --- a/src/parse/session.rs +++ b/src/parse/session.rs @@ -370,7 +370,7 @@ mod tests { fn build_diagnostic(level: DiagnosticLevel, span: Option<MultiSpan>) -> Diagnostic { let mut diag = Diagnostic::new(level, ""); - diag.message.clear(); + diag.messages.clear(); if let Some(span) = span { diag.span = span; } |
