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

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

8 lines
122 B
Rust
Raw Normal View History

Print the macro context name on incomplete parse Fixes #22425 Also fixes #30007, since it's just a change from `true` to `false`.
2015-11-23 21:06:51 +01:00
macro_rules! t {
Tweak `expand_incomplete_parse` warning. By using `token_descr`, as is done for many other errors, we can get slightly better descriptions in error messages, e.g. "macro expansion ignores token `let` and any following" becomes "macro expansion ignores keyword `let` and any tokens following". This will be more important once invisible delimiters start being mentioned in error messages -- without this commit, that leads to error messages such as "error at ``" because invisible delimiters are pretty printed as an empty string.
2024-04-17 17:08:58 +10:00
() => ( String ; ); //~ ERROR macro expansion ignores `;`
Print the macro context name on incomplete parse Fixes #22425 Also fixes #30007, since it's just a change from `true` to `false`.
2015-11-23 21:06:51 +01:00
}
fn main() {
Remove NOTE/HELP annotations from UI tests
2017-12-10 23:29:24 +03:00
let i: Vec<t!()>;
Print the macro context name on incomplete parse Fixes #22425 Also fixes #30007, since it's just a change from `true` to `false`.
2015-11-23 21:06:51 +01:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3869ms 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