Skip to content

Commit 76e67e7

Browse files
authored
Unrolled build for #145766
Rollup merge of #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 (#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: #136889
2 parents ace9a74 + b51a8ed commit 76e67e7

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)