about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-02-03 13:03:41 +0000
committerbors <bors@rust-lang.org>2019-02-03 13:03:41 +0000
commit273b7f7f46e38d254e7163c974dde2008ba00440 (patch)
treeef559264664f3cf34ea866b5e07dd67fda7a4ed5 /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
parent3bda548f81bc268a2e9813ce9168d2e40e8a11bd (diff)
parent83d620b8246094ff54c90888f53015b1ef5a2bf8 (diff)
downloadrust-273b7f7f46e38d254e7163c974dde2008ba00440.tar.gz
rust-273b7f7f46e38d254e7163c974dde2008ba00440.zip
Auto merge of #3723 - rhysd:issue3721, r=oli-obk
Implement dbg_macro rule

Fixes  #3721

This patch adds new `dbg_macro` rule to check `dbg!` macro use.

Since this is my first patch to clippy, I'm not confident about following points:

- ~~Currently only checks `dbg!` span. Is it possible to check if the `dbg!` macro is provided by standard library or user-defined? If it's possible, I can make the check more strict.~~ Resolved as https://github.com/rust-lang/rust-clippy/pull/3723#discussion_r252417934
- ~~Is category `style` correct for this rule?~~'restriction' is used instead
- ~~Should I use `span_lint_and_sugg` instead of `span_lint`? Currently entire message is put as `msg`.  But later part `ensure to avoid having uses of it in version control` may be put as suggestion.~~ Done
- I'm not native English speaker. The message and doc may not be natural as English.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions