about summary refs log tree commit diff
path: root/src/librustdoc/html/static/source-script.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-01-16 15:01:20 +0000
committerbors <bors@rust-lang.org>2019-01-16 15:01:20 +0000
commitceb2512144d1fc26330e85fb9d41c22ba1866259 (patch)
tree698f2e468d5964e3e7368af3c48e706d035df6da /src/librustdoc/html/static/source-script.js
parentcccaf9a8c69219c8267e406f92fef895fbba80f2 (diff)
parentd3411d3ee8a350e2b8ec202a4a493e69c827245c (diff)
downloadrust-ceb2512144d1fc26330e85fb9d41c22ba1866259.tar.gz
rust-ceb2512144d1fc26330e85fb9d41c22ba1866259.zip
Auto merge of #57321 - petrochenkov:atokens, r=nikomatsakis
Implement basic input validation for built-in attributes

Correct top-level shape (`#[attr]` vs `#[attr(...)]` vs `#[attr = ...]`) is enforced for built-in attributes, built-in attributes must also fit into the "meta-item" syntax (aka the "classic attribute syntax").

For some subset of attributes (found by crater run), errors are lowered to deprecation warnings.

NOTE: This PR previously included https://github.com/rust-lang/rust/pull/57367 as well.
Diffstat (limited to 'src/librustdoc/html/static/source-script.js')
0 files changed, 0 insertions, 0 deletions