diff options
| author | bors <bors@rust-lang.org> | 2022-02-14 05:55:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-02-14 05:55:34 +0000 |
| commit | 083697014cae5e3ec922a1ce86b8b229e496bfe9 (patch) | |
| tree | 236e4922c775da0cac5ff9639c4bc2b452f97c13 /src/test/codegen/src-hash-algorithm | |
| parent | c37d6eed067eb6fb4c126b4ac3c09499483071ec (diff) | |
| parent | 78c2e0bfe98bc0490bd97a319104e2bd811c3c91 (diff) | |
| download | rust-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')
0 files changed, 0 insertions, 0 deletions
