[INFO] fetching crate smolusb 0.2.2... [INFO] checking smolusb-0.2.2 against try#943e2200e35c3825486c4671b6cab0107a07f8c1 for pr-148952 [INFO] extracting crate smolusb 0.2.2 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate smolusb 0.2.2 [INFO] finished tweaking crates.io crate smolusb 0.2.2 [INFO] tweaked toml for crates.io crate smolusb 0.2.2 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate smolusb 0.2.2 on toolchain 943e2200e35c3825486c4671b6cab0107a07f8c1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate smolusb 0.2.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7ee5bec3462933c1019673f19b7306447029385171824e77d166d9a737993272 [INFO] running `Command { std: "docker" "start" "-a" "7ee5bec3462933c1019673f19b7306447029385171824e77d166d9a737993272", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7ee5bec3462933c1019673f19b7306447029385171824e77d166d9a737993272", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7ee5bec3462933c1019673f19b7306447029385171824e77d166d9a737993272", kill_on_drop: false }` [INFO] [stdout] 7ee5bec3462933c1019673f19b7306447029385171824e77d166d9a737993272 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3240f6fb16572a2f2809c207f546e7fa6771adcb56b15710be8d21fc95da2b24 [INFO] running `Command { std: "docker" "start" "-a" "3240f6fb16572a2f2809c207f546e7fa6771adcb56b15710be8d21fc95da2b24", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking smolusb v0.2.2 (/opt/rustwide/workdir) [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/class/acm.rs:74:6 [INFO] [stdout] | [INFO] [stdout] 65 | pub const CONFIGURATION_DESCRIPTOR_0: ConfigurationDescriptor = ConfigurationDescriptor::new( [INFO] [stdout] | __________________________________________________________________- [INFO] [stdout] 66 | | ConfigurationDescriptorHeader { [INFO] [stdout] 67 | | bDescriptorType: DescriptorType::Configuration as u8, [INFO] [stdout] 68 | | bConfigurationValue: 1, [INFO] [stdout] ... | [INFO] [stdout] 74 | | &[ [INFO] [stdout] | | ______^ [INFO] [stdout] 75 | || // Interface #0 - Communications-Control [INFO] [stdout] 76 | || InterfaceDescriptor::new_cs( [INFO] [stdout] 77 | || InterfaceDescriptorHeader { [INFO] [stdout] ... || [INFO] [stdout] 141 | || ), [INFO] [stdout] 142 | || ], [INFO] [stdout] | ||_____^ creates a temporary value which is freed while still in use [INFO] [stdout] 143 | | ); [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |__temporary value is freed at the end of this statement [INFO] [stdout] | using this value as a constant requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/class/acm.rs:86:14 [INFO] [stdout] | [INFO] [stdout] 65 | pub const CONFIGURATION_DESCRIPTOR_0: ConfigurationDescriptor = ConfigurationDescriptor::new( [INFO] [stdout] | __________________________________________________________________- [INFO] [stdout] 66 | | ConfigurationDescriptorHeader { [INFO] [stdout] 67 | | bDescriptorType: DescriptorType::Configuration as u8, [INFO] [stdout] 68 | | bConfigurationValue: 1, [INFO] [stdout] ... | [INFO] [stdout] 86 | | &[ [INFO] [stdout] | | ______________^ [INFO] [stdout] 87 | || // Comm Class Header Functional Descriptor [INFO] [stdout] 88 | || ClassSpecificDescriptor { [INFO] [stdout] 89 | || bDescriptorSubtype: 0x00, [INFO] [stdout] ... || [INFO] [stdout] 104 | || }, [INFO] [stdout] 105 | || ], [INFO] [stdout] | ||_____________^ creates a temporary value which is freed while still in use [INFO] [stdout] ... | [INFO] [stdout] 142 | | ], [INFO] [stdout] 143 | | ); [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |__temporary value is freed at the end of this statement [INFO] [stdout] | using this value as a constant requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/class/acm.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 65 | pub const CONFIGURATION_DESCRIPTOR_0: ConfigurationDescriptor = ConfigurationDescriptor::new( [INFO] [stdout] | __________________________________________________________________- [INFO] [stdout] 66 | | ConfigurationDescriptorHeader { [INFO] [stdout] 67 | | bDescriptorType: DescriptorType::Configuration as u8, [INFO] [stdout] 68 | | bConfigurationValue: 1, [INFO] [stdout] ... | [INFO] [stdout] 106 | | &[EndpointDescriptor { [INFO] [stdout] | | ______________^ [INFO] [stdout] 107 | || bEndpointAddress: 0x83, // IN [INFO] [stdout] 108 | || bmAttributes: 0x03, // Interrupt [INFO] [stdout] 109 | || wMaxPacketSize: 64, [INFO] [stdout] 110 | || bInterval: 11, [INFO] [stdout] 111 | || ..EndpointDescriptor::new() [INFO] [stdout] 112 | || }], [INFO] [stdout] | ||______________^ creates a temporary value which is freed while still in use [INFO] [stdout] ... | [INFO] [stdout] 142 | | ], [INFO] [stdout] 143 | | ); [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |__temporary value is freed at the end of this statement [INFO] [stdout] | using this value as a constant requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/class/acm.rs:125:14 [INFO] [stdout] | [INFO] [stdout] 65 | pub const CONFIGURATION_DESCRIPTOR_0: ConfigurationDescriptor = ConfigurationDescriptor::new( [INFO] [stdout] | __________________________________________________________________- [INFO] [stdout] 66 | | ConfigurationDescriptorHeader { [INFO] [stdout] 67 | | bDescriptorType: DescriptorType::Configuration as u8, [INFO] [stdout] 68 | | bConfigurationValue: 1, [INFO] [stdout] ... | [INFO] [stdout] 125 | | &[ [INFO] [stdout] | | ______________^ [INFO] [stdout] 126 | || EndpointDescriptor { [INFO] [stdout] 127 | || bEndpointAddress: 0x84, // IN [INFO] [stdout] 128 | || bmAttributes: 0x02, // Bulk [INFO] [stdout] ... || [INFO] [stdout] 139 | || }, [INFO] [stdout] 140 | || ], [INFO] [stdout] | ||_____________^ creates a temporary value which is freed while still in use [INFO] [stdout] 141 | | ), [INFO] [stdout] 142 | | ], [INFO] [stdout] 143 | | ); [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |__temporary value is freed at the end of this statement [INFO] [stdout] | using this value as a constant requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/class/acm.rs:155:10 [INFO] [stdout] | [INFO] [stdout] 146 | / ConfigurationDescriptor::new( [INFO] [stdout] 147 | | ConfigurationDescriptorHeader { [INFO] [stdout] 148 | | bDescriptorType: DescriptorType::Configuration as u8, [INFO] [stdout] 149 | | bConfigurationValue: 1, [INFO] [stdout] ... | [INFO] [stdout] 155 | | &[ [INFO] [stdout] | | __________^ [INFO] [stdout] 156 | || // Interface #0 - Communications-Control [INFO] [stdout] 157 | || InterfaceDescriptor::new_cs( [INFO] [stdout] 158 | || InterfaceDescriptorHeader { [INFO] [stdout] ... || [INFO] [stdout] 222 | || ), [INFO] [stdout] 223 | || ], [INFO] [stdout] | ||_________^ creates a temporary value which is freed while still in use [INFO] [stdout] 224 | | ); [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |______temporary value is freed at the end of this statement [INFO] [stdout] | using this value as a constant requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/class/acm.rs:167:18 [INFO] [stdout] | [INFO] [stdout] 146 | / ConfigurationDescriptor::new( [INFO] [stdout] 147 | | ConfigurationDescriptorHeader { [INFO] [stdout] 148 | | bDescriptorType: DescriptorType::Configuration as u8, [INFO] [stdout] 149 | | bConfigurationValue: 1, [INFO] [stdout] ... | [INFO] [stdout] 167 | | &[ [INFO] [stdout] | | __________________^ [INFO] [stdout] 168 | || // Comm Class Header Functional Descriptor [INFO] [stdout] 169 | || ClassSpecificDescriptor { [INFO] [stdout] 170 | || bDescriptorSubtype: 0x00, [INFO] [stdout] ... || [INFO] [stdout] 185 | || }, [INFO] [stdout] 186 | || ], [INFO] [stdout] | ||_________________^ creates a temporary value which is freed while still in use [INFO] [stdout] ... | [INFO] [stdout] 223 | | ], [INFO] [stdout] 224 | | ); [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |______temporary value is freed at the end of this statement [INFO] [stdout] | using this value as a constant requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/class/acm.rs:187:18 [INFO] [stdout] | [INFO] [stdout] 146 | / ConfigurationDescriptor::new( [INFO] [stdout] 147 | | ConfigurationDescriptorHeader { [INFO] [stdout] 148 | | bDescriptorType: DescriptorType::Configuration as u8, [INFO] [stdout] 149 | | bConfigurationValue: 1, [INFO] [stdout] ... | [INFO] [stdout] 187 | | &[EndpointDescriptor { [INFO] [stdout] | | __________________^ [INFO] [stdout] 188 | || bEndpointAddress: 0x83, // IN [INFO] [stdout] 189 | || bmAttributes: 0x02, // Interrupt [INFO] [stdout] 190 | || wMaxPacketSize: 64, [INFO] [stdout] 191 | || bInterval: 11, [INFO] [stdout] 192 | || ..EndpointDescriptor::new() [INFO] [stdout] 193 | || }], [INFO] [stdout] | ||__________________^ creates a temporary value which is freed while still in use [INFO] [stdout] ... | [INFO] [stdout] 223 | | ], [INFO] [stdout] 224 | | ); [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |______temporary value is freed at the end of this statement [INFO] [stdout] | using this value as a constant requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/class/acm.rs:206:18 [INFO] [stdout] | [INFO] [stdout] 146 | / ConfigurationDescriptor::new( [INFO] [stdout] 147 | | ConfigurationDescriptorHeader { [INFO] [stdout] 148 | | bDescriptorType: DescriptorType::Configuration as u8, [INFO] [stdout] 149 | | bConfigurationValue: 1, [INFO] [stdout] ... | [INFO] [stdout] 206 | | &[ [INFO] [stdout] | | __________________^ [INFO] [stdout] 207 | || EndpointDescriptor { [INFO] [stdout] 208 | || bEndpointAddress: 0x84, // IN [INFO] [stdout] 209 | || bmAttributes: 0x02, // Bulk [INFO] [stdout] ... || [INFO] [stdout] 220 | || }, [INFO] [stdout] 221 | || ], [INFO] [stdout] | ||_________________^ creates a temporary value which is freed while still in use [INFO] [stdout] 222 | | ), [INFO] [stdout] 223 | | ], [INFO] [stdout] 224 | | ); [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |______temporary value is freed at the end of this statement [INFO] [stdout] | using this value as a constant requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/class/acm.rs:74:6 [INFO] [stdout] | [INFO] [stdout] 65 | pub const CONFIGURATION_DESCRIPTOR_0: ConfigurationDescriptor = ConfigurationDescriptor::new( [INFO] [stdout] | __________________________________________________________________- [INFO] [stdout] 66 | | ConfigurationDescriptorHeader { [INFO] [stdout] 67 | | bDescriptorType: DescriptorType::Configuration as u8, [INFO] [stdout] 68 | | bConfigurationValue: 1, [INFO] [stdout] ... | [INFO] [stdout] 74 | | &[ [INFO] [stdout] | | ______^ [INFO] [stdout] 75 | || // Interface #0 - Communications-Control [INFO] [stdout] 76 | || InterfaceDescriptor::new_cs( [INFO] [stdout] 77 | || InterfaceDescriptorHeader { [INFO] [stdout] ... || [INFO] [stdout] 141 | || ), [INFO] [stdout] 142 | || ], [INFO] [stdout] | ||_____^ creates a temporary value which is freed while still in use [INFO] [stdout] 143 | | ); [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |__temporary value is freed at the end of this statement [INFO] [stdout] | using this value as a constant requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `smolusb` (lib) due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/class/acm.rs:86:14 [INFO] [stdout] | [INFO] [stdout] 65 | pub const CONFIGURATION_DESCRIPTOR_0: ConfigurationDescriptor = ConfigurationDescriptor::new( [INFO] [stdout] | __________________________________________________________________- [INFO] [stdout] 66 | | ConfigurationDescriptorHeader { [INFO] [stdout] 67 | | bDescriptorType: DescriptorType::Configuration as u8, [INFO] [stdout] 68 | | bConfigurationValue: 1, [INFO] [stdout] ... | [INFO] [stdout] 86 | | &[ [INFO] [stdout] | | ______________^ [INFO] [stdout] 87 | || // Comm Class Header Functional Descriptor [INFO] [stdout] 88 | || ClassSpecificDescriptor { [INFO] [stdout] 89 | || bDescriptorSubtype: 0x00, [INFO] [stdout] ... || [INFO] [stdout] 104 | || }, [INFO] [stdout] 105 | || ], [INFO] [stdout] | ||_____________^ creates a temporary value which is freed while still in use [INFO] [stdout] ... | [INFO] [stdout] 142 | | ], [INFO] [stdout] 143 | | ); [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |__temporary value is freed at the end of this statement [INFO] [stdout] | using this value as a constant requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/class/acm.rs:106:14 [INFO] [stdout] | [INFO] [stdout] 65 | pub const CONFIGURATION_DESCRIPTOR_0: ConfigurationDescriptor = ConfigurationDescriptor::new( [INFO] [stdout] | __________________________________________________________________- [INFO] [stdout] 66 | | ConfigurationDescriptorHeader { [INFO] [stdout] 67 | | bDescriptorType: DescriptorType::Configuration as u8, [INFO] [stdout] 68 | | bConfigurationValue: 1, [INFO] [stdout] ... | [INFO] [stdout] 106 | | &[EndpointDescriptor { [INFO] [stdout] | | ______________^ [INFO] [stdout] 107 | || bEndpointAddress: 0x83, // IN [INFO] [stdout] 108 | || bmAttributes: 0x03, // Interrupt [INFO] [stdout] 109 | || wMaxPacketSize: 64, [INFO] [stdout] 110 | || bInterval: 11, [INFO] [stdout] 111 | || ..EndpointDescriptor::new() [INFO] [stdout] 112 | || }], [INFO] [stdout] | ||______________^ creates a temporary value which is freed while still in use [INFO] [stdout] ... | [INFO] [stdout] 142 | | ], [INFO] [stdout] 143 | | ); [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |__temporary value is freed at the end of this statement [INFO] [stdout] | using this value as a constant requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/class/acm.rs:125:14 [INFO] [stdout] | [INFO] [stdout] 65 | pub const CONFIGURATION_DESCRIPTOR_0: ConfigurationDescriptor = ConfigurationDescriptor::new( [INFO] [stdout] | __________________________________________________________________- [INFO] [stdout] 66 | | ConfigurationDescriptorHeader { [INFO] [stdout] 67 | | bDescriptorType: DescriptorType::Configuration as u8, [INFO] [stdout] 68 | | bConfigurationValue: 1, [INFO] [stdout] ... | [INFO] [stdout] 125 | | &[ [INFO] [stdout] | | ______________^ [INFO] [stdout] 126 | || EndpointDescriptor { [INFO] [stdout] 127 | || bEndpointAddress: 0x84, // IN [INFO] [stdout] 128 | || bmAttributes: 0x02, // Bulk [INFO] [stdout] ... || [INFO] [stdout] 139 | || }, [INFO] [stdout] 140 | || ], [INFO] [stdout] | ||_____________^ creates a temporary value which is freed while still in use [INFO] [stdout] 141 | | ), [INFO] [stdout] 142 | | ], [INFO] [stdout] 143 | | ); [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |__temporary value is freed at the end of this statement [INFO] [stdout] | using this value as a constant requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/class/acm.rs:155:10 [INFO] [stdout] | [INFO] [stdout] 146 | / ConfigurationDescriptor::new( [INFO] [stdout] 147 | | ConfigurationDescriptorHeader { [INFO] [stdout] 148 | | bDescriptorType: DescriptorType::Configuration as u8, [INFO] [stdout] 149 | | bConfigurationValue: 1, [INFO] [stdout] ... | [INFO] [stdout] 155 | | &[ [INFO] [stdout] | | __________^ [INFO] [stdout] 156 | || // Interface #0 - Communications-Control [INFO] [stdout] 157 | || InterfaceDescriptor::new_cs( [INFO] [stdout] 158 | || InterfaceDescriptorHeader { [INFO] [stdout] ... || [INFO] [stdout] 222 | || ), [INFO] [stdout] 223 | || ], [INFO] [stdout] | ||_________^ creates a temporary value which is freed while still in use [INFO] [stdout] 224 | | ); [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |______temporary value is freed at the end of this statement [INFO] [stdout] | using this value as a constant requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/class/acm.rs:167:18 [INFO] [stdout] | [INFO] [stdout] 146 | / ConfigurationDescriptor::new( [INFO] [stdout] 147 | | ConfigurationDescriptorHeader { [INFO] [stdout] 148 | | bDescriptorType: DescriptorType::Configuration as u8, [INFO] [stdout] 149 | | bConfigurationValue: 1, [INFO] [stdout] ... | [INFO] [stdout] 167 | | &[ [INFO] [stdout] | | __________________^ [INFO] [stdout] 168 | || // Comm Class Header Functional Descriptor [INFO] [stdout] 169 | || ClassSpecificDescriptor { [INFO] [stdout] 170 | || bDescriptorSubtype: 0x00, [INFO] [stdout] ... || [INFO] [stdout] 185 | || }, [INFO] [stdout] 186 | || ], [INFO] [stdout] | ||_________________^ creates a temporary value which is freed while still in use [INFO] [stdout] ... | [INFO] [stdout] 223 | | ], [INFO] [stdout] 224 | | ); [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |______temporary value is freed at the end of this statement [INFO] [stdout] | using this value as a constant requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/class/acm.rs:187:18 [INFO] [stdout] | [INFO] [stdout] 146 | / ConfigurationDescriptor::new( [INFO] [stdout] 147 | | ConfigurationDescriptorHeader { [INFO] [stdout] 148 | | bDescriptorType: DescriptorType::Configuration as u8, [INFO] [stdout] 149 | | bConfigurationValue: 1, [INFO] [stdout] ... | [INFO] [stdout] 187 | | &[EndpointDescriptor { [INFO] [stdout] | | __________________^ [INFO] [stdout] 188 | || bEndpointAddress: 0x83, // IN [INFO] [stdout] 189 | || bmAttributes: 0x02, // Interrupt [INFO] [stdout] 190 | || wMaxPacketSize: 64, [INFO] [stdout] 191 | || bInterval: 11, [INFO] [stdout] 192 | || ..EndpointDescriptor::new() [INFO] [stdout] 193 | || }], [INFO] [stdout] | ||__________________^ creates a temporary value which is freed while still in use [INFO] [stdout] ... | [INFO] [stdout] 223 | | ], [INFO] [stdout] 224 | | ); [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |______temporary value is freed at the end of this statement [INFO] [stdout] | using this value as a constant requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/class/acm.rs:206:18 [INFO] [stdout] | [INFO] [stdout] 146 | / ConfigurationDescriptor::new( [INFO] [stdout] 147 | | ConfigurationDescriptorHeader { [INFO] [stdout] 148 | | bDescriptorType: DescriptorType::Configuration as u8, [INFO] [stdout] 149 | | bConfigurationValue: 1, [INFO] [stdout] ... | [INFO] [stdout] 206 | | &[ [INFO] [stdout] | | __________________^ [INFO] [stdout] 207 | || EndpointDescriptor { [INFO] [stdout] 208 | || bEndpointAddress: 0x84, // IN [INFO] [stdout] 209 | || bmAttributes: 0x02, // Bulk [INFO] [stdout] ... || [INFO] [stdout] 220 | || }, [INFO] [stdout] 221 | || ], [INFO] [stdout] | ||_________________^ creates a temporary value which is freed while still in use [INFO] [stdout] 222 | | ), [INFO] [stdout] 223 | | ], [INFO] [stdout] 224 | | ); [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |______temporary value is freed at the end of this statement [INFO] [stdout] | using this value as a constant requires that borrow lasts for `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stderr] error: could not compile `smolusb` (lib test) due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "3240f6fb16572a2f2809c207f546e7fa6771adcb56b15710be8d21fc95da2b24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3240f6fb16572a2f2809c207f546e7fa6771adcb56b15710be8d21fc95da2b24", kill_on_drop: false }` [INFO] [stdout] 3240f6fb16572a2f2809c207f546e7fa6771adcb56b15710be8d21fc95da2b24