Skip to content
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

0.0.36 does not build with nightly #570

Closed
shaleh opened this issue Jan 21, 2016 · 1 comment
Closed

0.0.36 does not build with nightly #570

shaleh opened this issue Jan 21, 2016 · 1 comment

Comments

@shaleh
Copy link

shaleh commented Jan 21, 2016

/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/utils.rs:248:17: 248:68 error: this function takes 4 parameters but 3 parameters were supplied [E0061]
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/utils.rs:248 let infcx = infer::new_infer_ctxt(cx.tcx, &cx.tcx.tables, None);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/utils.rs:248:17: 248:68 help: run rustc --explain E0061 to see a detailed explanation
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/consts.rs:489:43: 489:86 error: this function takes 3 parameters but 4 parameters were supplied [E0061]
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/consts.rs:489 if let Some(const_expr) = lookup_const_by_id(lcx.tcx, id, None, None) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/consts.rs:489:43: 489:86 help: run rustc --explain E0061 to see a detailed explanation
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/consts.rs:490:36: 490:52 error: cannot infer an appropriate lifetime for lifetime parameter 'cc due to conflicting requirements [E0495]
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/consts.rs:490 let ret = self.expr(const_expr);
^~~~~~~~~~~~~~~~
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/consts.rs:481:5: 499:6 help: consider using an explicit lifetime parameter as shown: fn fetch_path(&mut self, e: &Expr) -> Option
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/consts.rs:481 fn fetch_path(&mut self, e: &Expr) -> Option {
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/consts.rs:482 if let Some(lcx) = self.lcx {
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/consts.rs:483 let mut maybe_id = None;
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/consts.rs:484 if let Some(&PathResolution { base_def: DefConst(id), ..}) = lcx.tcx.def_map.borrow().get(&e.id) {
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/consts.rs:485 maybe_id = Some(id);
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/consts.rs:486 }
...
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:281:32: 281:78 error: this function takes 3 parameters but 4 parameters were supplied [E0061]
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:281 .and_then(|def_id| lookup_const_by_id(cx.tcx, def_id, None, None))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:281:32: 281:78 help: run rustc --explain E0061 to see a detailed explanation
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:272:13: 281:79 error: lifetime bound not satisfied [E0478]
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:272 {
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:273 // Important to let the borrow expire before the const lookup to avoid double
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:274 // borrowing.
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:275 let def_map = cx.tcx.def_map.borrow();
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:276 match def_map.get(&lit.id) {
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:277 Some(&PathResolution { base_def: DefConst(def_id), ..}) => Some(def_id),
...
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:262:67: 286:2 note: lifetime parameter instantiated with the anonymous lifetime #3 defined on the block at 262:66
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:262 fn fetch_int_literal(cx: &LateContext, lit: &Expr) -> Option {
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:263 match lit.node {
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:264 ExprLit(ref lit_ptr) => {
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:265 if let LitInt(value, _) = lit_ptr.node {
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:266 Some(value) //TODO: Handle sign
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:267 } else {
...
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:262:67: 286:2 note: but lifetime parameter must outlive the anonymous lifetime #2 defined on the block at 262:66
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:262 fn fetch_int_literal(cx: &LateContext, lit: &Expr) -> Option {
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:263 match lit.node {
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:264 ExprLit(ref lit_ptr) => {
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:265 if let LitInt(value, _) = lit_ptr.node {
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:266 Some(value) //TODO: Handle sign
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/bit_mask.rs:267 } else {
...
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/escape.rs:55:21: 55:83 error: this function takes 4 parameters but 3 parameters were supplied [E0061]
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/escape.rs:55 let infcx = infer::new_infer_ctxt(cx.tcx, &cx.tcx.tables, Some(param_env));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/perryse/.multirust/toolchains/nightly/cargo/registry/src/git.luolix.top-88ac128001ac3a9a/clippy-0.0.36/src/escape.rs:55:21: 55:83 help: run rustc --explain E0061 to see a detailed explanation
error: aborting due to 6 previous errors
Build failed, waiting for other jobs to finish...
Could not compile clippy.

@shaleh
Copy link
Author

shaleh commented Jan 21, 2016

My bad. My nightly update script didn't run. This is with an older nightly. 0.0.36 works with current.

@shaleh shaleh closed this as completed Jan 21, 2016
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

No branches or pull requests

1 participant