Files
rust/src
Jonathan Brouwer 6fa22653f9 Rollup merge of #156074 - EvoPot:cow-diag-item, r=chenyukang
Add extra symbol check for `.to_owned()`

Follow up of rust-lang/rust#154646

Previously when adding a suggestion for using `Cow::into_owned()` instead of `ToOwned::to_owned()`, the compiler would just convert the methods `Span` into a `String` and do checks on that `String`. This PR adds an extra guard to that suggestion by checking if the method is `sym::to_owned_method`.

r? @davidtwco since you added the review to the previous PR
2026-05-02 16:19:19 +02:00
..
2026-04-29 23:30:49 +02:00
2026-04-28 15:17:56 +08:00
2026-04-16 19:30:56 -04:00
2026-04-10 10:49:37 -04:00

This directory contains some source code for the Rust project, including:

  • The bootstrapping build system
  • Various submodules for tools, like cargo, tidy, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.