Skip to content

Commit 2359013

Browse files
committed
rebase fixes
1 parent 3f50ecc commit 2359013

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

compiler/rustc_builtin_macros/src/deriving/generic/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ impl SkippedDerives {
320320
}
321321
}
322322

323-
#[derive(Copy, Clone)]
323+
#[derive(Copy, Clone, Debug)]
324324
pub enum IsTuple {
325325
No,
326326
Yes,
@@ -1250,7 +1250,7 @@ impl<'a> MethodDef<'a> {
12501250
.collect();
12511251

12521252
let self_expr = discr_exprs.remove(0);
1253-
let other_selflike_exprs = descr_exprs;
1253+
let other_selflike_exprs = discr_exprs;
12541254
let discr_field = FieldInfo {
12551255
span,
12561256
name: None,
@@ -1629,12 +1629,12 @@ impl<'a> TraitDef<'a> {
16291629
skipped_derives.add(path.segments[0].ident.name)
16301630
} else {
16311631
let traits = SUPPORTED_TRAITS.iter().map(|s| format!("`{s}`")).collect::<Vec<_>>().join(", ");
1632-
cx.parse_sess().buffer_lint_with_diagnostic(
1632+
cx.psess().buffer_lint_with_diagnostic(
16331633
rustc_session::lint::builtin::UNSUPPORTED_DERIVE_SKIP,
16341634
span,
16351635
cx.current_expansion.lint_node_id,
16361636
crate::fluent_generated::builtin_macros_derive_skip_unsupported,
1637-
rustc_session::lint::BuiltinLintDiagnostics::DeriveSkipUnsupported { traits },
1637+
rustc_session::lint::BuiltinLintDiag::DeriveSkipUnsupported { traits },
16381638
)
16391639
}
16401640
}

compiler/rustc_lint/src/context/diagnostics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ pub(super) fn builtin(sess: &Session, diagnostic: BuiltinLintDiag, diag: &mut Di
347347
"reduce the glob import's visibility or increase visibility of imported items",
348348
);
349349
}
350-
BuiltinLintDiagnostics::DeriveSkipUnsupported { traits } => {
351-
db.help(format!("the supported traits are {traits}"));
350+
BuiltinLintDiag::DeriveSkipUnsupported { traits } => {
351+
diag.help(format!("the supported traits are {traits}"));
352352
}
353353
}
354354
}

0 commit comments

Comments
 (0)