about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2021-02-24 16:16:49 -0500
committerJoshua Nelson <jyn514@gmail.com>2021-04-06 18:41:17 -0400
commitffd7094f1d0f0a619b6d40d7f4705cbb04005e20 (patch)
treee86054db1490582ffe5cad1c01d4729be6d5658b /library/std/src/sys/unix/stack_overflow.rs
parent16143d10679537d3fde4247e15334e78ad9d55b9 (diff)
downloadrust-ffd7094f1d0f0a619b6d40d7f4705cbb04005e20.tar.gz
rust-ffd7094f1d0f0a619b6d40d7f4705cbb04005e20.zip
Fix handling of `--output-format json` flag
- Don't treat it as deprecated on stable and beta channels. Before, it
  would give confusing and incorrect output:

  ```
  warning: the 'output-format' flag is considered deprecated
    |
    = warning: see issue #44136 <https://github.com/rust-lang/rust/issues/44136> for more information

  error: json output format isn't supported for doc generation
  ```
  Both of those are wrong: output-format isn't deprecated, and json
  output is supported.

- Require -Z unstable-options for `--output-format json`

  Previously, it was allowed by default on nightly, which made it hard
  to realize the flag wouldn't be accepted on beta or stable.
  Note that this still allows `--output-format html`, which has been
  stable since 1.0.

- Remove unnecessary double-checking of the feature gate when parsing
  the output format
- Add custom run-make test since compiletest passes -Zunstable-options
    by default
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions