about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src/test_harness.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-06-22 08:38:24 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2022-06-23 11:10:43 +1000
commit7586e79af8771639e57c7d207b51fb9096e5359a (patch)
tree1cd9b464b3ff8cf77d091f25a155fe75fe829f24 /compiler/rustc_builtin_macros/src/test_harness.rs
parentdc80ca78b6ec2b6bba02560470347433bcd0bb3c (diff)
downloadrust-7586e79af8771639e57c7d207b51fb9096e5359a.tar.gz
rust-7586e79af8771639e57c7d207b51fb9096e5359a.zip
Rename some `ExtCtxt` methods.
The new names are more accurate.

Co-authored-by: Scott McMurray <scottmcm@users.noreply.github.com>
Diffstat (limited to 'compiler/rustc_builtin_macros/src/test_harness.rs')
-rw-r--r--compiler/rustc_builtin_macros/src/test_harness.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_builtin_macros/src/test_harness.rs b/compiler/rustc_builtin_macros/src/test_harness.rs
index db8dce804a3..27f6ef5877a 100644
--- a/compiler/rustc_builtin_macros/src/test_harness.rs
+++ b/compiler/rustc_builtin_macros/src/test_harness.rs
@@ -351,7 +351,7 @@ fn mk_tests_slice(cx: &TestCtxt<'_>, sp: Span) -> P<ast::Expr> {
     debug!("building test vector from {} tests", cx.test_cases.len());
     let ecx = &cx.ext_cx;
 
-    ecx.expr_vec_slice(
+    ecx.expr_array_ref(
         sp,
         cx.test_cases
             .iter()