This website requires JavaScript.
Explore
Help
Register
Sign In
rust-lang
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Actions
1
Packages
Projects
Releases
Wiki
Activity
Files
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
rust
/
tests
/
ui
/
macros
/
issue-11692-1.rs
4 lines
86 B
Rust
Raw
Normal View
History
Unescape
Escape
Avoid returning original macro if expansion fails. Closes #11692. Instead of returning the original expression, a dummy expression (with identical span) is returned. This prevents infinite loops of failed expansions as well as odd double error messages in certain situations.
2014-02-18 16:14:12 +00:00
fn
main
(
)
{
resolve: Remove `!` from "cannot find" diagnostics for macros
2019-09-15 13:12:14 +03:00
print!
(
testo!
(
)
)
;
//~ ERROR cannot find macro `testo` in this scope
Avoid returning original macro if expansion fails. Closes #11692. Instead of returning the original expression, a dummy expression (with identical span) is returned. This prevents infinite loops of failed expansions as well as odd double error messages in certain situations.
2014-02-18 16:14:12 +00:00
}
Reference in New Issue
Copy Permalink