about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2024-02-20 15:13:53 +0100
committerGitHub <noreply@github.com>2024-02-20 15:13:53 +0100
commitbc7489c546e3c9658ef4ff936dbf9dc3f9e33f1e (patch)
treec60ea3eca922d2ce8b54405b129f20f2824fe76c /compiler/rustc_pattern_analysis/src
parentc5d2159decaca7de690fbab85849b548b9c3775a (diff)
parent42c4df01a8b498c56bf762c2307fb4a3c55293fe (diff)
downloadrust-bc7489c546e3c9658ef4ff936dbf9dc3f9e33f1e.tar.gz
rust-bc7489c546e3c9658ef4ff936dbf9dc3f9e33f1e.zip
Rollup merge of #121286 - gurry:constprop-lint-rename, r=oli-obk
Rename `ConstPropLint` to `KnownPanicsLint`

`OverflowLint` is a clearer name because it communicates what the lint does instead of the underlying mechanism it uses (const propagation) which should be of secondary concern.

`OverflowLint` isn't the most accurate name because the lint looks for other errors as well such as division by zero not just overflows, but I couldn't think of another equally succinct name.

As a part of this change. I've also added/updated some of the comments.

cc ```@RalfJung``` ```@oli-obk``` for visibility in case you go looking for the lint using the old name.

Edit:

Changed the name from `OverflowLint` to `KnownPanicsLint`
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions