We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 268716b commit 2707103Copy full SHA for 2707103
src/items.rs
@@ -3244,7 +3244,7 @@ fn format_generics(
3244
if brace_pos == BracePos::None {
3245
span.hi()
3246
} else {
3247
- context.snippet_provider.span_before(span, "{")
+ context.snippet_provider.span_before_last(span, "{")
3248
},
3249
),
3250
shape,
tests/source/issue-5935.rs
@@ -0,0 +1,9 @@
1
+struct Regs<
2
+ const BEGIN: u64,
3
+ const END: u64,
4
+ const DIM: usize,
5
+ const N: usize = { (END - BEGIN) as usize / (8 * DIM) + 1 },
6
+>
7
+{
8
+ _foo: u64,
9
+}
tests/target/issue-5935.rs
@@ -0,0 +1,8 @@
+> {
0 commit comments