Skip to content

Conversation

rprichard
Copy link
Contributor

  • "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

 * "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.
@steveklabnik
Copy link
Contributor

@bors: r+ 52124d7 rollup

@steveklabnik
Copy link
Contributor

Thank you!

bors added a commit that referenced this pull request Mar 8, 2015
 * "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
@bors
Copy link
Collaborator

bors commented Mar 8, 2015

⌛ Testing commit 52124d7 with merge ead9ab8...

@bors
Copy link
Collaborator

bors commented Mar 8, 2015

@bors bors merged commit 52124d7 into rust-lang:master Mar 8, 2015
@rprichard rprichard deleted the fix-plugin-rustbook branch March 13, 2015 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compiler Plugins example in Rust Book does not compile
3 participants