We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a746f4 commit 872a6daCopy full SHA for 872a6da
compiler/rustc_middle/src/ty/generics.rs
@@ -70,14 +70,6 @@ impl GenericParamDef {
70
}
71
72
73
- pub fn has_default(&self) -> bool {
74
- match self.kind {
75
- GenericParamDefKind::Type { has_default, .. }
76
- | GenericParamDefKind::Const { has_default } => has_default,
77
- GenericParamDefKind::Lifetime => false,
78
- }
79
80
-
81
pub fn is_anonymous_lifetime(&self) -> bool {
82
match self.kind {
83
GenericParamDefKind::Lifetime => {
0 commit comments