diff options
| author | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-07-17 04:09:20 +0900 |
|---|---|---|
| committer | Takayuki Maeda <takoyaki0316@gmail.com> | 2022-07-17 04:09:20 +0900 |
| commit | c54d4ada26c6a92346076bcc27d628398345ed9e (patch) | |
| tree | 4bcd11a6083b09b5ebc410b77898a27f0290466b /compiler/rustc_errors | |
| parent | 95e77648e466c780a9adce2fa3d3eb5e423dc04e (diff) | |
| download | rust-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.rs | 2 |
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