Created
May 4, 2017 12:03
-
-
Save mitsuhiko/f88f3d981ef126fa3acddcb506fbc77c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
--> src/read.rs:155:51 | |
| | |
155 | if let &OFile::MachFile { ref header, ref commands, .. } = file { | |
| ^^^^^^^^^^^^ | |
| | |
note: first, the lifetime cannot outlive the lifetime 'a as defined on the body at 154:75... | |
--> src/read.rs:154:76 | |
| | |
154 | fn extract_variants<'a>(rv: &'a mut Vec<Variant>, file: &'a OFile) { | |
| ^ | |
note: ...so that reference does not outlive borrowed content | |
--> src/read.rs:155:51 | |
| | |
155 | if let &OFile::MachFile { ref header, ref commands, .. } = file { | |
| ^^^^^^^^^^^^ | |
note: but, the lifetime must be valid for the anonymous lifetime #1 defined on the body at 154:75... | |
--> src/read.rs:154:76 | |
| | |
154 | fn extract_variants<'a>(rv: &'a mut Vec<Variant>, file: &'a OFile) { | |
| ^ | |
note: ...so that expression is assignable (expected read::Variant<'_>, found read::Variant<'_>) | |
--> src/read.rs:183:25 | |
| | |
183 | rv.push(Variant { | |
| _________________________^ starting here... | |
184 | | cpu_name: get_arch_name_from_types(header.cputype, | |
185 | | header.cpusubtype) | |
186 | | .unwrap_or("<unknown>"), | |
187 | | uuid: variant_uuid, | |
188 | | name: variant_name, | |
189 | | vmaddr: variant_vmaddr, | |
190 | | vmsize: variant_vmsize, | |
191 | | }) | |
| |_________________^ ...ending here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment