mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 02:40:40 +00:00

`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.