Skip to content

Commit aa8a53f

Browse files
refactor: switch idempotence/system tests to style_edition
Updates all the various files utilized in the system and idempotence tests to directly use the corresponding 'style_edition' configuration as opposed to keeping the original 'version' values and relying on the mapping.
1 parent e04e411 commit aa8a53f

File tree

97 files changed

+97
-97
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+97
-97
lines changed

tests/config/issue-5801-v2.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
max_width = 120
22
version = "Two"
3-
attr_fn_like_width = 120
3+
attr_fn_like_width = 120

tests/source/arrow_in_comments/arrow_in_single_comment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// rustfmt-version: Two
1+
// rustfmt-style_edition: 2024
22
fn main() {
33
match a {
44
_ =>

tests/source/arrow_in_comments/multiple_arrows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// rustfmt-version: Two
1+
// rustfmt-style_edition: 2024
22
fn main() {
33
match a {
44
_ => // comment with =>

tests/source/configs/indent_style/block_trailing_comma_call/one.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// rustfmt-version: One
1+
// rustfmt-style_edition: 2015
22
// rustfmt-error_on_line_overflow: false
33
// rustfmt-indent_style: Block
44

tests/source/configs/indent_style/block_trailing_comma_call/two.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// rustfmt-version: Two
1+
// rustfmt-style_edition: 2024
22
// rustfmt-error_on_line_overflow: false
33
// rustfmt-indent_style: Block
44

tests/source/fn-single-line/version_one.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// rustfmt-fn_single_line: true
2-
// rustfmt-version: One
2+
// rustfmt-style_edition: 2015
33
// Test single-line functions.
44

55
fn foo_expr() {

tests/source/fn-single-line/version_two.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// rustfmt-fn_single_line: true
2-
// rustfmt-version: Two
2+
// rustfmt-style_edition: 2024
33
// Test single-line functions.
44

55
fn foo_expr() {

tests/source/issue-2179/one.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// rustfmt-version: One
1+
// rustfmt-style_edition: 2015
22
// rustfmt-error_on_line_overflow: false
33

44
fn issue_2179() {

tests/source/issue-2179/two.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// rustfmt-version: Two
1+
// rustfmt-style_edition: 2024
22
// rustfmt-error_on_line_overflow: false
33

44
fn issue_2179() {

tests/source/issue-3213/version_one.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// rustfmt-version: One
1+
// rustfmt-style_edition: 2015
22

33
fn foo() {
44
match 0 {

0 commit comments

Comments
 (0)