]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #66238 - ehuss:stabilize-rustdoc-edition, r=GuillaumeGomez
authorbors <bors@rust-lang.org>
Mon, 18 Nov 2019 03:06:42 +0000 (03:06 +0000)
committerbors <bors@rust-lang.org>
Mon, 18 Nov 2019 03:06:42 +0000 (03:06 +0000)
commitd67ca28354091f4597b03efef2aebb4b6b55e92e
treed2aa966834a60dc5993e1f7d0acff0fa18f40a78
parent361791bb5fdd714bdc39f8af835f6468dd18331d
parent1907589fbb87e63b2c93808f485f021d2cc81ca5
Auto merge of #66238 - ehuss:stabilize-rustdoc-edition, r=GuillaumeGomez

rustdoc: Stabilize `edition` annotation.

The rustdoc `edition` annotation is currently ignored on stable. This means that the tests will be ignored, unless there is a `rust` annotation, then it will use the global edition. I suspect this was just an oversight during the edition stabilization, but I don't know. Example:

```rust
/// ```edition2018
/// // This code block was ignored on stable.
/// ```

/// ```rust,edition2018
/// // This code block would use whatever edition is passed on the command line.
/// ```
```

AFAIK, it is not possible to write a test that verifies stable behavior, as all tests appear to set RUSTC_BOOTSTRAP which forces all tests to run as "nightly", even on a stable release.

Closes #65980