Skip to content

Commit c9ebd73

Browse files
Remove unused match pattern for primitive types
1 parent f69fee4 commit c9ebd73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/json/conversions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ pub(crate) fn from_item_id_with_name(item_id: ItemId, tcx: TyCtxt<'_>, name: Opt
252252
ItemId::Auto { for_, trait_ } => {
253253
Id(format!("a:{}-{}", DisplayDefId(trait_, tcx, None), DisplayDefId(for_, tcx, name)))
254254
}
255-
ItemId::Primitive(ty, krate) => Id(format!("p:{}:{}", krate.as_u32(), ty.as_sym())),
255+
ItemId::Primitive(_, _) => unreachable!(),
256256
}
257257
}
258258

0 commit comments

Comments
 (0)