Skip to content

Commit eed826f

Browse files
tests: attributed comment-only blocks
1 parent faf97a6 commit eed826f

File tree

4 files changed

+68
-0
lines changed

4 files changed

+68
-0
lines changed

Diff for: tests/source/issue_4475.rs

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
fn main() {
2+
#[cfg(debug_assertions)]
3+
{ println!("DEBUG"); }
4+
}
5+
6+
fn main() {
7+
#[cfg(feature = "foo")]
8+
{
9+
/*
10+
let foo = 0
11+
*/
12+
}
13+
}
14+
15+
fn main() {
16+
#[cfg(feature = "foo")]
17+
{ /* let foo = 0; */ }
18+
}
19+
20+
fn main() {
21+
#[foo]
22+
#[bar]
23+
#[baz]
24+
{
25+
// let foo = 0;
26+
}
27+
}

Diff for: tests/target/issue_4467.rs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pub fn main() {
2+
#[cfg(feature = "std")]
3+
{
4+
// Comment
5+
}
6+
}

Diff for: tests/target/issue_4475.rs

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
fn main() {
2+
#[cfg(debug_assertions)]
3+
{
4+
println!("DEBUG");
5+
}
6+
}
7+
8+
fn main() {
9+
#[cfg(feature = "foo")]
10+
{
11+
/*
12+
let foo = 0
13+
*/
14+
}
15+
}
16+
17+
fn main() {
18+
#[cfg(feature = "foo")]
19+
{ /* let foo = 0; */ }
20+
}
21+
22+
fn main() {
23+
#[foo]
24+
#[bar]
25+
#[baz]
26+
{
27+
// let foo = 0;
28+
}
29+
}

Diff for: tests/target/issue_4522.rs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
fn main() {
2+
#[cfg(feature = "foo")]
3+
{
4+
// let foo = 0;
5+
}
6+
}

0 commit comments

Comments
 (0)