blob: 775c50779760a591c2eb4e54a7b7c7303d5bae2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
// Regression test for #140281
//@ edition: 2021
//@ proc-macro: unicode-control.rs
extern crate unicode_control;
use unicode_control::*;
macro_rules! foo {
($x:expr) => {
$x
};
}
macro_rules! empty {
($x:expr) => {};
}
fn main() {
let t = vec![
/// test RTL in doc in vec
//~^ ERROR unicode codepoint changing visible direction of text present in doc comment
1
];
foo!(
/**
* test RTL in doc in macro
*/
//~^^^ ERROR unicode codepoint changing visible direction of text present in doc comment
1
);
empty!(
/**
* test RTL in doc in macro
*/
//~^^^ ERROR unicode codepoint changing visible direction of text present in doc comment
1
);
let x = create_rtl_in_string!(); // OK
forward_stream!(
/// test RTL in doc in proc macro
//~^ ERROR unicode codepoint changing visible direction of text present in doc comment
mod a {}
);
recollect_stream!(
/// test RTL in doc in proc macro
//~^ ERROR unicode codepoint changing visible direction of text present in doc comment
mod b {}
);
}
|