On 7/14/13 1:04 PM, Svetoslav Neykov wrote:
·“unsafe” is not a normal block and doesn’t return a value, can’t be
used as an expression. This made it impossible to wrap the unsafe casts
from fixed memory locations to borrowed pointers in macros. Instead I
had to use inline functions and assign the resulting value to a local
function variable.

This should not be the case. There may be a bug in the way macros interact with unsafe checking. Do you have a test case by any chance?

Patrick

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to