Skip to content

Commit d6ef5c3

Browse files
committed
Fix some out-of-date comments.
1 parent f6def91 commit d6ef5c3

File tree

1 file changed

+4
-4
lines changed
  • compiler/rustc_codegen_ssa/src/back

1 file changed

+4
-4
lines changed

compiler/rustc_codegen_ssa/src/back/write.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -999,9 +999,9 @@ pub(crate) enum Message<B: WriteBackendMethods> {
999999
/// process another codegen unit.
10001000
pub struct CguMessage;
10011001

1002-
// A cut-down version of `rustc_errors::Diagnostic` that impls `Send`, which
1002+
// A cut-down version of `rustc_errors::DiagInner` that impls `Send`, which
10031003
// can be used to send diagnostics from codegen threads to the main thread.
1004-
// It's missing the following fields from `rustc_errors::Diagnostic`.
1004+
// It's missing the following fields from `rustc_errors::DiagInner`.
10051005
// - `span`: it doesn't impl `Send`.
10061006
// - `suggestions`: it doesn't impl `Send`, and isn't used for codegen
10071007
// diagnostics.
@@ -1016,8 +1016,8 @@ struct Diagnostic {
10161016
args: DiagArgMap,
10171017
}
10181018

1019-
// A cut-down version of `rustc_errors::SubDiagnostic` that impls `Send`. It's
1020-
// missing the following fields from `rustc_errors::SubDiagnostic`.
1019+
// A cut-down version of `rustc_errors::Subdiag` that impls `Send`. It's
1020+
// missing the following fields from `rustc_errors::Subdiag`.
10211021
// - `span`: it doesn't impl `Send`.
10221022
pub struct Subdiagnostic {
10231023
level: Level,

0 commit comments

Comments
 (0)