]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/const_static_lifetime.rs
Rustup to https://github.com/rust-lang/rust/pull/60740
[rust.git] / clippy_lints / src / const_static_lifetime.rs
index 150d379cc7c7a75dd0b5f2e6338f096d5aa4009c..fefd180953f29928fac540cf1e3098ec87d2b86c 100644 (file)
@@ -47,7 +47,7 @@ fn visit_type(&mut self, ty: &Ty, cx: &EarlyContext<'_>) {
                 if let Some(lifetime) = *optional_lifetime {
                     match borrow_type.ty.node {
                         TyKind::Path(..) | TyKind::Slice(..) | TyKind::Array(..) | TyKind::Tup(..) => {
-                            if lifetime.ident.name == syntax::symbol::keywords::StaticLifetime.name() {
+                            if lifetime.ident.name == syntax::symbol::kw::StaticLifetime {
                                 let snip = snippet(cx, borrow_type.ty.span, "<type>");
                                 let sugg = format!("&{}", snip);
                                 span_lint_and_then(