We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3bfd4a commit dcd2b0cCopy full SHA for dcd2b0c
src/diagnostics.md
@@ -271,6 +271,15 @@ If you need a combination of options that's not supported by the
271
`declare_lint!` macro, you can always define your own static with a type of
272
`&Lint` but this is currently linted against in the compiler tree.
273
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
283
### Lint Groups
284
285
Lints can be turned on in groups. These groups are declared in the
0 commit comments