about summary refs log tree commit diff
path: root/compiler/rustc_session/src
diff options
context:
space:
mode:
authorAyrton <a.munoz3327@gmail.com>2020-10-27 09:00:19 -0400
committerAyrton <a.munoz3327@gmail.com>2020-10-27 11:04:04 -0400
commitc791c64e8434b0477de667c1a0fdbe18c928274c (patch)
tree46ea840d93cf3aa0241c283b93f7e89665e36550 /compiler/rustc_session/src
parent935fc3642a61e1545e1b98bf4716acbb7bf12e91 (diff)
downloadrust-c791c64e8434b0477de667c1a0fdbe18c928274c.tar.gz
rust-c791c64e8434b0477de667c1a0fdbe18c928274c.zip
Added suggestion to `function_item_references` lint and fixed warning message
Also updated tests accordingly and tweaked some wording in the lint declaration.
Diffstat (limited to 'compiler/rustc_session/src')
-rw-r--r--compiler/rustc_session/src/lint/builtin.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_session/src/lint/builtin.rs b/compiler/rustc_session/src/lint/builtin.rs
index 806f79af277..b8826a548b8 100644
--- a/compiler/rustc_session/src/lint/builtin.rs
+++ b/compiler/rustc_session/src/lint/builtin.rs
@@ -2674,7 +2674,7 @@ declare_lint! {
     /// arguments bound by [`fmt::Pointer`] or transmuted.
     pub FUNCTION_ITEM_REFERENCES,
     Warn,
-    "suggest casting functions to pointers when attempting to take references",
+    "suggest casting to a function pointer when attempting to take references to function items",
 }
 
 declare_lint! {