Skip to content

Commit 5138399

Browse files
committed
Remove unnecessary lifetime from BuiltinTypeAliasBounds.
1 parent c1121f8 commit 5138399

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_lint/src/lints.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,16 +267,16 @@ pub(crate) struct MacroExprFragment2024 {
267267
pub suggestion: Span,
268268
}
269269

270-
pub(crate) struct BuiltinTypeAliasBounds<'a, 'hir> {
270+
pub(crate) struct BuiltinTypeAliasBounds<'hir> {
271271
pub in_where_clause: bool,
272272
pub label: Span,
273273
pub enable_feat_help: bool,
274274
pub suggestions: Vec<(Span, String)>,
275275
pub preds: &'hir [hir::WherePredicate<'hir>],
276-
pub ty: Option<&'a hir::Ty<'hir>>,
276+
pub ty: Option<&'hir hir::Ty<'hir>>,
277277
}
278278

279-
impl<'a> LintDiagnostic<'a, ()> for BuiltinTypeAliasBounds<'_, '_> {
279+
impl<'a> LintDiagnostic<'a, ()> for BuiltinTypeAliasBounds<'_> {
280280
fn decorate_lint<'b>(self, diag: &'b mut Diag<'a, ()>) {
281281
diag.primary_message(if self.in_where_clause {
282282
fluent::lint_builtin_type_alias_bounds_where_clause

0 commit comments

Comments
 (0)