about summary refs log tree commit diff
path: root/tests/ui/proc-macro/span-api-tests.rs
diff options
context:
space:
mode:
authorMara Bos <m-ou.se@m-ou.se>2025-04-11 14:35:00 +0200
committerMara Bos <m-ou.se@m-ou.se>2025-04-11 15:07:08 +0200
commit3962069982783ccf183e273a983b0c150c51d504 (patch)
tree05d7854f9d02b3c778e3e8e71c07e5b99f5c7d2c /tests/ui/proc-macro/span-api-tests.rs
parent6788ce76c9f66b836a3b6a72d8b6df32627edecc (diff)
downloadrust-3962069982783ccf183e273a983b0c150c51d504.tar.gz
rust-3962069982783ccf183e273a983b0c150c51d504.zip
Replace proc_macro::SourceFile by Span::{file, local_file}.
Diffstat (limited to 'tests/ui/proc-macro/span-api-tests.rs')
-rw-r--r--tests/ui/proc-macro/span-api-tests.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/ui/proc-macro/span-api-tests.rs b/tests/ui/proc-macro/span-api-tests.rs
index dd8589735b2..792859ed05b 100644
--- a/tests/ui/proc-macro/span-api-tests.rs
+++ b/tests/ui/proc-macro/span-api-tests.rs
@@ -8,24 +8,24 @@ extern crate span_test_macros;
 
 extern crate span_api_tests;
 
-use span_api_tests::{reemit, assert_source_file, macro_stringify};
+use span_api_tests::{reemit, assert_local_file, macro_stringify};
 
 macro_rules! say_hello {
     ($macname:ident) => ( $macname! { "Hello, world!" })
 }
 
-assert_source_file! { "Hello, world!" }
+assert_local_file! { "Hello, world!" }
 
-say_hello! { assert_source_file }
+say_hello! { assert_local_file }
 
 reemit_legacy! {
-    assert_source_file! { "Hello, world!" }
+    assert_local_file! { "Hello, world!" }
 }
 
-say_hello_extern! { assert_source_file }
+say_hello_extern! { assert_local_file }
 
 reemit! {
-    assert_source_file! { "Hello, world!" }
+    assert_local_file! { "Hello, world!" }
 }
 
 fn main() {