summary refs log tree commit diff
path: root/src/librustc_parse/parser
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2020-03-05 11:33:05 +0100
committerMatthias Krüger <matthias.krueger@famsik.de>2020-03-05 16:38:24 +0100
commitc2bbe3349f3c93d63d6408d4df1d190c7890f512 (patch)
treecd99e65cc0e4ea1a2afe61ccdd94acfca0cf2fdd /src/librustc_parse/parser
parentedd3e175d6206946b862f1222c5cc3386b0be873 (diff)
downloadrust-c2bbe3349f3c93d63d6408d4df1d190c7890f512.tar.gz
rust-c2bbe3349f3c93d63d6408d4df1d190c7890f512.zip
Const items have by default a static lifetime, there's no need to annotate it. (clippy::redundant_static_lifetimes)
Diffstat (limited to 'src/librustc_parse/parser')
-rw-r--r--src/librustc_parse/parser/diagnostics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_parse/parser/diagnostics.rs b/src/librustc_parse/parser/diagnostics.rs
index 0759c43d452..8b43b424f55 100644
--- a/src/librustc_parse/parser/diagnostics.rs
+++ b/src/librustc_parse/parser/diagnostics.rs
@@ -19,7 +19,7 @@ use rustc_span::{MultiSpan, Span, SpanSnippetError, DUMMY_SP};
 use log::{debug, trace};
 use std::mem;
 
-const TURBOFISH: &'static str = "use `::<...>` instead of `<...>` to specify type arguments";
+const TURBOFISH: &str = "use `::<...>` instead of `<...>` to specify type arguments";
 
 /// Creates a placeholder argument.
 pub(super) fn dummy_arg(ident: Ident) -> Param {