diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-07-20 03:14:11 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-07-24 12:29:45 +0300 |
| commit | 6e4f16173c331ca3ccae1ffecc5a69f1ad54f30c (patch) | |
| tree | 684e3e9da343d0dab6191e765935392d516ce692 /src/libsyntax | |
| parent | bf8fc8adfc76f31a8fb6a4cb0dee02f262bd766a (diff) | |
| download | rust-6e4f16173c331ca3ccae1ffecc5a69f1ad54f30c.tar.gz rust-6e4f16173c331ca3ccae1ffecc5a69f1ad54f30c.zip | |
Demote template check error to a lint for `#[test]` and `#[bench]`
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/attr/builtin.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax/attr/builtin.rs b/src/libsyntax/attr/builtin.rs index 71309441652..dbf31ad0148 100644 --- a/src/libsyntax/attr/builtin.rs +++ b/src/libsyntax/attr/builtin.rs @@ -942,7 +942,8 @@ crate fn check_builtin_attribute( // Some of previously accepted forms were used in practice, // report them as warnings for now. let should_warn = |name| name == sym::doc || name == sym::ignore || - name == sym::inline || name == sym::link; + name == sym::inline || name == sym::link || + name == sym::test || name == sym::bench; match attr.parse_meta(sess) { Ok(meta) => if !should_skip(name) && !template.compatible(&meta.node) { |
