summary refs log tree commit diff
path: root/compiler/rustc_errors
diff options
context:
space:
mode:
authorTakayuki Maeda <takoyaki0316@gmail.com>2022-07-17 04:09:20 +0900
committerTakayuki Maeda <takoyaki0316@gmail.com>2022-07-17 04:09:20 +0900
commitc54d4ada26c6a92346076bcc27d628398345ed9e (patch)
tree4bcd11a6083b09b5ebc410b77898a27f0290466b /compiler/rustc_errors
parent95e77648e466c780a9adce2fa3d3eb5e423dc04e (diff)
downloadrust-c54d4ada26c6a92346076bcc27d628398345ed9e.tar.gz
rust-c54d4ada26c6a92346076bcc27d628398345ed9e.zip
avoid some `Symbol` to `String` conversions
Diffstat (limited to 'compiler/rustc_errors')
-rw-r--r--compiler/rustc_errors/src/diagnostic.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_errors/src/diagnostic.rs b/compiler/rustc_errors/src/diagnostic.rs
index 9429ad1a897..449aaac2c7b 100644
--- a/compiler/rustc_errors/src/diagnostic.rs
+++ b/compiler/rustc_errors/src/diagnostic.rs
@@ -496,7 +496,7 @@ impl Diagnostic {
         self
     }
 
-    pub fn note_trait_signature(&mut self, name: String, signature: String) -> &mut Self {
+    pub fn note_trait_signature(&mut self, name: Symbol, signature: String) -> &mut Self {
         self.highlighted_note(vec![
             (format!("`{}` from trait: `", name), Style::NoStyle),
             (signature, Style::Highlight),