This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
5333b878c8
rust
/
tests
/
ui
/
issues
/
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 10:14:12 -06:00
fn
main
(
)
{
resolve: Remove `!` from "cannot find" diagnostics for macros
2019-09-15 05:12:14 -05: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 10:14:12 -06:00
}
Reference in New Issue
Copy Permalink