about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.rs
diff options
context:
space:
mode:
authorRyan Prichard <ryan.prichard@gmail.com>2015-03-07 22:57:51 -0800
committerRyan Prichard <ryan.prichard@gmail.com>2015-03-07 22:58:28 -0800
commit52124d7c807404a551c499a43736722ade9d9890 (patch)
tree8d6831f8729ce29a7c886e7a30fb2e678cc5fba7 /src/test/codegen/stack-alloc-string-slice.rs
parent668c6474081a10768ef143b9984efcab5376bf68 (diff)
downloadrust-52124d7c807404a551c499a43736722ade9d9890.tar.gz
rust-52124d7c807404a551c499a43736722ade9d9890.zip
Fix #23166. Get the Compiler Plugins example compiling again.
 * "let met text" was previously of &String type.  Now it is of &str type.

 * Update the slicing syntax.  Both &text[] and text.slice_from() evaluate
   to a &str.

 * We were passing a u32 to expr_usize.  Call expr_u32 instead.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions