{"action":"created","issue":{"url":"https://api.github.com/repos/alexcrichton/git2-rs/issues/72","labels_url":"https://api.github.com/repos/alexcrichton/git2-rs/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/alexcrichton/git2-rs/issues/72/comments","events_url":"https://api.github.com/repos/alexcrichton/git2-rs/issues/72/events","html_url":"https://github.com/alexcrichton/git2-rs/issues/72","id":87630925,"number":72,"title":"Compile errors with 0.2.12","user":{"login":"bmcorser","id":1449387,"avatar_url":"https://avatars.githubusercontent.com/u/1449387?v=3","gravatar_id":"","url":"https://api.github.com/users/bmcorser","html_url":"https://github.com/bmcorser","followers_url":"https://api.github.com/users/bmcorser/followers","following_url":"https://api.github.com/users/bmcorser/following{/other_user}","gists_url":"https://api.github.com/users/bmcorser/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcorser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcorser/subscriptions","organizations_url":"https://api.github.com/users/bmcorser/orgs","repos_url":"https://api.github.com/users/bmcorser/repos","events_url":"https://api.github.com/users/bmcorser/events{/privacy}","received_events_url":"https://api.github.com/users/bmcorser/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-12T06:49:21Z","updated_at":"2015-06-12T06:58:30Z","closed_at":"2015-06-12T06:55:46Z","body":"Thanks for addressing #71, in trying to use my shiny new `peel` method, I get a good chunk of barf from the compiler. Is there a missing dep in the new version or `cargo update` needed?\r\n\r\nWithout running `cargo update` first, `cargo build` produces this:\r\n\r\n```\r\nrunning: cargo build\r\n    Updating registry `https://github.com/rust-lang/crates.io-index`\r\n Downloading git2 v0.2.12\r\n   Compiling git2 v0.2.12\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:10:15: 10:29 error: use of undeclared type name `raw::git_blame`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:10     raw: *mut raw::git_blame,\r\n                                                                                                                                  ^~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:16:15: 16:34 error: use of undeclared type name `raw::git_blame_hunk`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:16     raw: *mut raw::git_blame_hunk,\r\n                                                                                                                                  ^~~~~~~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:17:42: 17:56 error: use of undeclared type name `raw::git_blame`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:17     _marker: marker::PhantomData<&'blame raw::git_blame>,\r\n                                                                                                                                                             ^~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:22:10: 22:32 error: use of undeclared type name `raw::git_blame_options`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:22     raw: raw::git_blame_options,\r\n                                                                                                                             ^~~~~~~~~~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:35:18: 35:47 error: unresolved name `raw::git_blame_get_hunk_count`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:35         unsafe { raw::git_blame_get_hunk_count(self.raw) as usize }\r\n                                                                                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:41:23: 41:54 error: unresolved name `raw::git_blame_get_hunk_byindex`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:41             let ptr = raw::git_blame_get_hunk_byindex(self.raw(), index as u32);\r\n                                                                                                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:54:23: 54:53 error: unresolved name `raw::git_blame_get_hunk_byline`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:54             let ptr = raw::git_blame_get_hunk_byline(self.raw(), lineno as u32);\r\n                                                                                                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:72:42: 72:61 error: use of undeclared type name `raw::git_blame_hunk`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:72     unsafe fn from_raw_const(raw: *const raw::git_blame_hunk)\r\n                                                                                                                                                             ^~~~~~~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:75:30: 75:49 error: use of undeclared type name `raw::git_blame_hunk`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:75             raw: raw as *mut raw::git_blame_hunk,\r\n                                                                                                                                                 ^~~~~~~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:148:26: 148:48 error: use of undeclared type name `raw::git_blame_options`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:148             let mut raw: raw::git_blame_options = mem::zeroed();\r\n                                                                                                                       \r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:151:45: 151:75 error: unresolved name `raw::GIT_BLAME_OPTIONS_VERSION`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:151                                             raw::GIT_BLAME_OPTIONS_VERSION)\r\n                                                                                                                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n<std macros>:1:1: 9:39 note: in expansion of assert_eq!\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:149:13: 152:18 note: expansion site\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:150:17: 150:44 error: unresolved name `raw::git_blame_init_options`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:150                 raw::git_blame_init_options(&mut raw,\r\n                                                                                                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n<std macros>:1:1: 9:39 note: in expansion of assert_eq!\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:149:13: 152:18 note: expansion site\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:169:19: 169:56 error: unresolved name `raw::GIT_BLAME_TRACK_COPIES_SAME_FILE`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:169         self.flag(raw::GIT_BLAME_TRACK_COPIES_SAME_FILE, opt)\r\n                                                                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:174:19: 174:64 error: unresolved name `raw::GIT_BLAME_TRACK_COPIES_SAME_COMMIT_MOVES`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:174         self.flag(raw::GIT_BLAME_TRACK_COPIES_SAME_COMMIT_MOVES, opt)\r\n                                                                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:180:19: 180:65 error: unresolved name `raw::GIT_BLAME_TRACK_COPIES_SAME_COMMIT_COPIES`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:180         self.flag(raw::GIT_BLAME_TRACK_COPIES_SAME_COMMIT_COPIES, opt)\r\n                                                                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:186:19: 186:64 error: unresolved name `raw::GIT_BLAME_TRACK_COPIES_ANY_COMMIT_COPIES`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:186         self.flag(raw::GIT_BLAME_TRACK_COPIES_ANY_COMMIT_COPIES, opt)\r\n                                                                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:192:19: 192:46 error: unresolved name `raw::GIT_BLAME_FIRST_PARENT`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:192         self.flag(raw::GIT_BLAME_FIRST_PARENT, opt)\r\n                                                                                                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:210:21: 210:35 error: use of undeclared type name `raw::git_blame`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:210     type Raw = *mut raw::git_blame;\r\n                                                                                                                                         ^~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:212:34: 212:48 error: use of undeclared type name `raw::git_blame`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:212     unsafe fn from_raw(raw: *mut raw::git_blame) -> Blame<'repo> {\r\n                                                                                                                                                      ^~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:216:27: 216:41 error: use of undeclared type name `raw::git_blame`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:216     fn raw(&self) -> *mut raw::git_blame { self.raw }\r\n                                                                                                                                               ^~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:221:18: 221:37 error: unresolved name `raw::git_blame_free`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:221         unsafe { raw::git_blame_free(self.raw) }\r\n                                                                                                                                      ^~~~~~~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:226:21: 226:40 error: use of undeclared type name `raw::git_blame_hunk`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:226     type Raw = *mut raw::git_blame_hunk;\r\n                                                                                                                                         ^~~~~~~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:228:34: 228:53 error: use of undeclared type name `raw::git_blame_hunk`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:228     unsafe fn from_raw(raw: *mut raw::git_blame_hunk) -> BlameHunk<'blame> {\r\n                                                                                                                                                      ^~~~~~~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:232:27: 232:46 error: use of undeclared type name `raw::git_blame_hunk`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:232     fn raw(&self) -> *mut raw::git_blame_hunk { self.raw }\r\n                                                                                                                                               ^~~~~~~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:236:21: 236:43 error: use of undeclared type name `raw::git_blame_options`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:236     type Raw = *mut raw::git_blame_options;\r\n                                                                                                                                         ^~~~~~~~~~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:238:35: 238:57 error: use of undeclared type name `raw::git_blame_options`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:238     unsafe fn from_raw(opts: *mut raw::git_blame_options) -> BlameOptions {\r\n                                                                                                                                                       ^~~~~~~~~~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:242:27: 242:49 error: use of undeclared type name `raw::git_blame_options`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/blame.rs:242     fn raw(&self) -> *mut raw::git_blame_options {\r\n                                                                                                                                               ^~~~~~~~~~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/call.rs:14:27: 14:34 error: unresolved name `raw::git_reference_peel`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/call.rs:14         match ::call::try(raw::$p($(::call::convert(&$e)),*)) {\r\n                                                                                                                                             ^~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/call.rs:12:1: 19:2 note: in expansion of try_call!\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/reference.rs:159:13: 159:76 note: expansion site\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/repo.rs:1095:33: 1095:47 error: use of undeclared type name `raw::git_blame`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/repo.rs:1095         let mut raw = 0 as *mut raw::git_blame;\r\n                                                                                                                                                     ^~~~~~~~~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/call.rs:14:27: 14:34 error: unresolved name `raw::git_blame_file`\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/call.rs:14         match ::call::try(raw::$p($(::call::convert(&$e)),*)) {\r\n                                                                                                                                             ^~~~~~~\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/call.rs:12:1: 19:2 note: in expansion of try_call!\r\n/Users/ben/.multirust/toolchains/nightly/cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.2.12/src/repo.rs:1098:13: 1101:67 note: expansion site\r\nerror: aborting due to 30 previous errors\r\nCould not compile `git2`.\r\n\r\nTo learn more, run the command again with --verbose.\r\n```\r\n\r\nAfter `cargo update`, everything [is groovy](https://github.com/bmcorser/git-tags-rs/commit/1bcb706fdd3ce1c6e8cac5e122aca74e72334f80)."},"comment":{"url":"https://api.github.com/repos/alexcrichton/git2-rs/issues/comments/111384762","html_url":"https://github.com/alexcrichton/git2-rs/issues/72#issuecomment-111384762","issue_url":"https://api.github.com/repos/alexcrichton/git2-rs/issues/72","id":111384762,"user":{"login":"bmcorser","id":1449387,"avatar_url":"https://avatars.githubusercontent.com/u/1449387?v=3","gravatar_id":"","url":"https://api.github.com/users/bmcorser","html_url":"https://github.com/bmcorser","followers_url":"https://api.github.com/users/bmcorser/followers","following_url":"https://api.github.com/users/bmcorser/following{/other_user}","gists_url":"https://api.github.com/users/bmcorser/gists{/gist_id}","starred_url":"https://api.github.com/users/bmcorser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmcorser/subscriptions","organizations_url":"https://api.github.com/users/bmcorser/orgs","repos_url":"https://api.github.com/users/bmcorser/repos","events_url":"https://api.github.com/users/bmcorser/events{/privacy}","received_events_url":"https://api.github.com/users/bmcorser/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T06:58:30Z","updated_at":"2015-06-12T06:58:30Z","body":"Gotcha. It gave me pause for thought :)\n\nOn 12 June 2015 at 07:55, Alex Crichton <notifications@github.com> wrote:\n\n> Closed #72 <https://github.com/alexcrichton/git2-rs/issues/72>.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/alexcrichton/git2-rs/issues/72#event-329248037>.\n>\n"}}