Oct 14 16:26:54.975 INFO testing johnkoehn/econ-sim against master#0e07c4281c343e9e15a0a8fca79538ad1a8eb513 for rustdoc-test-static-cling-1 Oct 14 16:26:54.976 INFO running `"docker" "create" "-v" "/mnt/big/crater/./work/local/target-dirs/rustdoc-test-static-cling-1/worker-5/master#0e07c4281c343e9e15a0a8fca79538ad1a8eb513:/target:rw,Z" "-v" "/mnt/big/crater/./work/local/test-source/worker-5/rustdoc-test-static-cling-1/master#0e07c4281c343e9e15a0a8fca79538ad1a8eb513:/source:ro,Z" "-v" "/mnt/big/crater/./work/local/cargo-home:/cargo-home:ro,Z" "-v" "/mnt/big/crater/./work/local/rustup-home:/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/source" "-e" "USER_ID=1000" "-e" "CMD=cargo +0e07c4281c343e9e15a0a8fca79538ad1a8eb513-alt build --frozen" "-e" "CARGO_TARGET_DIR=/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/cargo-home" "-e" "RUSTUP_HOME=/rustup-home" "-m" "1536M" "--network" "none" "crater"` Oct 14 16:26:55.419 INFO blam! a9560aa81a1bba37d7cb67e595b52c0713790743d9d9f62fea43073e3ce1e7dc Oct 14 16:26:55.421 INFO running `"docker" "start" "-a" "a9560aa81a1bba37d7cb67e595b52c0713790743d9d9f62fea43073e3ce1e7dc"` Oct 14 16:26:56.564 INFO kablam! usermod: no changes Oct 14 16:26:56.613 INFO kablam! Compiling econ-sim v0.1.0 (/source) Oct 14 16:26:57.114 INFO kablam! warning: struct is never constructed: `VillageManager` Oct 14 16:26:57.114 INFO kablam! --> src/simulation/village_manager.rs:4:1 Oct 14 16:26:57.114 INFO kablam! | Oct 14 16:26:57.114 INFO kablam! 4 | pub struct VillageManager { Oct 14 16:26:57.114 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.114 INFO kablam! | Oct 14 16:26:57.114 INFO kablam! = note: #[warn(dead_code)] on by default Oct 14 16:26:57.114 INFO kablam! Oct 14 16:26:57.114 INFO kablam! warning: variant is never constructed: `Upward` Oct 14 16:26:57.114 INFO kablam! --> src/simulation/mod.rs:14:5 Oct 14 16:26:57.114 INFO kablam! | Oct 14 16:26:57.114 INFO kablam! 14 | Upward, Oct 14 16:26:57.114 INFO kablam! | ^^^^^^ Oct 14 16:26:57.114 INFO kablam! Oct 14 16:26:57.114 INFO kablam! warning: variant is never constructed: `Downward` Oct 14 16:26:57.114 INFO kablam! --> src/simulation/mod.rs:15:5 Oct 14 16:26:57.114 INFO kablam! | Oct 14 16:26:57.114 INFO kablam! 15 | Downward, Oct 14 16:26:57.114 INFO kablam! | ^^^^^^^^ Oct 14 16:26:57.114 INFO kablam! Oct 14 16:26:57.114 INFO kablam! warning: variant is never constructed: `Equilibrium` Oct 14 16:26:57.114 INFO kablam! --> src/simulation/mod.rs:16:5 Oct 14 16:26:57.114 INFO kablam! | Oct 14 16:26:57.114 INFO kablam! 16 | Equilibrium, Oct 14 16:26:57.114 INFO kablam! | ^^^^^^^^^^^ Oct 14 16:26:57.114 INFO kablam! Oct 14 16:26:57.114 INFO kablam! warning: struct is never constructed: `Simulation` Oct 14 16:26:57.114 INFO kablam! --> src/simulation/mod.rs:19:1 Oct 14 16:26:57.114 INFO kablam! | Oct 14 16:26:57.114 INFO kablam! 19 | pub struct Simulation { Oct 14 16:26:57.115 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.115 INFO kablam! Oct 14 16:26:57.115 INFO kablam! warning: method is never used: `new` Oct 14 16:26:57.115 INFO kablam! --> src/simulation/mod.rs:26:5 Oct 14 16:26:57.115 INFO kablam! | Oct 14 16:26:57.115 INFO kablam! 26 | pub fn new() -> Simulation { Oct 14 16:26:57.115 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.116 INFO kablam! Oct 14 16:26:57.116 INFO kablam! warning: method is never used: `add_village` Oct 14 16:26:57.116 INFO kablam! --> src/simulation/mod.rs:44:5 Oct 14 16:26:57.116 INFO kablam! | Oct 14 16:26:57.116 INFO kablam! 44 | pub fn add_village(&mut self, village: Village) { Oct 14 16:26:57.116 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.116 INFO kablam! Oct 14 16:26:57.117 INFO kablam! warning: method is never used: `village_managers` Oct 14 16:26:57.117 INFO kablam! --> src/simulation/mod.rs:54:5 Oct 14 16:26:57.117 INFO kablam! | Oct 14 16:26:57.117 INFO kablam! 54 | pub fn village_managers(&self) -> &Vec { Oct 14 16:26:57.117 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.117 INFO kablam! Oct 14 16:26:57.118 INFO kablam! warning: method is never used: `simulate` Oct 14 16:26:57.118 INFO kablam! --> src/simulation/mod.rs:58:5 Oct 14 16:26:57.118 INFO kablam! | Oct 14 16:26:57.119 INFO kablam! 58 | pub fn simulate(&mut self) { Oct 14 16:26:57.119 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.119 INFO kablam! Oct 14 16:26:57.119 INFO kablam! warning: method is never used: `handle_trades` Oct 14 16:26:57.119 INFO kablam! --> src/simulation/mod.rs:87:5 Oct 14 16:26:57.119 INFO kablam! | Oct 14 16:26:57.119 INFO kablam! 87 | pub fn handle_trades(&mut self, trade_requests: &mut Vec) { Oct 14 16:26:57.119 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.119 INFO kablam! Oct 14 16:26:57.119 INFO kablam! warning: variant is never constructed: `Gold` Oct 14 16:26:57.119 INFO kablam! --> src/village/resource.rs:6:5 Oct 14 16:26:57.120 INFO kablam! | Oct 14 16:26:57.120 INFO kablam! 6 | Gold, Oct 14 16:26:57.120 INFO kablam! | ^^^^ Oct 14 16:26:57.121 INFO kablam! Oct 14 16:26:57.121 INFO kablam! warning: variant is never constructed: `Food` Oct 14 16:26:57.121 INFO kablam! --> src/village/resource.rs:7:5 Oct 14 16:26:57.121 INFO kablam! | Oct 14 16:26:57.121 INFO kablam! 7 | Food, Oct 14 16:26:57.121 INFO kablam! | ^^^^ Oct 14 16:26:57.121 INFO kablam! Oct 14 16:26:57.121 INFO kablam! warning: variant is never constructed: `Wood` Oct 14 16:26:57.121 INFO kablam! --> src/village/resource.rs:8:5 Oct 14 16:26:57.121 INFO kablam! | Oct 14 16:26:57.121 INFO kablam! 8 | Wood, Oct 14 16:26:57.121 INFO kablam! | ^^^^ Oct 14 16:26:57.121 INFO kablam! Oct 14 16:26:57.121 INFO kablam! warning: variant is never constructed: `Stone` Oct 14 16:26:57.121 INFO kablam! --> src/village/resource.rs:9:5 Oct 14 16:26:57.122 INFO kablam! | Oct 14 16:26:57.122 INFO kablam! 9 | Stone, Oct 14 16:26:57.122 INFO kablam! | ^^^^^ Oct 14 16:26:57.122 INFO kablam! Oct 14 16:26:57.122 INFO kablam! warning: method is never used: `iterator` Oct 14 16:26:57.122 INFO kablam! --> src/village/resource.rs:13:5 Oct 14 16:26:57.122 INFO kablam! | Oct 14 16:26:57.122 INFO kablam! 13 | pub fn iterator() -> Iter<'static, ResourceType> { Oct 14 16:26:57.122 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.122 INFO kablam! Oct 14 16:26:57.122 INFO kablam! warning: static item is never used: `RESOURCE_TYPES` Oct 14 16:26:57.122 INFO kablam! --> src/village/resource.rs:14:9 Oct 14 16:26:57.122 INFO kablam! | Oct 14 16:26:57.122 INFO kablam! 14 | static RESOURCE_TYPES: [ResourceType; 4] = [Gold, Food, Wood, Stone]; Oct 14 16:26:57.122 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.122 INFO kablam! Oct 14 16:26:57.122 INFO kablam! warning: type alias is never used: `ResourceId` Oct 14 16:26:57.123 INFO kablam! --> src/village/resource.rs:19:1 Oct 14 16:26:57.123 INFO kablam! | Oct 14 16:26:57.123 INFO kablam! 19 | pub type ResourceId = u32; Oct 14 16:26:57.123 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.123 INFO kablam! Oct 14 16:26:57.123 INFO kablam! warning: type alias is never used: `CollectResource` Oct 14 16:26:57.123 INFO kablam! --> src/village/resource.rs:20:1 Oct 14 16:26:57.123 INFO kablam! | Oct 14 16:26:57.123 INFO kablam! 20 | pub type CollectResource = fn(worker_power : u32) -> f64; Oct 14 16:26:57.123 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.123 INFO kablam! Oct 14 16:26:57.123 INFO kablam! warning: struct is never constructed: `Resource` Oct 14 16:26:57.123 INFO kablam! --> src/village/resource.rs:22:1 Oct 14 16:26:57.123 INFO kablam! | Oct 14 16:26:57.123 INFO kablam! 22 | pub struct Resource { Oct 14 16:26:57.123 INFO kablam! | ^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.123 INFO kablam! Oct 14 16:26:57.123 INFO kablam! warning: method is never used: `new` Oct 14 16:26:57.123 INFO kablam! --> src/village/resource.rs:29:5 Oct 14 16:26:57.123 INFO kablam! | Oct 14 16:26:57.123 INFO kablam! 29 | pub fn new(resource_type : ResourceType, resource_id : ResourceId, collect_resource : CollectResource) -> Resource { Oct 14 16:26:57.123 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.123 INFO kablam! Oct 14 16:26:57.123 INFO kablam! warning: type alias is never used: `WorkerId` Oct 14 16:26:57.123 INFO kablam! --> src/village/worker.rs:1:1 Oct 14 16:26:57.123 INFO kablam! | Oct 14 16:26:57.123 INFO kablam! 1 | pub type WorkerId = u32; Oct 14 16:26:57.123 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.123 INFO kablam! Oct 14 16:26:57.123 INFO kablam! warning: struct is never constructed: `Worker` Oct 14 16:26:57.123 INFO kablam! --> src/village/worker.rs:3:1 Oct 14 16:26:57.123 INFO kablam! | Oct 14 16:26:57.123 INFO kablam! 3 | pub struct Worker { Oct 14 16:26:57.123 INFO kablam! | ^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.123 INFO kablam! Oct 14 16:26:57.123 INFO kablam! warning: method is never used: `new` Oct 14 16:26:57.124 INFO kablam! --> src/village/worker.rs:12:5 Oct 14 16:26:57.124 INFO kablam! | Oct 14 16:26:57.124 INFO kablam! 12 | pub fn new(worker_id: WorkerId, power: u32) -> Worker { Oct 14 16:26:57.124 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.124 INFO kablam! Oct 14 16:26:57.124 INFO kablam! warning: type alias is never used: `VillageRef` Oct 14 16:26:57.124 INFO kablam! --> src/village/mod.rs:10:1 Oct 14 16:26:57.124 INFO kablam! | Oct 14 16:26:57.124 INFO kablam! 10 | pub type VillageRef = Rc>; Oct 14 16:26:57.124 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.124 INFO kablam! Oct 14 16:26:57.124 INFO kablam! warning: type alias is never used: `CheckForWorkerDeath` Oct 14 16:26:57.124 INFO kablam! --> src/village/mod.rs:12:1 Oct 14 16:26:57.124 INFO kablam! | Oct 14 16:26:57.124 INFO kablam! 12 | pub type CheckForWorkerDeath = fn(&Worker) -> bool; Oct 14 16:26:57.124 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.124 INFO kablam! Oct 14 16:26:57.124 INFO kablam! warning: struct is never constructed: `Village` Oct 14 16:26:57.124 INFO kablam! --> src/village/mod.rs:14:1 Oct 14 16:26:57.124 INFO kablam! | Oct 14 16:26:57.124 INFO kablam! 14 | pub struct Village { Oct 14 16:26:57.124 INFO kablam! | ^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.124 INFO kablam! Oct 14 16:26:57.124 INFO kablam! warning: method is never used: `new` Oct 14 16:26:57.124 INFO kablam! --> src/village/mod.rs:26:5 Oct 14 16:26:57.124 INFO kablam! | Oct 14 16:26:57.124 INFO kablam! 26 | pub fn new(check_for_worker_death: CheckForWorkerDeath) -> Village { Oct 14 16:26:57.124 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.124 INFO kablam! Oct 14 16:26:57.125 INFO kablam! warning: method is never used: `create_worker` Oct 14 16:26:57.125 INFO kablam! --> src/village/mod.rs:47:5 Oct 14 16:26:57.125 INFO kablam! | Oct 14 16:26:57.125 INFO kablam! 47 | pub fn create_worker(&mut self, power: u32) -> WorkerId { Oct 14 16:26:57.125 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.125 INFO kablam! Oct 14 16:26:57.125 INFO kablam! warning: method is never used: `create_resource` Oct 14 16:26:57.125 INFO kablam! --> src/village/mod.rs:57:5 Oct 14 16:26:57.125 INFO kablam! | Oct 14 16:26:57.125 INFO kablam! 57 | pub fn create_resource(&mut self, resource_type: ResourceType, collect_resource: CollectResource) -> ResourceId { Oct 14 16:26:57.125 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.125 INFO kablam! Oct 14 16:26:57.125 INFO kablam! warning: method is never used: `assign_worker` Oct 14 16:26:57.125 INFO kablam! --> src/village/mod.rs:71:5 Oct 14 16:26:57.125 INFO kablam! | Oct 14 16:26:57.125 INFO kablam! 71 | pub fn assign_worker(&mut self, worker_id: WorkerId, resource_id: ResourceId) -> Result<(), &'static str> { Oct 14 16:26:57.125 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.125 INFO kablam! Oct 14 16:26:57.125 INFO kablam! warning: method is never used: `resource` Oct 14 16:26:57.125 INFO kablam! --> src/village/mod.rs:87:5 Oct 14 16:26:57.125 INFO kablam! | Oct 14 16:26:57.125 INFO kablam! 87 | pub fn resource(&self, resource_id: ResourceId) -> Option<&Resource> { Oct 14 16:26:57.125 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.125 INFO kablam! Oct 14 16:26:57.125 INFO kablam! warning: method is never used: `resources_of_type` Oct 14 16:26:57.125 INFO kablam! --> src/village/mod.rs:91:5 Oct 14 16:26:57.125 INFO kablam! | Oct 14 16:26:57.125 INFO kablam! 91 | pub fn resources_of_type(&self, resource_type: ResourceType) -> Vec<&Resource> { Oct 14 16:26:57.125 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.126 INFO kablam! Oct 14 16:26:57.126 INFO kablam! warning: method is never used: `resources` Oct 14 16:26:57.126 INFO kablam! --> src/village/mod.rs:97:5 Oct 14 16:26:57.126 INFO kablam! | Oct 14 16:26:57.126 INFO kablam! 97 | pub fn resources(&self) -> &Vec { Oct 14 16:26:57.126 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.126 INFO kablam! Oct 14 16:26:57.126 INFO kablam! warning: method is never used: `idle_worker_count` Oct 14 16:26:57.126 INFO kablam! --> src/village/mod.rs:101:5 Oct 14 16:26:57.126 INFO kablam! | Oct 14 16:26:57.126 INFO kablam! 101 | pub fn idle_worker_count(&self) -> u32 { Oct 14 16:26:57.126 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.126 INFO kablam! Oct 14 16:26:57.126 INFO kablam! warning: method is never used: `worker` Oct 14 16:26:57.126 INFO kablam! --> src/village/mod.rs:105:5 Oct 14 16:26:57.126 INFO kablam! | Oct 14 16:26:57.126 INFO kablam! 105 | pub fn worker(&self, worker_id: WorkerId) -> Option<&Worker> { Oct 14 16:26:57.126 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.126 INFO kablam! Oct 14 16:26:57.126 INFO kablam! warning: method is never used: `workers_on_resource` Oct 14 16:26:57.126 INFO kablam! --> src/village/mod.rs:109:5 Oct 14 16:26:57.126 INFO kablam! | Oct 14 16:26:57.126 INFO kablam! 109 | pub fn workers_on_resource(&self, resource_id: u32) -> Vec<&Worker> { Oct 14 16:26:57.126 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.127 INFO kablam! Oct 14 16:26:57.127 INFO kablam! warning: method is never used: `power_on_resource` Oct 14 16:26:57.127 INFO kablam! --> src/village/mod.rs:113:5 Oct 14 16:26:57.127 INFO kablam! | Oct 14 16:26:57.127 INFO kablam! 113 | pub fn power_on_resource(&self, resource_id: u32) -> u32 { Oct 14 16:26:57.127 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.127 INFO kablam! Oct 14 16:26:57.127 INFO kablam! warning: method is never used: `simulate` Oct 14 16:26:57.127 INFO kablam! --> src/village/mod.rs:121:5 Oct 14 16:26:57.127 INFO kablam! | Oct 14 16:26:57.127 INFO kablam! 121 | pub fn simulate(&mut self) { Oct 14 16:26:57.127 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.127 INFO kablam! Oct 14 16:26:57.127 INFO kablam! warning: variant is never constructed: `Buy` Oct 14 16:26:57.127 INFO kablam! --> src/village_mind/trade_request.rs:5:5 Oct 14 16:26:57.127 INFO kablam! | Oct 14 16:26:57.127 INFO kablam! 5 | Buy, Oct 14 16:26:57.127 INFO kablam! | ^^^ Oct 14 16:26:57.127 INFO kablam! Oct 14 16:26:57.127 INFO kablam! warning: variant is never constructed: `Sell` Oct 14 16:26:57.127 INFO kablam! --> src/village_mind/trade_request.rs:6:5 Oct 14 16:26:57.127 INFO kablam! | Oct 14 16:26:57.127 INFO kablam! 6 | Sell, Oct 14 16:26:57.127 INFO kablam! | ^^^^ Oct 14 16:26:57.127 INFO kablam! Oct 14 16:26:57.127 INFO kablam! warning: struct is never constructed: `TradeRequest` Oct 14 16:26:57.127 INFO kablam! --> src/village_mind/trade_request.rs:9:1 Oct 14 16:26:57.127 INFO kablam! | Oct 14 16:26:57.127 INFO kablam! 9 | pub struct TradeRequest { Oct 14 16:26:57.127 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.127 INFO kablam! Oct 14 16:26:57.127 INFO kablam! warning: method is never used: `new` Oct 14 16:26:57.127 INFO kablam! --> src/village_mind/trade_request.rs:17:5 Oct 14 16:26:57.127 INFO kablam! | Oct 14 16:26:57.127 INFO kablam! 17 | pub fn new(trade_type: TradeType, amount: u32, resource_type: ResourceType) -> TradeRequest{ Oct 14 16:26:57.127 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.127 INFO kablam! Oct 14 16:26:57.127 INFO kablam! warning: struct is never constructed: `VillageMind` Oct 14 16:26:57.127 INFO kablam! --> src/village_mind/mod.rs:6:1 Oct 14 16:26:57.127 INFO kablam! | Oct 14 16:26:57.127 INFO kablam! 6 | pub struct VillageMind { Oct 14 16:26:57.127 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.127 INFO kablam! Oct 14 16:26:57.127 INFO kablam! warning: method is never used: `new` Oct 14 16:26:57.127 INFO kablam! --> src/village_mind/mod.rs:11:5 Oct 14 16:26:57.127 INFO kablam! | Oct 14 16:26:57.127 INFO kablam! 11 | pub fn new(village: VillageRef) -> VillageMind { Oct 14 16:26:57.127 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.127 INFO kablam! Oct 14 16:26:57.127 INFO kablam! warning: method is never used: `trade` Oct 14 16:26:57.127 INFO kablam! --> src/village_mind/mod.rs:19:5 Oct 14 16:26:57.127 INFO kablam! | Oct 14 16:26:57.127 INFO kablam! 19 | pub fn trade(&mut self) -> Vec { Oct 14 16:26:57.127 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.127 INFO kablam! Oct 14 16:26:57.127 INFO kablam! warning: method is never used: `manage_village` Oct 14 16:26:57.128 INFO kablam! --> src/village_mind/mod.rs:24:5 Oct 14 16:26:57.128 INFO kablam! | Oct 14 16:26:57.128 INFO kablam! 24 | pub fn manage_village(&mut self) { Oct 14 16:26:57.128 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:57.128 INFO kablam! Oct 14 16:26:57.135 INFO kablam! warning: variable `villageRC` should have a snake case name such as `village_rc` Oct 14 16:26:57.135 INFO kablam! --> src/simulation/mod.rs:45:13 Oct 14 16:26:57.135 INFO kablam! | Oct 14 16:26:57.135 INFO kablam! 45 | let villageRC = Rc::new(RefCell::new(village)); Oct 14 16:26:57.135 INFO kablam! | ^^^^^^^^^ Oct 14 16:26:57.135 INFO kablam! | Oct 14 16:26:57.135 INFO kablam! = note: #[warn(non_snake_case)] on by default Oct 14 16:26:57.135 INFO kablam! Oct 14 16:26:57.471 INFO kablam! Finished dev [unoptimized + debuginfo] target(s) in 0.88s Oct 14 16:26:57.473 INFO kablam! su: No module specific data is present Oct 14 16:26:58.047 INFO running `"docker" "rm" "-f" "a9560aa81a1bba37d7cb67e595b52c0713790743d9d9f62fea43073e3ce1e7dc"` Oct 14 16:26:58.348 INFO blam! a9560aa81a1bba37d7cb67e595b52c0713790743d9d9f62fea43073e3ce1e7dc Oct 14 16:26:58.358 INFO running `"docker" "create" "-v" "/mnt/big/crater/./work/local/target-dirs/rustdoc-test-static-cling-1/worker-5/master#0e07c4281c343e9e15a0a8fca79538ad1a8eb513:/target:rw,Z" "-v" "/mnt/big/crater/./work/local/test-source/worker-5/rustdoc-test-static-cling-1/master#0e07c4281c343e9e15a0a8fca79538ad1a8eb513:/source:ro,Z" "-v" "/mnt/big/crater/./work/local/cargo-home:/cargo-home:ro,Z" "-v" "/mnt/big/crater/./work/local/rustup-home:/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/source" "-e" "USER_ID=1000" "-e" "CMD=cargo +0e07c4281c343e9e15a0a8fca79538ad1a8eb513-alt test --frozen --no-run" "-e" "CARGO_TARGET_DIR=/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/cargo-home" "-e" "RUSTUP_HOME=/rustup-home" "-m" "1536M" "--network" "none" "crater"` Oct 14 16:26:58.792 INFO blam! 69aba5456113221bbce52ae0b5a732c0c572136d413299b9679de53c3c303a18 Oct 14 16:26:58.793 INFO running `"docker" "start" "-a" "69aba5456113221bbce52ae0b5a732c0c572136d413299b9679de53c3c303a18"` Oct 14 16:26:59.729 INFO kablam! usermod: no changes Oct 14 16:26:59.763 INFO kablam! Compiling econ-sim v0.1.0 (/source) Oct 14 16:26:59.981 INFO kablam! warning: unused import: `village_mind::*` Oct 14 16:26:59.982 INFO kablam! --> src/simulation/mod.rs:181:9 Oct 14 16:26:59.983 INFO kablam! | Oct 14 16:26:59.983 INFO kablam! 181 | use village_mind::*; Oct 14 16:26:59.984 INFO kablam! | ^^^^^^^^^^^^^^^ Oct 14 16:26:59.984 INFO kablam! | Oct 14 16:26:59.985 INFO kablam! = note: #[warn(unused_imports)] on by default Oct 14 16:26:59.985 INFO kablam! Oct 14 16:26:59.986 INFO kablam! warning: unused import: `village::resource::*` Oct 14 16:26:59.986 INFO kablam! --> src/simulation/mod.rs:183:9 Oct 14 16:26:59.991 INFO kablam! | Oct 14 16:26:59.991 INFO kablam! 183 | use village::resource::*; Oct 14 16:26:59.991 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:59.991 INFO kablam! Oct 14 16:26:59.991 INFO kablam! warning: unused import: `village_mind::trade_request::*` Oct 14 16:26:59.991 INFO kablam! --> src/simulation/mod.rs:184:9 Oct 14 16:26:59.991 INFO kablam! | Oct 14 16:26:59.991 INFO kablam! 184 | use village_mind::trade_request::*; Oct 14 16:26:59.991 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:26:59.991 INFO kablam! Oct 14 16:26:59.991 INFO kablam! warning: unused import: `village::worker::*` Oct 14 16:26:59.991 INFO kablam! --> src/village/mod.rs:140:9 Oct 14 16:26:59.991 INFO kablam! | Oct 14 16:26:59.991 INFO kablam! 140 | use village::worker::*; Oct 14 16:26:59.991 INFO kablam! | ^^^^^^^^^^^^^^^^^^ Oct 14 16:26:59.991 INFO kablam! Oct 14 16:27:00.307 INFO kablam! warning: unused variable: `w` Oct 14 16:27:00.307 INFO kablam! --> src/simulation/mod.rs:187:23 Oct 14 16:27:00.307 INFO kablam! | Oct 14 16:27:00.307 INFO kablam! 187 | Village::new(|w: &worker::Worker| false) Oct 14 16:27:00.307 INFO kablam! | ^ help: consider using `_w` instead Oct 14 16:27:00.307 INFO kablam! | Oct 14 16:27:00.307 INFO kablam! = note: #[warn(unused_variables)] on by default Oct 14 16:27:00.307 INFO kablam! Oct 14 16:27:00.307 INFO kablam! warning: unused variable: `w` Oct 14 16:27:00.307 INFO kablam! --> src/village/mod.rs:143:23 Oct 14 16:27:00.307 INFO kablam! | Oct 14 16:27:00.307 INFO kablam! 143 | Village::new(|w: &Worker| false) Oct 14 16:27:00.307 INFO kablam! | ^ help: consider using `_w` instead Oct 14 16:27:00.307 INFO kablam! Oct 14 16:27:00.307 INFO kablam! warning: unused variable: `w` Oct 14 16:27:00.307 INFO kablam! --> src/village_mind/mod.rs:38:44 Oct 14 16:27:00.307 INFO kablam! | Oct 14 16:27:00.307 INFO kablam! 38 | Rc::new(RefCell::new(Village::new(|w: &Worker| false))) Oct 14 16:27:00.307 INFO kablam! | ^ help: consider using `_w` instead Oct 14 16:27:00.307 INFO kablam! Oct 14 16:27:00.307 INFO kablam! warning: unused variable: `x` Oct 14 16:27:00.307 INFO kablam! --> src/village/mod.rs:278:57 Oct 14 16:27:00.307 INFO kablam! | Oct 14 16:27:00.307 INFO kablam! 278 | let r1 = v.create_resource(ResourceType::Wood, |x| 2 as f64); Oct 14 16:27:00.307 INFO kablam! | ^ help: consider using `_x` instead Oct 14 16:27:00.307 INFO kablam! Oct 14 16:27:00.307 INFO kablam! warning: unused variable: `r1` Oct 14 16:27:00.307 INFO kablam! --> src/village/mod.rs:278:13 Oct 14 16:27:00.307 INFO kablam! | Oct 14 16:27:00.307 INFO kablam! 278 | let r1 = v.create_resource(ResourceType::Wood, |x| 2 as f64); Oct 14 16:27:00.307 INFO kablam! | ^^ help: consider using `_r1` instead Oct 14 16:27:00.307 INFO kablam! Oct 14 16:27:00.343 INFO kablam! warning: variable does not need to be mutable Oct 14 16:27:00.343 INFO kablam! --> src/simulation/mod.rs:200:13 Oct 14 16:27:00.343 INFO kablam! | Oct 14 16:27:00.343 INFO kablam! 200 | let mut simulation = Simulation::new(); Oct 14 16:27:00.343 INFO kablam! | ----^^^^^^^^^^ Oct 14 16:27:00.343 INFO kablam! | | Oct 14 16:27:00.343 INFO kablam! | help: remove this `mut` Oct 14 16:27:00.343 INFO kablam! | Oct 14 16:27:00.343 INFO kablam! = note: #[warn(unused_mut)] on by default Oct 14 16:27:00.343 INFO kablam! Oct 14 16:27:00.347 INFO kablam! warning: variable does not need to be mutable Oct 14 16:27:00.347 INFO kablam! --> src/simulation/mod.rs:207:13 Oct 14 16:27:00.347 INFO kablam! | Oct 14 16:27:00.347 INFO kablam! 207 | let mut simulation = Simulation::new(); Oct 14 16:27:00.347 INFO kablam! | ----^^^^^^^^^^ Oct 14 16:27:00.347 INFO kablam! | | Oct 14 16:27:00.347 INFO kablam! | help: remove this `mut` Oct 14 16:27:00.347 INFO kablam! Oct 14 16:27:00.411 INFO kablam! warning: method is never used: `simulate` Oct 14 16:27:00.411 INFO kablam! --> src/simulation/mod.rs:58:5 Oct 14 16:27:00.411 INFO kablam! | Oct 14 16:27:00.411 INFO kablam! 58 | pub fn simulate(&mut self) { Oct 14 16:27:00.411 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:27:00.411 INFO kablam! | Oct 14 16:27:00.411 INFO kablam! = note: #[warn(dead_code)] on by default Oct 14 16:27:00.411 INFO kablam! Oct 14 16:27:00.411 INFO kablam! warning: method is never used: `new` Oct 14 16:27:00.411 INFO kablam! --> src/village/resource.rs:29:5 Oct 14 16:27:00.411 INFO kablam! | Oct 14 16:27:00.411 INFO kablam! 29 | pub fn new(resource_type : ResourceType, resource_id : ResourceId, collect_resource : CollectResource) -> Resource { Oct 14 16:27:00.411 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:27:00.411 INFO kablam! Oct 14 16:27:00.411 INFO kablam! warning: method is never used: `resource` Oct 14 16:27:00.411 INFO kablam! --> src/village/mod.rs:87:5 Oct 14 16:27:00.411 INFO kablam! | Oct 14 16:27:00.411 INFO kablam! 87 | pub fn resource(&self, resource_id: ResourceId) -> Option<&Resource> { Oct 14 16:27:00.411 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:27:00.411 INFO kablam! Oct 14 16:27:00.411 INFO kablam! warning: field is never used: `village` Oct 14 16:27:00.411 INFO kablam! --> src/village_mind/mod.rs:7:5 Oct 14 16:27:00.411 INFO kablam! | Oct 14 16:27:00.411 INFO kablam! 7 | village: VillageRef, Oct 14 16:27:00.411 INFO kablam! | ^^^^^^^^^^^^^^^^^^^ Oct 14 16:27:00.411 INFO kablam! Oct 14 16:27:00.423 INFO kablam! warning: method is never used: `manage_village` Oct 14 16:27:00.423 INFO kablam! --> src/village_mind/mod.rs:24:5 Oct 14 16:27:00.423 INFO kablam! | Oct 14 16:27:00.423 INFO kablam! 24 | pub fn manage_village(&mut self) { Oct 14 16:27:00.423 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:27:00.423 INFO kablam! Oct 14 16:27:00.423 INFO kablam! warning: variable `villageRC` should have a snake case name such as `village_rc` Oct 14 16:27:00.423 INFO kablam! --> src/simulation/mod.rs:45:13 Oct 14 16:27:00.423 INFO kablam! | Oct 14 16:27:00.423 INFO kablam! 45 | let villageRC = Rc::new(RefCell::new(village)); Oct 14 16:27:00.423 INFO kablam! | ^^^^^^^^^ Oct 14 16:27:00.423 INFO kablam! | Oct 14 16:27:00.423 INFO kablam! = note: #[warn(non_snake_case)] on by default Oct 14 16:27:00.423 INFO kablam! Oct 14 16:27:00.423 INFO kablam! warning: unused `std::result::Result` which must be used Oct 14 16:27:00.423 INFO kablam! --> src/village/mod.rs:170:9 Oct 14 16:27:00.423 INFO kablam! | Oct 14 16:27:00.423 INFO kablam! 170 | v.assign_worker(w1, r1); Oct 14 16:27:00.423 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:27:00.423 INFO kablam! | Oct 14 16:27:00.423 INFO kablam! = note: #[warn(unused_must_use)] on by default Oct 14 16:27:00.423 INFO kablam! = note: this `Result` may be an `Err` variant, which should be handled Oct 14 16:27:00.423 INFO kablam! Oct 14 16:27:00.423 INFO kablam! warning: unused `std::result::Result` which must be used Oct 14 16:27:00.423 INFO kablam! --> src/village/mod.rs:182:9 Oct 14 16:27:00.423 INFO kablam! | Oct 14 16:27:00.423 INFO kablam! 182 | v.assign_worker(w1, r1); Oct 14 16:27:00.423 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:27:00.423 INFO kablam! | Oct 14 16:27:00.423 INFO kablam! = note: this `Result` may be an `Err` variant, which should be handled Oct 14 16:27:00.423 INFO kablam! Oct 14 16:27:00.423 INFO kablam! warning: unused `std::result::Result` which must be used Oct 14 16:27:00.423 INFO kablam! --> src/village/mod.rs:183:9 Oct 14 16:27:00.423 INFO kablam! | Oct 14 16:27:00.423 INFO kablam! 183 | v.assign_worker(w1, 0); Oct 14 16:27:00.423 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:27:00.423 INFO kablam! | Oct 14 16:27:00.423 INFO kablam! = note: this `Result` may be an `Err` variant, which should be handled Oct 14 16:27:00.423 INFO kablam! Oct 14 16:27:00.423 INFO kablam! warning: unused `std::result::Result` which must be used Oct 14 16:27:00.423 INFO kablam! --> src/village/mod.rs:220:9 Oct 14 16:27:00.423 INFO kablam! | Oct 14 16:27:00.423 INFO kablam! 220 | v.assign_worker(w1, r1); Oct 14 16:27:00.423 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:27:00.423 INFO kablam! | Oct 14 16:27:00.423 INFO kablam! = note: this `Result` may be an `Err` variant, which should be handled Oct 14 16:27:00.423 INFO kablam! Oct 14 16:27:00.423 INFO kablam! warning: unused `std::result::Result` which must be used Oct 14 16:27:00.423 INFO kablam! --> src/village/mod.rs:221:9 Oct 14 16:27:00.423 INFO kablam! | Oct 14 16:27:00.423 INFO kablam! 221 | v.assign_worker(w2, r1); Oct 14 16:27:00.423 INFO kablam! | ^^^^^^^^^^^^^^^^^^^^^^^^ Oct 14 16:27:00.423 INFO kablam! | Oct 14 16:27:00.423 INFO kablam! = note: this `Result` may be an `Err` variant, which should be handled Oct 14 16:27:00.423 INFO kablam! Oct 14 16:27:02.087 INFO kablam! Finished dev [unoptimized + debuginfo] target(s) in 2.34s Oct 14 16:27:02.087 INFO kablam! su: No module specific data is present Oct 14 16:27:02.495 INFO running `"docker" "rm" "-f" "69aba5456113221bbce52ae0b5a732c0c572136d413299b9679de53c3c303a18"` Oct 14 16:27:02.588 INFO blam! 69aba5456113221bbce52ae0b5a732c0c572136d413299b9679de53c3c303a18 Oct 14 16:27:02.589 INFO running `"docker" "create" "-v" "/mnt/big/crater/./work/local/target-dirs/rustdoc-test-static-cling-1/worker-5/master#0e07c4281c343e9e15a0a8fca79538ad1a8eb513:/target:rw,Z" "-v" "/mnt/big/crater/./work/local/test-source/worker-5/rustdoc-test-static-cling-1/master#0e07c4281c343e9e15a0a8fca79538ad1a8eb513:/source:ro,Z" "-v" "/mnt/big/crater/./work/local/cargo-home:/cargo-home:ro,Z" "-v" "/mnt/big/crater/./work/local/rustup-home:/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/source" "-e" "USER_ID=1000" "-e" "CMD=cargo +0e07c4281c343e9e15a0a8fca79538ad1a8eb513-alt test --frozen" "-e" "CARGO_TARGET_DIR=/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/cargo-home" "-e" "RUSTUP_HOME=/rustup-home" "-m" "1536M" "--network" "none" "crater"` Oct 14 16:27:02.750 INFO blam! 30840f06de9e22cb3141238fc541b463d9667c6603056d9d5a6dc802bdea8363 Oct 14 16:27:02.753 INFO running `"docker" "start" "-a" "30840f06de9e22cb3141238fc541b463d9667c6603056d9d5a6dc802bdea8363"` Oct 14 16:27:03.309 INFO kablam! usermod: no changes Oct 14 16:27:03.343 INFO kablam! Finished dev [unoptimized + debuginfo] target(s) in 0.01s Oct 14 16:27:03.343 INFO kablam! Running /target/debug/deps/econ_sim-d70baef5aace8b0e Oct 14 16:27:03.345 INFO blam! Oct 14 16:27:03.345 INFO blam! running 23 tests Oct 14 16:27:03.346 INFO blam! test simulation::tests::handle_trades_multiple_rounds_downward ... ok Oct 14 16:27:03.346 INFO blam! test simulation::tests::handle_trades_no_requests ... ok Oct 14 16:27:03.347 INFO blam! test simulation::tests::handle_trades_multiple_rounds_upward ... ok Oct 14 16:27:03.347 INFO blam! test simulation::tests::add_village ... ok Oct 14 16:27:03.347 INFO blam! test simulation::tests::initial_resource_prices ... ok Oct 14 16:27:03.347 INFO blam! test simulation::tests::initial_price_directions ... ok Oct 14 16:27:03.347 INFO blam! test simulation::tests::handle_trades_price_minimum ... ok Oct 14 16:27:03.347 INFO blam! test simulation::tests::handle_trades_upward_price ... ok Oct 14 16:27:03.349 INFO blam! test village::tests::assign_worker_to_resource_invalid_worker_id ... ok Oct 14 16:27:03.349 INFO blam! test village::tests::create_resources ... ok Oct 14 16:27:03.349 INFO blam! test village::tests::get_resources_by_type ... ok Oct 14 16:27:03.350 INFO blam! test village::tests::assign_worker_to_resource ... ok Oct 14 16:27:03.350 INFO blam! test village::tests::simulate_increase_worker_age_multiple ... ok Oct 14 16:27:03.350 INFO blam! test village::tests::simulate_collect_resources ... ok Oct 14 16:27:03.350 INFO blam! test village::tests::simulate_worker_death ... ok Oct 14 16:27:03.350 INFO blam! test village::tests::assign_worker_to_resource_invalid_resource_id ... ok Oct 14 16:27:03.351 INFO blam! test village::tests::unassign_worker_from_resource ... ok Oct 14 16:27:03.351 INFO blam! test village_mind::tests::trade_test ... ok Oct 14 16:27:03.353 INFO blam! test simulation::tests::handle_trades_downward_price ... ok Oct 14 16:27:03.353 INFO blam! test village::tests::simulate_increase_worker_age ... ok Oct 14 16:27:03.353 INFO blam! test simulation::tests::handle_trades_basic_sell_and_buy ... ok Oct 14 16:27:03.354 INFO blam! test village::tests::simulate_resource_collect ... ok Oct 14 16:27:03.354 INFO kablam! su: No module specific data is present Oct 14 16:27:03.354 INFO blam! test village::tests::stockpile_starts_empty ... ok Oct 14 16:27:03.354 INFO blam! Oct 14 16:27:03.354 INFO blam! test result: ok. 23 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out Oct 14 16:27:03.354 INFO blam! Oct 14 16:27:03.600 INFO running `"docker" "rm" "-f" "30840f06de9e22cb3141238fc541b463d9667c6603056d9d5a6dc802bdea8363"` Oct 14 16:27:03.672 INFO blam! 30840f06de9e22cb3141238fc541b463d9667c6603056d9d5a6dc802bdea8363