about summary refs log tree commit diff
path: root/src/test/ui
diff options
context:
space:
mode:
authorNicolas Koch <nioko1337@gmail.com>2018-05-15 15:26:11 +0200
committerNicolas Koch <nioko1337@gmail.com>2018-05-15 15:26:11 +0200
commitb4b71d5d5fd8bedecbacf08ffb45c8456700151b (patch)
tree2ada477250001a23bc2d5329ca572e15b7bf23d7 /src/test/ui
parent834ef9f08ae3429a05dead80237bb4bd04769895 (diff)
parenteca0da59850d4a9eef17c0e6c3795397102d88a3 (diff)
downloadrust-b4b71d5d5fd8bedecbacf08ffb45c8456700151b.tar.gz
rust-b4b71d5d5fd8bedecbacf08ffb45c8456700151b.zip
Merge branch 'master' of https://github.com/nicokoch/rust
Diffstat (limited to 'src/test/ui')
-rw-r--r--src/test/ui/feature-gate-macro-lifetime-matcher.rs19
-rw-r--r--src/test/ui/feature-gate-macro-lifetime-matcher.stderr11
-rw-r--r--src/test/ui/macros/nonterminal-matching.rs2
3 files changed, 1 insertions, 31 deletions
diff --git a/src/test/ui/feature-gate-macro-lifetime-matcher.rs b/src/test/ui/feature-gate-macro-lifetime-matcher.rs
deleted file mode 100644
index 0d107d283cd..00000000000
--- a/src/test/ui/feature-gate-macro-lifetime-matcher.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-// Test that the :lifetime macro fragment cannot be used when macro_lifetime_matcher
-// feature gate is not used.
-
-macro_rules! m { ($lt:lifetime) => {} }
-//~^ ERROR :lifetime fragment specifier is experimental and subject to change
-
-fn main() {
-    m!('a);
-}
diff --git a/src/test/ui/feature-gate-macro-lifetime-matcher.stderr b/src/test/ui/feature-gate-macro-lifetime-matcher.stderr
deleted file mode 100644
index b7805f6f5fb..00000000000
--- a/src/test/ui/feature-gate-macro-lifetime-matcher.stderr
+++ /dev/null
@@ -1,11 +0,0 @@
-error[E0658]: :lifetime fragment specifier is experimental and subject to change (see issue #46895)
-  --> $DIR/feature-gate-macro-lifetime-matcher.rs:14:19
-   |
-LL | macro_rules! m { ($lt:lifetime) => {} }
-   |                   ^^^^^^^^^^^^
-   |
-   = help: add #![feature(macro_lifetime_matcher)] to the crate attributes to enable
-
-error: aborting due to previous error
-
-For more information about this error, try `rustc --explain E0658`.
diff --git a/src/test/ui/macros/nonterminal-matching.rs b/src/test/ui/macros/nonterminal-matching.rs
index 4dcb8afa94e..54d280a63e7 100644
--- a/src/test/ui/macros/nonterminal-matching.rs
+++ b/src/test/ui/macros/nonterminal-matching.rs
@@ -11,7 +11,7 @@
 // Check that we are refusing to match on complex nonterminals for which tokens are
 // unavailable and we'd have to go through AST comparisons.
 
-#![feature(decl_macro, macro_lifetime_matcher)]
+#![feature(decl_macro)]
 
 macro simple_nonterminal($nt_ident: ident, $nt_lifetime: lifetime, $nt_tt: tt) {
     macro n(a $nt_ident b $nt_lifetime c $nt_tt d) {