Rollup merge of #84469 - jyn514:dead-code, r=Mark-Simulacrum

Update comment on `PrimTy::name_str`

It's no longer used by rustdoc.
This commit is contained in:
Yuki Okushi 2021-04-24 03:44:15 +09:00 committed by GitHub
commit 62db03cd62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2201,7 +2201,7 @@ impl PrimTy {
/// Like [`PrimTy::name`], but returns a &str instead of a symbol.
///
/// Used by rustdoc.
/// Used by clippy.
pub fn name_str(self) -> &'static str {
match self {
PrimTy::Int(i) => i.name_str(),