about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2019-10-20 09:59:26 +1100
committerNicholas Nethercote <nnethercote@mozilla.com>2019-10-21 11:33:52 +1100
commit78c342730840248a98d81f7cc10b06c69831751b (patch)
tree477e6d6402688487cc7d726d040cb4940b4f96dd
parentc325553a30ec0de8e156c28533e55ddee71013f0 (diff)
downloadrust-78c342730840248a98d81f7cc10b06c69831751b.tar.gz
rust-78c342730840248a98d81f7cc10b06c69831751b.zip
Remove unnecessary `impl Clean<String> for InternedString`.
-rw-r--r--src/librustdoc/clean/mod.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs
index 3f8fca53cd4..b84540d899e 100644
--- a/src/librustdoc/clean/mod.rs
+++ b/src/librustdoc/clean/mod.rs
@@ -31,7 +31,6 @@ use syntax::attr;
 use syntax_expand::base::MacroKind;
 use syntax::source_map::DUMMY_SP;
 use syntax::symbol::{Symbol, kw, sym};
-use syntax::symbol::InternedString;
 use syntax_pos::{self, Pos, FileName};
 
 use std::collections::hash_map::Entry;
@@ -3701,13 +3700,6 @@ impl Clean<String> for ast::Name {
     }
 }
 
-impl Clean<String> for InternedString {
-    #[inline]
-    fn clean(&self, _: &DocContext<'_>) -> String {
-        self.to_string()
-    }
-}
-
 #[derive(Clone, Debug)]
 pub struct Typedef {
     pub type_: Type,