-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Fix suggestion for coercing Option<&String> to Option<&str> #107633
Conversation
r? @davidtwco (rustbot has picked a reviewer for you, use r? to override) |
cc @davidtwco, @compiler-errors, @JohnTitor, @estebank, @TaKO8Ki |
Can you add a test for the issue you're fixing? |
157aa1b
to
f874f67
Compare
I misread the issue and it turned out I wasn't fixing this 😅 Fixed and test added now |
r? Nilstrieb |
r=me when CI is green |
✌️ @clubby789 can now approve this pull request |
@bors r=Nilstrieb |
…, r=Nilstrieb Fix suggestion for coercing Option<&String> to Option<&str> Fixes rust-lang#107604 This also makes the diagnostic `MachineApplicable`, and runs `rustfix` to check we're not producing incorrect code. `@rustbot` label +A-diagnostics
Rollup of 6 pull requests Successful merges: - rust-lang#107082 (Autotrait bounds on dyn-safe trait methods) - rust-lang#107427 (Add candidates for DiscriminantKind builtin) - rust-lang#107539 (Emit warnings on unused parens in index expressions) - rust-lang#107544 (Improve `TokenCursor`.) - rust-lang#107585 (Don't cause a cycle when formatting query description that references a FnDef) - rust-lang#107633 (Fix suggestion for coercing Option<&String> to Option<&str>) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #107604
This also makes the diagnostic
MachineApplicable
, and runsrustfix
to check we're not producing incorrect code.@rustbot label +A-diagnostics