Skip to content

Commit 7d296bd

Browse files
committed
Add test cases for issue 4381
This was one of the original issues filed against rustfmt that discussed using a natural sort order instead of a lexicographical order. At the time it was closed, but now that we're supporting version-sorting in `style_edition=2024` I thought it would be good to add a test case.
1 parent 24e9022 commit 7d296bd

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// rustfmt-style_edition: 2015
2+
3+
use std::num::{NonZeroU8, NonZeroU16, NonZeroU32, NonZeroU64};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// rustfmt-style_edition: 2024
2+
3+
use std::num::{NonZeroU16, NonZeroU8, NonZeroU32, NonZeroU64};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// rustfmt-style_edition: 2015
2+
3+
use std::num::{NonZeroU16, NonZeroU32, NonZeroU64, NonZeroU8};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// rustfmt-style_edition: 2024
2+
3+
use std::num::{NonZeroU8, NonZeroU16, NonZeroU32, NonZeroU64};

0 commit comments

Comments
 (0)