diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index 8f2609efc55..135960b1c94 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -33,7 +33,6 @@ use std::assert_matches::assert_matches; use std::collections::hash_map::Entry; use std::default::Default; use std::hash::Hash; -use std::rc::Rc; use std::{mem, vec}; use crate::core::{self, DocContext, ImplTraitParam}; @@ -61,12 +60,6 @@ impl, U> Clean for &T { } } -impl, U> Clean for Rc { - fn clean(&self, cx: &mut DocContext<'_>) -> U { - (**self).clean(cx) - } -} - impl Clean for doctree::Module<'_> { fn clean(&self, cx: &mut DocContext<'_>) -> Item { let mut items: Vec = vec![];