Skip to content

Fix #23166. Get the Compiler Plugins example compiling again. #23167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 8, 2015

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
Member

@bors: r+ 52124d7 rollup

@steveklabnik
Copy link
Member

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