Skip to content

Commit 632e759

Browse files
committed
Add FIXME about FileName check's fragility
1 parent dbc7327 commit 632e759

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_hir_typeck/src/method/suggest.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2547,6 +2547,8 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
25472547
"you must specify a type for this binding, like `{concrete_type}`",
25482548
);
25492549

2550+
// FIXME: Maybe FileName::Anon should also be handled,
2551+
// otherwise there would be no suggestion if the source is STDIN for example.
25502552
match (filename, parent_node) {
25512553
(
25522554
FileName::Real(_),

0 commit comments

Comments
 (0)