Use correct span

This commit is contained in:
Jeremy Stucki 2019-08-13 21:50:42 +02:00
parent 6a263c0816
commit d578c43c51
No known key found for this signature in database
GPG Key ID: 8F548A5A2ED13F58

View File

@ -2180,7 +2180,7 @@ fn lint_flat_map_identity<'a, 'tcx>(
span_lint_and_sugg(
cx,
FLAT_MAP_IDENTITY,
*span,
span.with_hi(expr.span.hi()),
message,
"try",
"flatten()".to_string(),