Allow unused rules in the testsuite where the lint triggers
This commit is contained in:
parent
d76a9394ba
commit
3989f02301
11 changed files with 14 additions and 3 deletions
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#![feature(const_float_bits_conv)]
|
||||
#![feature(const_float_classify)]
|
||||
#![allow(unused_macro_rules)]
|
||||
|
||||
// Don't promote
|
||||
const fn nop<T>(x: T) -> T { x }
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
// run-pass
|
||||
#![allow(unused_macro_rules)]
|
||||
|
||||
/// A compile-time map from identifiers to arbitrary (heterogeneous) expressions
|
||||
macro_rules! ident_map {
|
||||
( $name:ident = { $($key:ident => $e:expr,)* } ) => {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// run-pass
|
||||
|
||||
#[allow(unused_macro_rules)]
|
||||
macro_rules! a {
|
||||
($i:literal) => { "right" };
|
||||
($i:tt) => { "wrong" };
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
// run-pass
|
||||
#![allow(unused_macro_rules)]
|
||||
|
||||
//{{{ issue 40569 ==============================================================
|
||||
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ macro_rules! only_expr {
|
|||
};
|
||||
}
|
||||
|
||||
#[allow(unused_macro_rules)]
|
||||
macro_rules! mtester_dbg {
|
||||
($l:literal) => {
|
||||
&format!("macro caught literal: {:?}", $l)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
// run-pass
|
||||
#![allow(dead_code, unused_imports)]
|
||||
#![allow(dead_code, unused_imports, unused_macro_rules)]
|
||||
#![feature(crate_visibility_modifier)]
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
// run-pass
|
||||
#![allow(unused_macro_rules)]
|
||||
|
||||
macro_rules! m {
|
||||
($e:expr) => {
|
||||
"expr includes attr"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
// run-pass
|
||||
#![allow(unused_macro_rules)]
|
||||
|
||||
use std::ops::*;
|
||||
|
||||
#[derive(Copy, Clone, Debug, Eq, Ord, PartialEq, PartialOrd)]
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
// Test that failing macro matchers will not cause pre-expansion errors
|
||||
// even though they use a feature that is pre-expansion gated.
|
||||
|
||||
#[allow(unused_macro_rules)]
|
||||
macro_rules! m {
|
||||
($e:expr) => { 0 }; // This fails on the input below due to `, foo`.
|
||||
($e:expr,) => { 1 }; // This also fails to match due to `foo`.
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#![allow(dead_code, unused_variables, non_camel_case_types, non_upper_case_globals)]
|
||||
#![allow(dead_code, unused_variables, unused_macro_rules, bad_style)]
|
||||
#![deny(keyword_idents)]
|
||||
|
||||
// edition:2015
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#![allow(dead_code, unused_variables, non_camel_case_types, non_upper_case_globals)]
|
||||
#![allow(dead_code, unused_variables, unused_macro_rules, bad_style)]
|
||||
#![deny(keyword_idents)]
|
||||
|
||||
// edition:2015
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue