diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-11-04 14:28:35 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-11-04 14:28:35 +0100 |
| commit | e9161db5b55ee5398e10a6806cb62d67e725278c (patch) | |
| tree | 773428a65612e7aecbe80ed6f008c7839e40802f /src/librustdoc/visit_ast.rs | |
| parent | ca87b535a05097df6abbe2a031b057de2cefac5b (diff) | |
| download | rust-e9161db5b55ee5398e10a6806cb62d67e725278c.tar.gz rust-e9161db5b55ee5398e10a6806cb62d67e725278c.zip | |
Fix invalid coverage computation when `--output-format=json` is enabled
Diffstat (limited to 'src/librustdoc/visit_ast.rs')
| -rw-r--r-- | src/librustdoc/visit_ast.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/visit_ast.rs b/src/librustdoc/visit_ast.rs index f789aca7378..00f5251596b 100644 --- a/src/librustdoc/visit_ast.rs +++ b/src/librustdoc/visit_ast.rs @@ -235,7 +235,7 @@ impl<'a, 'tcx> RustdocVisitor<'a, 'tcx> { return false; } - if self.cx.output_format.is_json() { + if self.cx.is_json() { return false; } |
