about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorJacob Pratt <jacob@jhpratt.dev>2025-03-07 21:57:52 -0500
committerGitHub <noreply@github.com>2025-03-07 21:57:52 -0500
commita29e3af87d987000b9d8b9c72750aeca0df352c7 (patch)
treea4994485b24e94676de21af6dba931de86218925 /compiler/rustc_errors/src
parentf1051ed6f105e73a7fff34a472ced9cf19c93f96 (diff)
parente07d9a8200bc37e3cd816386d35931f9f02e9464 (diff)
downloadrust-a29e3af87d987000b9d8b9c72750aeca0df352c7.tar.gz
rust-a29e3af87d987000b9d8b9c72750aeca0df352c7.zip
Rollup merge of #138033 - obi1kenobi:pg/json-attrs-tests, r=aDotInTheVoid
rustdoc: Add attribute-related tests for rustdoc JSON.

Add rustdoc JSON tests covering the use of the following attributes:
- `#[non_exhaustive]` applied to enums, variants, and structs
- `#[must_use]`, both with and without a message
- `#[no_mangle]`, in both edition 2021 and 2024 (`#[unsafe(no_mangle)]`) flavors
- `#[export_name]`, also in both edition 2021 and 2024 flavors

Related to #137645; this is a subset of the attributes that `cargo-semver-checks` relies on and tests in its own test suite or in the test suites of its components such as `trustfall-rustdoc-adapter`.

Helps with #81359

r? `@aDotInTheVoid`
Diffstat (limited to 'compiler/rustc_errors/src')
0 files changed, 0 insertions, 0 deletions