Add const parameter REPLACEMENT_ALLOWED to DisallowedPath
This commit is contained in:
parent
d0f3577720
commit
b97ad4eccd
6 changed files with 74 additions and 25 deletions
|
|
@ -0,0 +1 @@
|
|||
fn main() {}
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
error: error reading Clippy's configuration file: replacement not allowed for this configuration
|
||||
--> $DIR/tests/ui-toml/await_holding_invalid_type_with_replacement/clippy.toml:1:31
|
||||
|
|
||||
LL | await-holding-invalid-types = [
|
||||
| _______________________________^
|
||||
LL | | { path = "std::string::String", replacement = "std::net::Ipv4Addr" },
|
||||
LL | | ]
|
||||
| |_^
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
await-holding-invalid-types = [
|
||||
{ path = "std::string::String", replacement = "std::net::Ipv4Addr" },
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue