File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -271,6 +271,15 @@ If you need a combination of options that's not supported by the
271271` declare_lint! ` macro, you can always define your own static with a type of
272272` &Lint ` but this is currently linted against in the compiler tree.
273273
274+ #### Guidelines for creating a future incompatibility lint
275+
276+ - Create a lint defaulting to warn as normal, with ideally the same error
277+ message you would normally give.
278+ - Add a suitable reference, typically an RFC or tracking issue. Go ahead
279+ and include the full URL, sort items in ascending order of issue numbers.
280+ - Later, change lint to error.
281+ - Eventually, remove lint.
282+
274283### Lint Groups
275284
276285Lints can be turned on in groups. These groups are declared in the
You can’t perform that action at this time.
0 commit comments