Created
November 15, 2015 23:05
-
-
Save vadixidav/8d39881ee44e5e61484d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling gpi v0.3.0 (file:///home/vadix/project/library/gpi) | |
src/mep.rs:105:18: 105:22 error: cannot infer an appropriate lifetime for automatic coercion due to conflicting requirements | |
src/mep.rs:105 mep: self, | |
^~~~ | |
src/mep.rs:101:5: 110:6 help: consider using an explicit lifetime parameter as shown: fn compute<'a>(&'a self, inputs: &[Param], outputs: usize) | |
-> Box<Iterator<Item = Param>+ 'a> | |
src/mep.rs:101 fn compute<'a>(&self, inputs: &[Param], outputs: usize) -> Box<Iterator<Item=Param> + 'a> { | |
src/mep.rs:102 //Ensure we have enough opcodes to produce the desired amount of outputs, otherwise the programmer has failed | |
src/mep.rs:103 assert!(outputs <= self.program.len()); | |
src/mep.rs:104 Box::new(ResultIterator{ | |
src/mep.rs:105 mep: self, | |
src/mep.rs:106 buff: vec![None; self.program.len()], | |
... | |
src/mep.rs:105:18: 105:22 error: cannot infer an appropriate lifetime for automatic coercion due to conflicting requirements | |
src/mep.rs:105 mep: self, | |
^~~~ | |
src/mep.rs:101:5: 110:6 help: consider using an explicit lifetime parameter as shown: fn compute<'a>(&'a self, inputs: &[Param], outputs: usize) | |
-> Box<Iterator<Item = Param>+ 'a> | |
src/mep.rs:101 fn compute<'a>(&self, inputs: &[Param], outputs: usize) -> Box<Iterator<Item=Param> + 'a> { | |
src/mep.rs:102 //Ensure we have enough opcodes to produce the desired amount of outputs, otherwise the programmer has failed | |
src/mep.rs:103 assert!(outputs <= self.program.len()); | |
src/mep.rs:104 Box::new(ResultIterator{ | |
src/mep.rs:105 mep: self, | |
src/mep.rs:106 buff: vec![None; self.program.len()], | |
... | |
src/mep.rs:212:27: 212:60 error: no method named `mutator` found for type `&mut mep::Mep<Ins, R, Param, F1, F2>` in the current scope | |
src/mep.rs:212 0 => self.mutator(&mut op.instruction, rng), | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
src/mep.rs:243:51: 243:120 error: no method named `processor` found for type `&'a mep::Mep<Ins, R, Param, F1, F2>` in the current scope | |
src/mep.rs:243 let result = self.mep.processor(&op.instruction, op_solved(op.first), op_solved(op.second)); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
src/mep.rs:243:78: 243:87 error: the type of this value must be known in this context | |
src/mep.rs:243 let result = self.mep.processor(&op.instruction, op_solved(op.first), op_solved(op.second)); | |
^~~~~~~~~ | |
error: aborting due to 4 previous errors | |
src/mep.rs:212:27: 212:60 error: no method named `mutator` found for type `&mut mep::Mep<Ins, R, Param, F1, F2>` in the current scope | |
src/mep.rs:212 0 => self.mutator(&mut op.instruction, rng), | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
src/mep.rs:243:51: 243:120 error: no method named `processor` found for type `&'a mep::Mep<Ins, R, Param, F1, F2>` in the current scope | |
src/mep.rs:243 let result = self.mep.processor(&op.instruction, op_solved(op.first), op_solved(op.second)); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
src/mep.rs:243:78: 243:87 error: the type of this value must be known in this context | |
src/mep.rs:243 let result = self.mep.processor(&op.instruction, op_solved(op.first), op_solved(op.second)); | |
^~~~~~~~~ | |
src/mep.rs:266:16: 266:24 error: wrong number of type arguments: expected 5, found 1 [E0243] | |
src/mep.rs:266 let a: Mep<u32> = Mep::new(3, 3, 0..8); | |
^~~~~~~~ | |
src/mep.rs:266:16: 266:24 help: run `rustc --explain E0243` to see a detailed explanation | |
src/mep.rs:266:27: 266:47 error: this function takes 7 parameters but 3 parameters were supplied [E0061] | |
src/mep.rs:266 let a: Mep<u32> = Mep::new(3, 3, 0..8); | |
^~~~~~~~~~~~~~~~~~~~ | |
src/mep.rs:266:27: 266:47 help: run `rustc --explain E0061` to see a detailed explanation | |
src/mep.rs:268:22: 268:34 help: did you mean `inputs`? | |
src/mep.rs:268 assert_eq!(a.instructions, (0..8).collect::<Vec<_>>()); | |
^~~~~~~~~~~~ | |
src/mep.rs:268:9: 268:64 note: in this expansion of assert_eq! (defined in <std macros>) | |
<std macros>:5:8: 5:18 error: the type of this value must be known in this context | |
<std macros>:5 if ! ( * left_val == * right_val ) { | |
^~~~~~~~~~ | |
src/mep.rs:268:9: 268:64 note: in this expansion of assert_eq! (defined in <std macros>) | |
<std macros>:5:22: 5:33 error: the type of this value must be known in this context | |
<std macros>:5 if ! ( * left_val == * right_val ) { | |
^~~~~~~~~~~ | |
src/mep.rs:268:9: 268:64 note: in this expansion of assert_eq! (defined in <std macros>) | |
Build failed, waiting for other jobs to finish... | |
src/mep.rs:275:31: 275:93 error: this function takes 7 parameters but 3 parameters were supplied [E0061] | |
src/mep.rs:275 let mut clos = || Mep::new(3, 3, rng.gen_iter::<u32>().map(|x| x % 10).take(10)); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
src/mep.rs:275:31: 275:93 help: run `rustc --explain E0061` to see a detailed explanation | |
src/mep.rs:283:11: 283:53 error: this function takes 1 parameter but 2 parameters were supplied [E0061] | |
src/mep.rs:283 c.mutate(&mut rng, |ins: &mut u32| *ins = 2); | |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
src/mep.rs:283:11: 283:53 help: run `rustc --explain E0061` to see a detailed explanation | |
src/mep.rs:284:11: 284:31 error: no method named `call` found for type `mep::Mep<_, rand::isaac::Isaac64Rng, _, _, _>` in the current scope | |
src/mep.rs:284 c.call(|_, (_, _)| {}); | |
^~~~~~~~~~~~~~~~~~~~ | |
src/mep.rs:284:11: 284:31 help: items from traits can only be used if the trait is implemented and in scope; the following trait defines an item `call`, perhaps you need to implement it: | |
src/mep.rs:284:11: 284:31 help: candidate #1: `core::ops::Fn` | |
src/mep.rs:286:20: 286:34 error: attempted access of field `instructions` on type `mep::Mep<_, rand::isaac::Isaac64Rng, _, _, _>`, but no field with that name was found | |
src/mep.rs:286 assert_eq!(c.instructions, [0, 7, 5, 4, 2, 8, 5, 6, 0, 2]); | |
^~~~~~~~~~~~~~ | |
src/mep.rs:286:9: 286:68 note: in this expansion of assert_eq! (defined in <std macros>) | |
src/mep.rs:286:22: 286:34 help: did you mean `inputs`? | |
src/mep.rs:286 assert_eq!(c.instructions, [0, 7, 5, 4, 2, 8, 5, 6, 0, 2]); | |
^~~~~~~~~~~~ | |
src/mep.rs:286:9: 286:68 note: in this expansion of assert_eq! (defined in <std macros>) | |
<std macros>:5:8: 5:18 error: the type of this value must be known in this context | |
<std macros>:5 if ! ( * left_val == * right_val ) { | |
^~~~~~~~~~ | |
src/mep.rs:286:9: 286:68 note: in this expansion of assert_eq! (defined in <std macros>) | |
<std macros>:5:22: 5:33 error: the type of this value must be known in this context | |
<std macros>:5 if ! ( * left_val == * right_val ) { | |
^~~~~~~~~~~ | |
src/mep.rs:286:9: 286:68 note: in this expansion of assert_eq! (defined in <std macros>) | |
error: aborting due to 14 previous errors | |
Could not compile `gpi`. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment