]> git.lizzy.rs Git - rust.git/commit
suggest `&str.chars()` on attempt to `&str.iter()`
authorTakayuki Maeda <takoyaki0316@gmail.com>
Thu, 11 Nov 2021 16:47:43 +0000 (01:47 +0900)
committerTakayuki Maeda <takoyaki0316@gmail.com>
Mon, 15 Nov 2021 03:37:01 +0000 (12:37 +0900)
commitd562f487c92698cb901df89cab0682ec2cbef222
treea21f90e64b7a58fb0f00966097140d0106644cef
parent9dbbbb12c0b796f35cbf5a518ac12846c969a214
suggest `&str.chars()` on attempt to `&str.iter()`

check if `String` or `&String` or `&str`

Update compiler/rustc_typeck/src/check/method/suggest.rs

Co-authored-by: Esteban Kuber <estebank@users.noreply.github.com>
remove some trailing whitespace
compiler/rustc_typeck/src/check/method/suggest.rs
src/test/ui/suggest-using-chars.rs [new file with mode: 0644]
src/test/ui/suggest-using-chars.stderr [new file with mode: 0644]