about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-05-24 14:46:20 +0000
committerbors <bors@rust-lang.org>2023-05-24 14:46:20 +0000
commitb6284f05b96ed3586a1766da8235f1146e2fb435 (patch)
tree03e22861e67e8f1184341f0ba22032a45ee07b5d /tests/rustdoc-js-std/parser-errors.js
parent5187e92223e7deebd48c50ae59d45def62941fce (diff)
parentc70f2a2e50a44aa2c09b2179d6182588efb6804f (diff)
downloadrust-b6284f05b96ed3586a1766da8235f1146e2fb435.tar.gz
rust-b6284f05b96ed3586a1766da8235f1146e2fb435.zip
Auto merge of #10817 - y21:validate-lint-name, r=flip1995
validate lint name in `clippy_dev`

This PR adds a little bit of validation to `cargo dev new_lint`. I've had it happen a few times where I wanted to add a new lint, but forgot that lint names cannot contain `-`. If you try to do it anyway, `clippy_dev` will generate illegal syntax (like adding `mod test-lint;` to clippy_lints/src/lib.rs for the module declaration). Maybe having it error out early would be helpful to others too.

changelog: none
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions