New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[module_name_repetition
] Recognize common prepositions
#12573
[module_name_repetition
] Recognize common prepositions
#12573
Conversation
tests/ui-toml/item_name_repetitions/allowed_prepositions/item_name_repetitions.rs
Outdated
Show resolved
Hide resolved
'Prefixes' would be a better name than 'prepositions'. |
06a1e67
to
c97bee6
Compare
@Jarcho thanks for the suggestions! I agree with both - implemented. |
Thank you. @bors r+ |
…ule-name-repetitions, r=Jarcho [`module_name_repetition`] Recognize common prepositions Fixes #12544 changelog: [`module_name_repetition`]: don't report an item name if it consists only of a prefix from `allowed-prefixes` list and a module name (e.g. `AsFoo` in module `foo`). Prefixes allowed by default: [`to`, `from`, `into`, `as`, `try_into`, `try_from`]
💔 Test failed - checks-action_test |
…ffix Fixes rust-lang#12544. - don't report an item name if it consists only of a prefix from `allowed-prefixes` list and a module name (e.g. `AsFoo` in module `foo`). - configured by `allowed-prefixes` config entry - prefixes allowed by default: [`to`, `from`, `into`, `as`, `try_into`, `try_from`] - update docs
ba25e42
to
3705073
Compare
@bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
1 similar comment
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
👀 Test was successful, but fast-forwarding failed: 422 Changes must be made through a pull request. |
Fixes #12544
changelog: [
module_name_repetition
]: don't report an item name if it consists only of a prefix fromallowed-prefixes
list and a module name (e.g.AsFoo
in modulefoo
). Prefixes allowed by default: [to
,from
,into
,as
,try_into
,try_from
]