{"action":"closed","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/23166","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/23166/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/23166/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/23166/events","html_url":"https://github.com/rust-lang/rust/issues/23166","id":60244143,"number":23166,"title":"Compiler Plugins example in Rust Book does not compile","user":{"login":"rprichard","id":1572855,"avatar_url":"https://avatars.githubusercontent.com/u/1572855?v=3","gravatar_id":"","url":"https://api.github.com/users/rprichard","html_url":"https://github.com/rprichard","followers_url":"https://api.github.com/users/rprichard/followers","following_url":"https://api.github.com/users/rprichard/following{/other_user}","gists_url":"https://api.github.com/users/rprichard/gists{/gist_id}","starred_url":"https://api.github.com/users/rprichard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rprichard/subscriptions","organizations_url":"https://api.github.com/users/rprichard/orgs","repos_url":"https://api.github.com/users/rprichard/repos","events_url":"https://api.github.com/users/rprichard/events{/privacy}","received_events_url":"https://api.github.com/users/rprichard/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/A-book","name":"A-book","color":"d7e102"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-08T06:31:44Z","updated_at":"2015-03-08T15:37:00Z","closed_at":"2015-03-08T15:37:00Z","body":"Compiling the [current version of roman_numerals.rs](https://github.com/rust-lang/rust/blob/97ca2a1ee919d740ace6f405958beb7b4137e5d6/src/doc/trpl/plugins.md#syntax-extensions) produces:\r\n```\r\n$ rustc roman_numerals.rs \r\nroman_numerals.rs:37:24: 37:49 error: mismatched types:\r\n expected `&collections::string::String`,\r\n    found `&str`\r\n(expected struct `collections::string::String`,\r\n    found str) [E0308]\r\nroman_numerals.rs:37                 text = text.slice_from(rn.len());\r\n                                            ^~~~~~~~~~~~~~~~~~~~~~~~~\r\nroman_numerals.rs:46:38: 46:43 error: mismatched types:\r\n expected `usize`,\r\n    found `u32`\r\n(expected usize,\r\n    found u32) [E0308]\r\nroman_numerals.rs:46     MacEager::expr(cx.expr_usize(sp, total))\r\n                                                          ^~~~~\r\nerror: aborting due to 2 previous errors\r\n```\r\nI'll submit a PR with a fix once I've run `make check` on it..."}}