File tree 2 files changed +1
-18
lines changed
2 files changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -232,14 +232,6 @@ impl ExternalCrate {
232
232
hir:: ItemKind :: Mod ( _) => {
233
233
as_keyword ( Res :: Def ( DefKind :: Mod , id. owner_id . to_def_id ( ) ) )
234
234
}
235
- hir:: ItemKind :: Use ( path, hir:: UseKind :: Single )
236
- if tcx. visibility ( id. owner_id ) . is_public ( ) =>
237
- {
238
- path. res
239
- . iter ( )
240
- . find_map ( |res| as_keyword ( res. expect_non_local ( ) ) )
241
- . map ( |( _, prim) | ( id. owner_id . to_def_id ( ) , prim) )
242
- }
243
235
_ => None ,
244
236
}
245
237
} )
@@ -302,15 +294,6 @@ impl ExternalCrate {
302
294
hir:: ItemKind :: Mod ( _) => {
303
295
as_primitive ( Res :: Def ( DefKind :: Mod , id. owner_id . to_def_id ( ) ) )
304
296
}
305
- hir:: ItemKind :: Use ( path, hir:: UseKind :: Single )
306
- if tcx. visibility ( id. owner_id ) . is_public ( ) =>
307
- {
308
- path. res
309
- . iter ( )
310
- . find_map ( |res| as_primitive ( res. expect_non_local ( ) ) )
311
- // Pretend the primitive is local.
312
- . map ( |( _, prim) | ( id. owner_id . to_def_id ( ) , prim) )
313
- }
314
297
_ => None ,
315
298
}
316
299
} )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ extern crate issue_15318;
6
6
7
7
pub use issue_15318:: ptr;
8
8
9
- // @has issue_15318_2/fn.bar.html \
9
+ // @! has issue_15318_2/fn.bar.html \
10
10
// '//*[@href="primitive.pointer.html"]' \
11
11
// '*mut T'
12
12
pub fn bar < T > ( ptr : * mut T ) { }
You can’t perform that action at this time.
0 commit comments