about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-02-14 05:55:34 +0000
committerbors <bors@rust-lang.org>2022-02-14 05:55:34 +0000
commit083697014cae5e3ec922a1ce86b8b229e496bfe9 (patch)
tree236e4922c775da0cac5ff9639c4bc2b452f97c13 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parentc37d6eed067eb6fb4c126b4ac3c09499483071ec (diff)
parent78c2e0bfe98bc0490bd97a319104e2bd811c3c91 (diff)
downloadrust-083697014cae5e3ec922a1ce86b8b229e496bfe9.tar.gz
rust-083697014cae5e3ec922a1ce86b8b229e496bfe9.zip
Auto merge of #8429 - nsunderland1:master, r=llogiq
Document `pub` requirement for `new_without_default` lint

fixes #8415

Also adds some UI tests that ensure that `pub` is required on both the struct _and_ the field. The only thing I'm not sure about is that the lint actually [checks](https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/new_without_default.rs#L102) if `new` is _reachable_, not _public_. To the best of my understanding, both the struct and the method need to be public for the method to be reachable for external crates (I certainly didn't manage to craft a counterexample).

changelog: Document `pub` requirement for ``[`new_without_default`]`` lint.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions