Fix some out-of-date comments.

This commit is contained in:
Nicholas Nethercote 2024-02-29 13:47:47 +11:00
parent 18715c98c6
commit f16a8d0390

View file

@ -1004,9 +1004,9 @@ pub(crate) enum Message<B: WriteBackendMethods> {
/// process another codegen unit. /// process another codegen unit.
pub struct CguMessage; pub struct CguMessage;
// A cut-down version of `rustc_errors::Diagnostic` that impls `Send`, which // A cut-down version of `rustc_errors::DiagInner` that impls `Send`, which
// can be used to send diagnostics from codegen threads to the main thread. // can be used to send diagnostics from codegen threads to the main thread.
// It's missing the following fields from `rustc_errors::Diagnostic`. // It's missing the following fields from `rustc_errors::DiagInner`.
// - `span`: it doesn't impl `Send`. // - `span`: it doesn't impl `Send`.
// - `suggestions`: it doesn't impl `Send`, and isn't used for codegen // - `suggestions`: it doesn't impl `Send`, and isn't used for codegen
// diagnostics. // diagnostics.
@ -1021,8 +1021,8 @@ struct Diagnostic {
args: DiagArgMap, args: DiagArgMap,
} }
// A cut-down version of `rustc_errors::SubDiagnostic` that impls `Send`. It's // A cut-down version of `rustc_errors::Subdiag` that impls `Send`. It's
// missing the following fields from `rustc_errors::SubDiagnostic`. // missing the following fields from `rustc_errors::Subdiag`.
// - `span`: it doesn't impl `Send`. // - `span`: it doesn't impl `Send`.
pub struct Subdiagnostic { pub struct Subdiagnostic {
level: Level, level: Level,