Rename ParseSess::span_diagnostic as ParseSess::dcx.
This commit is contained in:
parent
9b1f87c7e8
commit
9df1576e1d
26 changed files with 89 additions and 98 deletions
|
|
@ -641,7 +641,7 @@ pub(crate) fn make_test(
|
|||
// handler. Any errors in the tests will be reported when the test file is compiled,
|
||||
// Note that we still need to cancel the errors above otherwise `DiagnosticBuilder`
|
||||
// will panic on drop.
|
||||
sess.span_diagnostic.reset_err_count();
|
||||
sess.dcx.reset_err_count();
|
||||
|
||||
(found_main, found_extern_crate, found_macro)
|
||||
})
|
||||
|
|
|
|||
|
|
@ -66,9 +66,8 @@ pub(crate) fn look_for_custom_classes<'tcx>(cx: &DocContext<'tcx>, item: &Item)
|
|||
if !tests.custom_classes_found.is_empty() {
|
||||
let span = item.attr_span(cx.tcx);
|
||||
let sess = &cx.tcx.sess.parse_sess;
|
||||
let mut err = sess
|
||||
.span_diagnostic
|
||||
.struct_span_warn(span, "custom classes in code blocks will change behaviour");
|
||||
let mut err =
|
||||
sess.dcx.struct_span_warn(span, "custom classes in code blocks will change behaviour");
|
||||
add_feature_diagnostics_for_issue(
|
||||
&mut err,
|
||||
sess,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue