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