Skip to content

Commit

Permalink
Rollup merge of #84469 - jyn514:dead-code, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
Update comment on `PrimTy::name_str`

It's no longer used by rustdoc.
  • Loading branch information
JohnTitor authored Apr 23, 2021
2 parents e07c7b5 + 2b02678 commit 62db03c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_hir/src/hir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 62db03c

Please sign in to comment.