Skip to content

Commit 48cad46

Browse files
committed
Fix test not to depend on environment
1 parent 54f8601 commit 48cad46

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/test/ui/macros/issue-68058.rs

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
// check-pass
22

3-
macro_rules! def_target {
4-
($target: expr) => {
5-
#[target_feature(enable=$target)]
6-
unsafe fn f() {
7-
#[target_feature(enable=$target)]
3+
macro_rules! foo {
4+
($doc: expr) => {
5+
fn f() {
6+
#[doc = $doc]
87
()
98
}
109
};
1110
}
1211

13-
def_target!("avx2");
12+
foo!("doc");
1413

1514
fn main() {}

0 commit comments

Comments
 (0)