Rollup merge of #111460 - clubby789:lowercase-box-self, r=compiler-errors

Improve suggestion for `self: Box<self>`

Fixes #110642
This commit is contained in:
Michael Goulet
2023-05-11 17:43:09 -07:00
committed by GitHub
9 changed files with 63 additions and 25 deletions

View File

@@ -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,