File tree 3 files changed +3
-15
lines changed
3 files changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -1566,23 +1566,11 @@ impl Type {
1566
1566
1567
1567
/// Use this method to get the [DefId] of a [clean] AST node, including [PrimitiveType]s.
1568
1568
///
1569
- /// See [`Self::def_id_no_primitives`] for more.
1570
- ///
1571
1569
/// [clean]: crate::clean
1570
+ ///
1572
1571
crate fn def_id ( & self , cache : & Cache ) -> Option < DefId > {
1573
1572
self . inner_def_id ( Some ( cache) )
1574
1573
}
1575
-
1576
- /// Use this method to get the [`DefId`] of a [`clean`] AST node.
1577
- /// This will return [`None`] when called on a primitive [`clean::Type`].
1578
- /// Use [`Self::def_id`] if you want to include primitives.
1579
- ///
1580
- /// [`clean`]: crate::clean
1581
- /// [`clean::Type`]: crate::clean::Type
1582
- // FIXME: get rid of this function and always use `def_id`
1583
- crate fn def_id_no_primitives ( & self ) -> Option < DefId > {
1584
- self . inner_def_id ( None )
1585
- }
1586
1574
}
1587
1575
1588
1576
/// A primitive (aka, builtin) type.
Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ impl DocVisitor for ItemCollector {
208
208
struct BadImplStripper < ' a > {
209
209
prims : FxHashSet < PrimitiveType > ,
210
210
items : FxHashSet < ItemId > ,
211
- crate cache : & ' a Cache ,
211
+ cache : & ' a Cache ,
212
212
}
213
213
214
214
impl < ' a > BadImplStripper < ' a > {
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ impl<'a> DocFolder for ImplStripper<'a> {
144
144
}
145
145
if let Some ( generics) = imp. trait_ . as_ref ( ) . and_then ( |t| t. generics ( ) ) {
146
146
for typaram in generics {
147
- if let Some ( did) = typaram. def_id_no_primitives ( ) {
147
+ if let Some ( did) = typaram. def_id ( self . cache ) {
148
148
if did. is_local ( ) && !self . retained . contains ( & did. into ( ) ) {
149
149
debug ! (
150
150
"ImplStripper: stripped item in trait's generics; removing impl"
You can’t perform that action at this time.
0 commit comments