]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/clippy_lints/src/tabs_in_doc_comments.rs
Add 'library/portable-simd/' from commit '1ce1c645cf27c4acdefe6ec8a11d1f0491954a99'
[rust.git] / src / tools / clippy / clippy_lints / src / tabs_in_doc_comments.rs
index 6a73b94d87e488ec6feaaa24f2d0119a637438a9..4a67cabf323a6a1489f84d485bce350acc98a8cf 100644 (file)
@@ -69,6 +69,7 @@ fn warn_if_tabs_in_doc(cx: &EarlyContext<'_>, attr: &ast::Attribute) {
                     attr.span.lo() + BytePos(3 + lo),
                     attr.span.lo() + BytePos(3 + hi),
                     attr.span.ctxt(),
+                    attr.span.parent(),
                 );
                 span_lint_and_sugg(
                     cx,