Skip to content

Commit 232a5eb

Browse files
committed
test(fmt): Verify frontmatter is not stripped
1 parent 8270fb0 commit 232a5eb

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Diff for: src/tools/rustfmt/tests/source/frontmatter.rs

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
3+
--- identifier
4+
[dependencies]
5+
regex = "1"
6+
7+
---
8+
9+
#![feature(frontmatter)]
10+
11+
fn main() {}

Diff for: src/tools/rustfmt/tests/target/frontmatter.rs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
--- identifier
2+
[dependencies]
3+
regex = "1"
4+
5+
---
6+
7+
#![feature(frontmatter)]
8+
9+
fn main() {}

0 commit comments

Comments
 (0)