We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34a5ea9 commit 3a34ad7Copy full SHA for 3a34ad7
src/tools/compiletest/src/runtest.rs
@@ -1713,6 +1713,12 @@ impl<'test> TestCx<'test> {
1713
// Allow tests to use internal features.
1714
rustc.args(&["-A", "internal_features"]);
1715
1716
+ // Allow tests to have unused parens and braces.
1717
+ // Add #![deny(unused_parens, unused_braces)] to the test file if you want to
1718
+ // test that these lints are working.
1719
+ rustc.args(&["-A", "unused_parens"]);
1720
+ rustc.args(&["-A", "unused_braces"]);
1721
+
1722
if self.props.force_host {
1723
self.maybe_add_external_args(&mut rustc, &self.config.host_rustcflags);
1724
if !is_rustdoc {
0 commit comments