about summary refs log tree commit diff
path: root/tests/rustdoc/const-generics
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com>2024-02-22 12:10:29 +0000
committer许杰友 Jieyou Xu (Joe) <jieyouxu@outlook.com>2024-02-22 16:04:04 +0000
commit6e48b96692d63a79a14563f27fe5185f122434f8 (patch)
tree171bd5869f5d38c5b2b5d8e6dae91884cde9a173 /tests/rustdoc/const-generics
parentcbf10affb04c701c58087f450f63e769ad25f3c4 (diff)
downloadrust-6e48b96692d63a79a14563f27fe5185f122434f8.tar.gz
rust-6e48b96692d63a79a14563f27fe5185f122434f8.zip
[AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives
Diffstat (limited to 'tests/rustdoc/const-generics')
-rw-r--r--tests/rustdoc/const-generics/auxiliary/extern_crate.rs2
-rw-r--r--tests/rustdoc/const-generics/const-generics-docs.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/rustdoc/const-generics/auxiliary/extern_crate.rs b/tests/rustdoc/const-generics/auxiliary/extern_crate.rs
index 55b632a48f2..ebd0d7dac32 100644
--- a/tests/rustdoc/const-generics/auxiliary/extern_crate.rs
+++ b/tests/rustdoc/const-generics/auxiliary/extern_crate.rs
@@ -1,4 +1,4 @@
-// edition:2018
+//@ edition:2018
 pub fn extern_fn<const N: usize>() -> impl Iterator<Item = [u8; N]> {
     [[0; N]; N].iter().copied()
 }
diff --git a/tests/rustdoc/const-generics/const-generics-docs.rs b/tests/rustdoc/const-generics/const-generics-docs.rs
index 70a9518f05b..4ef1acf45f5 100644
--- a/tests/rustdoc/const-generics/const-generics-docs.rs
+++ b/tests/rustdoc/const-generics/const-generics-docs.rs
@@ -1,5 +1,5 @@
-// edition:2018
-// aux-build: extern_crate.rs
+//@ edition:2018
+//@ aux-build: extern_crate.rs
 #![crate_name = "foo"]
 
 extern crate extern_crate;