fix(str_to_string): false positive non-str types#16571
fix(str_to_string): false positive non-str types#16571samueltardieu merged 1 commit intorust-lang:masterfrom
Conversation
|
r? @dswij rustbot has assigned @dswij. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
Lintcheck changes for 1994230
This comment will be updated if you push new changes |
|
I checked the clippy changes reported in #16571 (comment) - everything seems correct |
| diag.span_suggestion(expr.span, "try", format!("{snippet}.to_owned()"), applicability); | ||
| }, | ||
| ); | ||
| } else if let ExprKind::Path(_) = expr.kind |
There was a problem hiding this comment.
Unrelated, but this can be if let Res::Def(..) = expr.basic_res()
|
Reminder, once the PR becomes ready for a review, use |
|
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@samueltardieu I think this can't be auto-merged until @Jarcho approves it? |
|
Looks like this is blocking the merge. Since you've addressed @Jarcho's point about correctness ( |
Main point addressed, and need to get included in the repo sync.
Fix #16569 bug introduced in #16512
changelog: [
str_to_string]: fix false positiver? @samueltardieu