]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #83392 - ehuss:w-help-edition, r=varkor
authorDylan DPC <dylan.dpc@gmail.com>
Wed, 24 Mar 2021 00:52:31 +0000 (01:52 +0100)
committerGitHub <noreply@github.com>
Wed, 24 Mar 2021 00:52:31 +0000 (01:52 +0100)
commit2b53ec3d1e2acc416b069278dd55169452037850
tree51a076bc72c44230eb1bd7806b81ab6d3c5e4440
parent30db261023d6b399ce3b16ce6345b5245a8800d2
parent45583e56c0d359e9113d64d8eed056863f7ba900
Rollup merge of #83392 - ehuss:w-help-edition, r=varkor

Change `-W help` to display edition level.

`-W help` was not honoring the `--edition` flag when displaying the default lint level. It was using the edition for sorting, but not for the final display.

This isn't important right now as there aren't any edition-specific lint levels. Also, the `declare_lint` macro is broken and doesn't even allow setting them right now. However, I figure it wouldn't hurt to fix this before I forget about it, in case edition-specific lints are ever used in the future.