Skip to content

Commit d079977

Browse files
committed
Remove unused Clean impl for Rc<T>
1 parent 72b0a57 commit d079977

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/librustdoc/clean/mod.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ use std::assert_matches::assert_matches;
3333
use std::collections::hash_map::Entry;
3434
use std::default::Default;
3535
use std::hash::Hash;
36-
use std::rc::Rc;
3736
use std::{mem, vec};
3837

3938
use crate::core::{self, DocContext, ImplTraitParam};
@@ -61,12 +60,6 @@ impl<T: Clean<U>, U> Clean<U> for &T {
6160
}
6261
}
6362

64-
impl<T: Clean<U>, U> Clean<U> for Rc<T> {
65-
fn clean(&self, cx: &mut DocContext<'_>) -> U {
66-
(**self).clean(cx)
67-
}
68-
}
69-
7063
impl Clean<Item> for doctree::Module<'_> {
7164
fn clean(&self, cx: &mut DocContext<'_>) -> Item {
7265
let mut items: Vec<Item> = vec![];

0 commit comments

Comments
 (0)