rust/compiler/rustc_lint/src
Dylan DPC bcb9226efb
Rollup merge of #83216 - jyn514:register-tool, r=petrochenkov
Allow registering tool lints with `register_tool`

Previously, there was no way to add a custom tool prefix, even if the tool
itself had registered a lint:

 ```rust
 #![feature(register_tool)]
 #![register_tool(xyz)]
 #![warn(xyz::my_lint)]
 ```

```
$ rustc unknown-lint.rs  --crate-type lib
error[E0710]: an unknown tool name found in scoped lint: `xyz::my_lint`
 --> unknown-lint.rs:3:9
  |
3 | #![warn(xyz::my_lint)]
  |         ^^^
```

This allows opting-in to lints from other tools using `register_tool`.

cc https://github.com/rust-lang/rust/issues/66079#issuecomment-788589193, ``@chorman0773``
r? ``@petrochenkov``
2021-03-18 00:28:14 +01:00
..
nonstandard_style
array_into_iter.rs
builtin.rs ast/hir: Rename field-related structures 2021-03-16 11:41:24 +03:00
context.rs Rollup merge of #83216 - jyn514:register-tool, r=petrochenkov 2021-03-18 00:28:14 +01:00
early.rs ast/hir: Rename field-related structures 2021-03-16 11:41:24 +03:00
internal.rs Remove hir::Item::attrs. 2021-03-09 19:27:50 +01:00
late.rs ast/hir: Rename field-related structures 2021-03-16 11:41:24 +03:00
levels.rs Rollup merge of #83216 - jyn514:register-tool, r=petrochenkov 2021-03-18 00:28:14 +01:00
lib.rs Don't warn about old rustdoc lint names (temporarily) 2021-03-16 13:13:59 -04:00
methods.rs
non_ascii_idents.rs
non_fmt_panic.rs Rollup merge of #82456 - klensy:or-else, r=estebank 2021-02-26 15:52:31 +01:00
nonstandard_style.rs Remove hir::Item::attrs. 2021-03-09 19:27:50 +01:00
noop_method_call.rs Warn in doc test 2021-03-03 11:23:33 +01:00
passes.rs ast/hir: Rename field-related structures 2021-03-16 11:41:24 +03:00
redundant_semicolon.rs
traits.rs Only store a LocalDefId in hir::Item. 2021-02-15 19:32:10 +01:00
types.rs Handle negative literals in cast overflow warning 2021-03-06 17:33:21 +09:00
unused.rs Visit attributes in one go. 2021-03-09 19:09:34 +01:00