Add const parameter REPLACEMENT_ALLOWED to DisallowedPath

This commit is contained in:
Samuel Moelius 2024-11-13 18:34:08 -05:00
parent d0f3577720
commit b97ad4eccd
6 changed files with 74 additions and 25 deletions

View file

@ -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

View file

@ -0,0 +1,3 @@
await-holding-invalid-types = [
{ path = "std::string::String", replacement = "std::net::Ipv4Addr" },
]