Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
14e59bb317c3c901bce83deb16ee9bfa5cc90e28
rust/tests/ui/macros/malformed_macro_lhs.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
116 B
Rust
Raw Normal View History

Add test for "malformed macro lhs" and change back span_bug to span_fatal
2016-01-04 01:11:54 +01:00
macro_rules! my_precioooous {
Add `syntax::ext::tt::quoted::{TokenTree, ..}` and remove `tokenstream::TokenTree::Sequence`.
2017-01-29 08:38:44 +00:00
t => (1); //~ ERROR invalid macro matcher
Add test for "malformed macro lhs" and change back span_bug to span_fatal
2016-01-04 01:11:54 +01:00
}
fn main() {
Reject a LHS formed of a single sequence TT during `macro_rules!` checking. This was already rejected during expansion. Encountering malformed LHS or RHS during expansion is now considered a bug.
2016-05-17 17:39:11 +02:00
my_precioooous!();
Add test for "malformed macro lhs" and change back span_bug to span_fatal
2016-01-04 01:11:54 +01:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3697ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API