]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/clippy_lints/src/const_static_lifetime.rs
New upstream version 1.27.1+dfsg1
[rustc.git] / src / tools / clippy / clippy_lints / src / const_static_lifetime.rs
index 38fcf514626ea7313b3535b7bae890c37f9b0561..2ff7fa9e3abe51996e2aea776412694b21b43d20 100644 (file)
@@ -56,7 +56,7 @@ impl StaticConst {
                                 span_lint_and_then(
                                     cx,
                                     CONST_STATIC_LIFETIME,
-                                    lifetime.span,
+                                    lifetime.ident.span,
                                     "Constants have by default a `'static` lifetime",
                                     |db| {
                                         db.span_suggestion(ty.span, "consider removing `'static`", sugg);