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
rust
/
src
/
test
/
run-fail
/
fail-arg.rs
5 lines
94 B
Rust
Raw
Normal View
History
Unescape
Escape
Un-XFAIL fail-arg
2011-07-03 11:56:23 -07:00
// error-pattern:woe
Register snapshots and switch logging over to use of log_full or #error / #debug.
2011-12-22 14:42:52 -08:00
fn
f
(
a
:
int
)
{
log_full
(
core
::
debug
,
a
)
;
}
Generate code properly for calls with _|_ - typed arguments The code for translating a fail (for example) would call Unreachable(), which terminates the block; if a fail appeared as an argument, this would cause an LLVM assertion failure. Changed trans_call to handle this situation correctly.
2011-07-02 21:55:38 -07:00
Reformat This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-19 15:16:48 -07:00
fn
main
(
)
{
f
(
fail
"
woe
"
)
;
}
Reference in New Issue
Copy Permalink