Rollup merge of #111460 - clubby789:lowercase-box-self, r=compiler-errors
Improve suggestion for `self: Box<self>` Fixes #110642
This commit is contained in:
@@ -150,6 +150,15 @@ pub(crate) enum ConstantItemKind {
|
||||
Static,
|
||||
}
|
||||
|
||||
impl ConstantItemKind {
|
||||
pub(crate) fn as_str(&self) -> &'static str {
|
||||
match self {
|
||||
Self::Const => "const",
|
||||
Self::Static => "static",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
||||
enum RecordPartialRes {
|
||||
Yes,
|
||||
|
||||
Reference in New Issue
Block a user