Skip to content

Commit 996ec49

Browse files
authored
Rollup merge of rust-lang#145766 - epage:rustfmt, r=calebcartwright
test(rustfmt): Verify frontmatter is preserved This is to prove that the frontmatter is preserved. The choices in tests is intended for showing the different parts of the proposed Style Guide for frontmatters (rust-lang#145617). While rustfmt is developed in a different repo, work involving upstream integration is blocked on some work that is being finished up in that repo. I was told that it would be ok to post against this repo in the mean time. Tracking issue: rust-lang#136889
2 parents 68eccf0 + b51a8ed commit 996ec49

File tree

6 files changed

+74
-0
lines changed

6 files changed

+74
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env cargo
2+
---identifier
3+
[dependencies]
4+
regex = "1"
5+
---
6+
#![feature(frontmatter)]
7+
8+
fn main() {}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env cargo
2+
------------
3+
package.description = """
4+
Header
5+
-----
6+
7+
Body
8+
"""
9+
------------
10+
11+
#![feature(frontmatter)]
12+
13+
fn main() {}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env cargo
2+
3+
4+
--- identifier
5+
[dependencies]
6+
regex = "1"
7+
8+
---
9+
10+
11+
12+
13+
14+
#![feature(frontmatter)]
15+
16+
fn main() {}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env cargo
2+
---identifier
3+
[dependencies]
4+
regex = "1"
5+
---
6+
#![feature(frontmatter)]
7+
8+
fn main() {}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env cargo
2+
------------
3+
package.description = """
4+
Header
5+
-----
6+
7+
Body
8+
"""
9+
------------
10+
11+
#![feature(frontmatter)]
12+
13+
fn main() {}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env cargo
2+
3+
4+
--- identifier
5+
[dependencies]
6+
regex = "1"
7+
8+
---
9+
10+
11+
12+
13+
14+
#![feature(frontmatter)]
15+
16+
fn main() {}

0 commit comments

Comments
 (0)