about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/traits
diff options
context:
space:
mode:
authorTakayuki Maeda <takoyaki0316@gmail.com>2022-07-10 03:18:56 +0900
committerTakayuki Maeda <takoyaki0316@gmail.com>2022-07-10 03:18:56 +0900
commitbda83e6543fa89fd64efafdfb93924fede792850 (patch)
treee8dde870dcd0d51cf61237856de4f7cd19b2d278 /compiler/rustc_trait_selection/src/traits
parentfac8fa56726f7a5b2d4880a4719c5f99beec8328 (diff)
downloadrust-bda83e6543fa89fd64efafdfb93924fede792850.tar.gz
rust-bda83e6543fa89fd64efafdfb93924fede792850.zip
avoid some `&str` to `String` conversions
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits')
-rw-r--r--compiler/rustc_trait_selection/src/traits/specialize/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/specialize/mod.rs b/compiler/rustc_trait_selection/src/traits/specialize/mod.rs
index a80354897d6..13848d37890 100644
--- a/compiler/rustc_trait_selection/src/traits/specialize/mod.rs
+++ b/compiler/rustc_trait_selection/src/traits/specialize/mod.rs
@@ -406,7 +406,7 @@ fn report_conflicting_impls(
         let mut err = err.build(&msg);
         match tcx.span_of_impl(overlap.with_impl) {
             Ok(span) => {
-                err.span_label(span, "first implementation here".to_string());
+                err.span_label(span, "first implementation here");
 
                 err.span_label(
                     impl_span,