Skip to content

Commit 218593f

Browse files
ayazhafizcalebcartwright
authored andcommitted
fixup! Correctly create artificial span for formatting closure body
1 parent 1de4858 commit 218593f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Diff for: tests/source/issue-4382.rs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pub const NAME_MAX: usize = {
2+
#[cfg(target_os = "linux")] { 1024 }
3+
#[cfg(target_os = "freebsd")] { 255 }
4+
};

Diff for: tests/target/issue-4382.rs

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
pub const NAME_MAX: usize = {
2+
#[cfg(target_os = "linux")]
3+
{
4+
1024
5+
}
6+
#[cfg(target_os = "freebsd")]
7+
{
8+
255
9+
}
10+
};

0 commit comments

Comments
 (0)