about summary refs log tree commit diff
path: root/tests/coverage/branch/lazy-boolean.coverage
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2024-12-02 17:36:04 +0100
committerGitHub <noreply@github.com>2024-12-02 17:36:04 +0100
commit08f1f286997221d28cf42e8275bd675202f9897c (patch)
treece27a38e3cd80c5293222e3a1952c7fc5cb300c7 /tests/coverage/branch/lazy-boolean.coverage
parent7dd0c8314d16787165699fb1556ecee63b5fff46 (diff)
parentf33dba028704d108497b8c06943b9bbc3d14c42b (diff)
downloadrust-08f1f286997221d28cf42e8275bd675202f9897c.tar.gz
rust-08f1f286997221d28cf42e8275bd675202f9897c.zip
Rollup merge of #133715 - aDotInTheVoid:rdj-static, r=GuillaumeGomez
rustdoc-json: Include safety of `static`s

`static`s in an `extern` block can have an associated safety annotation ["because there is nothing guaranteeing that the bit pattern at the static’s memory is valid for the type it is declared with"](https://doc.rust-lang.org/reference/items/external-blocks.html#statics). Rustdoc already knows this and displays in for HTML. This PR also includes it in JSON.

Inspired by https://github.com/obi1kenobi/cargo-semver-checks/issues/975 which needs this, but it's probably useful in other places.

r? `@GuillaumeGomez.` Possibly easier to review commit-by-commit.
Diffstat (limited to 'tests/coverage/branch/lazy-boolean.coverage')
0 files changed, 0 insertions, 0 deletions