Skip to content

Commit abcdb4b

Browse files
committed
Fix test fixtures
1 parent 8081a65 commit abcdb4b

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

crates/hir-ty/src/display.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ pub struct HirDisplayWrapper<'a, T> {
304304
pub enum ClosureStyle {
305305
/// `impl FnX(i32, i32) -> i32`, where `FnX` is the most special trait between `Fn`, `FnMut`, `FnOnce` that the
306306
/// closure implements. This is the default.
307+
// FIXME: Allow rendering non capturing closures as plain function pointers?
307308
ImplFn,
308309
/// `|i32, i32| -> i32`
309310
RANotation,

crates/ide/src/inlay_hints/closure_captures.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ fn main() {
121121
// ^ move
122122
// ^ (
123123
// ^ &foo
124-
// ^ ,
124+
// ^ , $
125125
// ^ bar
126-
// ^ ,
126+
// ^ , $
127127
// ^ baz
128-
// ^ ,
128+
// ^ , $
129129
// ^ qux
130130
// ^ )
131131
foo;
@@ -137,11 +137,11 @@ fn main() {
137137
// ^ move
138138
// ^ (
139139
// ^ &foo
140-
// ^ ,
140+
// ^ , $
141141
// ^ &bar
142-
// ^ ,
142+
// ^ , $
143143
// ^ &baz
144-
// ^ ,
144+
// ^ , $
145145
// ^ &qux
146146
// ^ )
147147
&foo;
@@ -161,7 +161,7 @@ fn main() {
161161
// ^ move
162162
// ^ (
163163
// ^ &mut baz
164-
// ^ ,
164+
// ^ , $
165165
// ^ &mut qux
166166
// ^ )
167167
baz = NonCopy;

0 commit comments

Comments
 (0)