about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorhafeoz <95505675+hafeoz@users.noreply.github.com>2022-05-26 22:54:31 +0100
committerGitHub <noreply@github.com>2022-05-26 22:54:31 +0100
commitd61ab20ff0392a49599b7383ab8845db94de1f7e (patch)
tree9412f79fc4e5d9a2792ae10feccc9643f8bc2e41 /src
parent1851f0802e148bb7fa0bfd7dabcb7397bf371b0b (diff)
downloadrust-d61ab20ff0392a49599b7383ab8845db94de1f7e.tar.gz
rust-d61ab20ff0392a49599b7383ab8845db94de1f7e.zip
Use correct var for attribute completeness fn
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/doctest.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/doctest.rs b/src/librustdoc/doctest.rs
index a4ec4052e05..014147a47e4 100644
--- a/src/librustdoc/doctest.rs
+++ b/src/librustdoc/doctest.rs
@@ -795,7 +795,7 @@ fn partition_source(s: &str, edition: Edition) -> (String, String, String) {
                         // If not, then we append the new line into the pending attribute to check
                         // if this time it's complete...
                         mod_attr_pending.push_str(line);
-                        if !trimline.is_empty() && check_if_attr_is_complete(line, edition) {
+                        if !trimline.is_empty() && check_if_attr_is_complete(&mod_attr_pending, edition) {
                             // If it's complete, then we can clear the pending content.
                             mod_attr_pending.clear();
                         }