diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2014-05-16 10:45:16 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2014-05-22 14:42:01 -0700 |
| commit | 36195eb91f15975fed7555a3aa52807ecd5698a1 (patch) | |
| tree | d0e99310be4a24e76b8d6b13f05ec79c1f89b6ba /src/librustc/middle/astencode.rs | |
| parent | e402e75f4eb79af09b9451f0f232f994b3e2c998 (diff) | |
| download | rust-36195eb91f15975fed7555a3aa52807ecd5698a1.tar.gz rust-36195eb91f15975fed7555a3aa52807ecd5698a1.zip | |
libstd: Remove `~str` from all `libstd` modules except `fmt` and `str`.
Diffstat (limited to 'src/librustc/middle/astencode.rs')
| -rw-r--r-- | src/librustc/middle/astencode.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/librustc/middle/astencode.rs b/src/librustc/middle/astencode.rs index f46fe9a8b24..8956beb33f4 100644 --- a/src/librustc/middle/astencode.rs +++ b/src/librustc/middle/astencode.rs @@ -1312,7 +1312,8 @@ fn decode_side_tables(xcx: &ExtendedDecodeContext, match c::astencode_tag::from_uint(tag) { None => { xcx.dcx.tcx.sess.bug( - format!("unknown tag found in side tables: {:x}", tag)); + format!("unknown tag found in side tables: {:x}", + tag).as_slice()); } Some(value) => { let val_doc = entry_doc.get(c::tag_table_val as uint); @@ -1376,7 +1377,8 @@ fn decode_side_tables(xcx: &ExtendedDecodeContext, } _ => { xcx.dcx.tcx.sess.bug( - format!("unknown tag found in side tables: {:x}", tag)); + format!("unknown tag found in side tables: {:x}", + tag).as_slice()); } } } |
