about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-06-14 17:21:28 +0000
committerbors <bors@rust-lang.org>2021-06-14 17:21:28 +0000
commit304441960e7058fe97f09ef00b20739b4dc56d11 (patch)
tree2a8009738c6191dd38545b7511610b2ac3ea34f5 /src/test
parenta216131c3566858b78f45ccc0c36b5578f5c5155 (diff)
parent7905473021ee75338381d94d51a829c568ad4ae8 (diff)
downloadrust-304441960e7058fe97f09ef00b20739b4dc56d11.tar.gz
rust-304441960e7058fe97f09ef00b20739b4dc56d11.zip
Auto merge of #86117 - ehuss:force-warns-underscore, r=rylev
Fix force-warns to allow dashes.

The `--force-warns` flag was not allowing lint names with dashes, only supporting underscores.  This changes it to allow dashes to match the behavior of the A/W/D/F flags.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/ui/lint/force-warn/force-warn-group-allow-warning.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/lint/force-warn/force-warn-group-allow-warning.rs b/src/test/ui/lint/force-warn/force-warn-group-allow-warning.rs
index fd029a3d55c..d8a81d73afb 100644
--- a/src/test/ui/lint/force-warn/force-warn-group-allow-warning.rs
+++ b/src/test/ui/lint/force-warn/force-warn-group-allow-warning.rs
@@ -1,4 +1,4 @@
-// compile-flags: --force-warns rust_2018_idioms -Zunstable-options
+// compile-flags: --force-warns rust-2018-idioms -Zunstable-options
 // check-pass
 
 #![allow(bare_trait_objects)]