Migrate trivially translatable rustc_parse diagnostics
This commit is contained in:
@@ -2976,7 +2976,7 @@ pub enum ItemKind {
|
||||
}
|
||||
|
||||
impl ItemKind {
|
||||
pub fn article(&self) -> &str {
|
||||
pub fn article(&self) -> &'static str {
|
||||
use ItemKind::*;
|
||||
match self {
|
||||
Use(..) | Static(..) | Const(..) | Fn(..) | Mod(..) | GlobalAsm(..) | TyAlias(..)
|
||||
@@ -2985,7 +2985,7 @@ impl ItemKind {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn descr(&self) -> &str {
|
||||
pub fn descr(&self) -> &'static str {
|
||||
match self {
|
||||
ItemKind::ExternCrate(..) => "extern crate",
|
||||
ItemKind::Use(..) => "`use` import",
|
||||
|
||||
Reference in New Issue
Block a user