Rename Session::span_diagnostic as Session::dcx.
This commit is contained in:
@@ -453,7 +453,7 @@ fn lint_auto_trait_impl<'tcx>(
|
||||
impl_def_id: LocalDefId,
|
||||
) {
|
||||
if trait_ref.args.len() != 1 {
|
||||
tcx.sess.diagnostic().span_delayed_bug(
|
||||
tcx.sess.dcx().span_delayed_bug(
|
||||
tcx.def_span(impl_def_id),
|
||||
"auto traits cannot have generic parameters",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user