You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rustc compiler crates contain a file containing all #[derive(Diagnostic)] structs. Whether this is good design is out of scope for this MCP.
We started renaming all files to diagnostics.rs, as they don't contain only structs for errors, but also structs for warnings and since recently lints. It was pointed out that this change should have been MCP'ed. This MCP proposes to finish renaming all files to diagnostics.rs.
For reference, there are currently:
22 crates that name this file diagnostics.rs (These were already renamed from one of the other variants)
6 crates that name this file errors.rs
4 crates that name this file error.rs
3 crates that name this file session_diagnostics.rs
2 crates that name this file lints.rs
Mentors or Reviewers
This is a change @GuillaumeGomez and I are proposing and will implement.
Proposal
The rustc compiler crates contain a file containing all
#[derive(Diagnostic)]structs. Whether this is good design is out of scope for this MCP.We started renaming all files to
diagnostics.rs, as they don't contain only structs for errors, but also structs for warnings and since recently lints. It was pointed out that this change should have been MCP'ed. This MCP proposes to finish renaming all files todiagnostics.rs.For reference, there are currently:
diagnostics.rs(These were already renamed from one of the other variants)errors.rserror.rssession_diagnostics.rslints.rsMentors or Reviewers
This is a change @GuillaumeGomez and I are proposing and will implement.
Process
The main points of the Major Change Process are as follows:
@rustbot secondor kickoff a team FCP with@rfcbot fcp $RESOLUTION.You can read more about Major Change Proposals on forge.
Note
Concerns (0 active)
impl-filesresolved in this commentManaged by
@rustbot—see help for details.