about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-03-08 12:10:42 +0000
committerbors <bors@rust-lang.org>2015-03-08 12:10:42 +0000
commitead9ab84b80ba3b172d529b1d2a2917bb05b4820 (patch)
treeab8ee865087cbe3a1a5e87d0d265e20cd43e3b97 /src/test/codegen/stack-alloc-string-slice.rs
parentb2f09c1165db805ed00707257dd94bb309faf0fe (diff)
parent52124d7c807404a551c499a43736722ade9d9890 (diff)
downloadrust-ead9ab84b80ba3b172d529b1d2a2917bb05b4820.tar.gz
rust-ead9ab84b80ba3b172d529b1d2a2917bb05b4820.zip
Auto merge of #23167 - rprichard:fix-plugin-rustbook, r=steveklabnik
 * "let mut 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.

r? @steveklabnik
Fixes #23166
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions