diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2019-12-04 00:16:03 +0100 |
|---|---|---|
| committer | flip1995 <hello@philkrones.com> | 2019-12-04 01:34:01 +0100 |
| commit | 98e433d70d32086afb80bd4c20fe769a1c0a38ff (patch) | |
| tree | 2aaaf80e9f337e9e3e49cf91de99c5db67effd3a /doc/adding_lints.md | |
| parent | c66cca44c815baf7d4b01d0aa66bf79ee4e3a610 (diff) | |
Rustup to rust-lang/rust#66878
Diffstat (limited to 'doc/adding_lints.md')
| -rw-r--r-- | doc/adding_lints.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/adding_lints.md b/doc/adding_lints.md index e171ecaccb9..36d0ce0207f 100644 --- a/doc/adding_lints.md +++ b/doc/adding_lints.md @@ -127,7 +127,8 @@ where all the lint code is. We are going to call the file ```rust use rustc::lint::{LintArray, LintPass, EarlyLintPass}; -use rustc::{declare_lint_pass, declare_tool_lint}; +use rustc::declare_lint_pass; +use rustc_session::declare_tool_lint; ``` The next step is to provide a lint declaration. Lints are declared using the |
