Skip to content

Commit 094f09e

Browse files
authored
Rollup merge of #102216 - ehuss:rustdoc-diagnostic-width, r=notriddle
rustdoc: Stabilize --diagnostic-width This stabilizes the `--diagnostic-width` flag for rustdoc. This flag was stabilized in rustc in #95635, but it isn't clear from the discussion there why it wasn't stabilized in rustdoc. I believe this flag works as expected, following the same behavior as rustc. I'd like to stabilize this so that the same support can be stabilized in cargo, and it would help simplify things if both rustc and rustdoc supported it.
2 parents 11b4510 + 3d01d43 commit 094f09e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/librustdoc/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ fn opts() -> Vec<RustcOptGroup> {
461461
"human|json|short",
462462
)
463463
}),
464-
unstable("diagnostic-width", |o| {
464+
stable("diagnostic-width", |o| {
465465
o.optopt(
466466
"",
467467
"diagnostic-width",

Diff for: src/test/rustdoc-ui/diagnostic-width.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Zunstable-options --diagnostic-width=10
1+
// compile-flags: --diagnostic-width=10
22
#![deny(rustdoc::bare_urls)]
33

44
/// This is a long line that contains a http://link.com

0 commit comments

Comments
 (0)