mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 18:15:07 +03:00
505c1371d0
`Diagnostic` has 40 methods that return `&mut Self` and could be considered setters. Four of them have a `set_` prefix. This doesn't seem necessary for a type that implements the builder pattern. This commit removes the `set_` prefixes on those four methods.
For more information about how rustc works, see the rustc dev guide.