1
Fork 0

fix #102396, suggest parentheses for possible range methods

This commit is contained in:
yukang 2022-09-29 13:16:47 +08:00
parent d9f8b4b985
commit 5dd44d4d4c
5 changed files with 339 additions and 15 deletions

View file

@ -133,3 +133,8 @@ hir_analysis_extern_crate_not_idiomatic =
.suggestion = convert it to a `{$msg_code}`
hir_analysis_expected_used_symbol = expected `used`, `used(compiler)` or `used(linker)`
hir_analysis_expected_used_symbol = expected `used`, `used(compiler)` or `used(linker)`
hir_analysis_missing_parentheses_in_range = `{$ty_str}` is not an iterator
hir_analysis_add_missing_parentheses_in_range = you must surround the range in parentheses to call the `{$func_name}` function