rustc: Use rust strings for failure arguments

This avoids having to perform conversions from `*u8` to `&'static str` which can
suck in a good deal of code.

Closes #14442
This commit is contained in:
Alex Crichton 2014-05-26 10:33:18 -07:00
parent 746d086f93
commit 5c1a70d498
4 changed files with 59 additions and 34 deletions

View file

@ -11,7 +11,7 @@
#![no_std]
#[lang="fail_"]
fn fail(_: *i8, _: *i8, _: uint) -> ! { loop {} }
fn fail(_: &'static str, _: &'static str, _: uint) -> ! { loop {} }
#[lang = "stack_exhausted"]
extern fn stack_exhausted() {}