mozilla/rust — pull request #4153 by brson (2012-12-11 01:23:14+00:00)
Title: Adjust the die macro to only accept ~str and to work in statement positi...

r? @pcwalton

The error messages when failing to use `~str` are bad:

```
:17:37: 17:43 error: mismatched types: expected `~str` but found `&static/str` (str storage differs: expected ~ but found &static)
:17 let msgptr: &~str = &{$msg};
^~~~~~
:13:4: 1:0 note: in expansion of die!
/home/brian/dev/rust/src/test/compile-fail/die-not-unique.rs:4:4: 4:17 note: expansion site
:17:36: 17:43 error: mismatched types: expected `&~str` but found `&&static/str` (str storage differs: expected ~ but found &static)
:17 let msgptr: &~str = &{$msg};
^~~~~~~
:13:4: 1:0 note: in expansion of die!
/home/brian/dev/rust/src/test/compile-fail/die-not-unique.rs:4:4: 4:17 note: expansion site
error: aborting due to 2 previous errors

```