about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-05-05 17:11:14 +0000
committerbors <bors@rust-lang.org>2021-05-05 17:11:14 +0000
commitf35345df91a87fa5f0c0e91aca42b4991e0d4e18 (patch)
treedb5fd3d1c466b9718e2b3274face78210385acae /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parent0baf6bf226062b52e9f13cb36190bd332fbd4dce (diff)
parente0eb29c936602553f7952a4d12c7d193bc3a7513 (diff)
downloadrust-f35345df91a87fa5f0c0e91aca42b4991e0d4e18.tar.gz
rust-f35345df91a87fa5f0c0e91aca42b4991e0d4e18.zip
Auto merge of #6887 - xFrednet:4310-internal-metadata-extraction-lint, r=xFrednet
A metadata collection monster

This PR introduces a metadata collection lint as discussed in #4310. It currently collects:
* The lint ID
* The lint declaration file and location (for #1303)
* The lint group
* The documentation
* The applicability (if resolvable)
* If the suggestion is a multi-part-suggestion

This data has a slightly different structure than the current [lints.json](https://github.com/rust-lang/rust-clippy/blob/gh-pages/master/lints.json) and doesn't include depreciated lints yet. I plan to adapt the website to the new format and include depreciated lints in a follow-up PR :). The current collected json looks like this: [metadata_collection.json](https://gist.github.com/xFrednet/6b9e2c3f725f476ba88db9563f67e119)

The entire implementation is guarded behind the `metadata-collector-lint` feature and the `ENABLE_METADATA_COLLECTION` environment value to prevent default collection. You can test the implementation via:
```sh
$ ENABLE_METADATA_COLLECTION=1 cargo test --test dogfood --all-features
```

changelog: none

---

The size of this PR sadly also grew into a small monster, sorry! I definitely plan to improve on this! And it's totally okay if you take your time with this :)

r? `@phansch`
cc: `@flip1995`
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions