about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/outlives/test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_hir_analysis/src/outlives/test.rs')
-rw-r--r--compiler/rustc_hir_analysis/src/outlives/test.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/outlives/test.rs b/compiler/rustc_hir_analysis/src/outlives/test.rs
index b3cbc312721..dea3f1a9930 100644
--- a/compiler/rustc_hir_analysis/src/outlives/test.rs
+++ b/compiler/rustc_hir_analysis/src/outlives/test.rs
@@ -18,7 +18,7 @@ pub fn test_inferred_outlives(tcx: TyCtxt<'_>) {
             pred.sort();
 
             let span = tcx.def_span(id.owner_id);
-            let mut err = tcx.sess.struct_span_err(span, "rustc_outlives");
+            let mut err = tcx.dcx().struct_span_err(span, "rustc_outlives");
             for p in pred {
                 err.note(p);
             }