about summary refs log tree commit diff
path: root/doc/adding_lints.md
diff options
context:
space:
mode:
authorxiongmao86 <xiongmao86dev@sina.com>2020-04-18 18:28:29 +0800
committerxiongmao86 <xiongmao86dev@sina.com>2020-04-18 18:28:29 +0800
commitcf4e35339b1d5a613588b45c53d0e88da5363c65 (patch)
tree830fb97e01fb0a1e245aec7afd20494134881136 /doc/adding_lints.md
parentd03d3bd95b06b82246a51aaa8e424a67eb724037 (diff)
downloadrust-cf4e35339b1d5a613588b45c53d0e88da5363c65.tar.gz
rust-cf4e35339b1d5a613588b45c53d0e88da5363c65.zip
Add an Option<Span> argument to span_lint_and_help.
Diffstat (limited to 'doc/adding_lints.md')
-rw-r--r--doc/adding_lints.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/adding_lints.md b/doc/adding_lints.md
index a66d4e66add..94d6ccb316e 100644
--- a/doc/adding_lints.md
+++ b/doc/adding_lints.md
@@ -265,6 +265,7 @@ impl EarlyLintPass for FooFunctions {
             FOO_FUNCTIONS,
             span,
             "function named `foo`",
+            None,
             "consider using a more meaningful name"
         );
     }
@@ -296,6 +297,7 @@ impl EarlyLintPass for FooFunctions {
                 FOO_FUNCTIONS,
                 span,
                 "function named `foo`",
+                None,
                 "consider using a more meaningful name"
             );
         }