about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-06-07 20:14:28 +0200
committerGitHub <noreply@github.com>2024-06-07 20:14:28 +0200
commit13314df21b0bb0cdd02c6760581d1b9f1052fa7e (patch)
tree77e1dd9341c9a528f6d5d6cceb954bc8c91ee682 /compiler/rustc_parse/src
parent6e534c73c35f569492ed5fb5f349075d58ed8b7e (diff)
parent35130d7233e939cc9a6fd8b72a4baee2eb59c3b2 (diff)
downloadrust-13314df21b0bb0cdd02c6760581d1b9f1052fa7e.tar.gz
rust-13314df21b0bb0cdd02c6760581d1b9f1052fa7e.zip
Rollup merge of #125572 - mu001999-contrib:dead/enhance, r=pnkfelix
Detect pub structs never constructed and unused associated constants

<!--
If this PR is related to an unstable feature or an otherwise tracked effort,
please link to the relevant tracking issue here. If you don't know of a related
tracking issue or there are none, feel free to ignore this.

This PR will get automatically assigned to a reviewer. In case you would like
a specific user to review your work, you can assign it to them by using

    r​? <reviewer name>
-->

Lints never constructed public structs.

If we don't provide public methods to construct public structs with private fields, and don't construct them in the local crate. They would be never constructed. So that we can detect such public structs.

---
Update:

Also lints unused associated constants in traits.
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions