diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2020-03-30 12:36:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-30 12:36:28 -0700 |
| commit | 5ca3d023ff6c970e7dcd6cee3c83672dff14dc15 (patch) | |
| tree | 2cc8d28e47d2d970c06829e3a5eb01ed48bde0ea /src/comment.rs | |
| parent | 9f53665f91be16c9aa7afd83f7c79357fec9152b (diff) | |
| parent | 9714a140c99a8968b0becb5cf9227b1787768088 (diff) | |
Merge pull request #4100 from calebcartwright/rustfmt1x-rustc-v650
bump rustfmt 1x to rustc-ap v651
Diffstat (limited to 'src/comment.rs')
| -rw-r--r-- | src/comment.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comment.rs b/src/comment.rs index 5b46001ff7d..518f2bcda0c 100644 --- a/src/comment.rs +++ b/src/comment.rs @@ -1556,10 +1556,10 @@ pub(crate) fn recover_comment_removed( // We missed some comments. Warn and keep the original text. if context.config.error_on_unformatted() { context.report.append( - context.source_map.span_to_filename(span).into(), + context.parse_sess.span_to_filename(span), vec![FormattingError::from_span( span, - &context.source_map, + &context.parse_sess, ErrorKind::LostComment, )], ); |
