Skip to content

Instantly share code, notes, and snippets.

@memoryruins
Created August 9, 2018 04:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save memoryruins/14a2aad7fc85d0429ae9e4240ec0dacb to your computer and use it in GitHub Desktop.
Save memoryruins/14a2aad7fc85d0429ae9e4240ec0dacb to your computer and use it in GitHub Desktop.
error[E0597]: `*child.raw` does not live long enough
--> librustc_codegen_llvm\back\archive.rs:252:70
|
252 | Some(child.raw)));
| ^^^^^^^^^ borrowed value does not live long enough
253 | strings.push(name);
254 | }
| - `*child.raw` dropped here while still borrowed
...
299 | members.len() as libc::size_t,
| ------- borrow used here in later iteration of loop
error[E0597]: `*child.raw` does not live long enough
--> librustc_codegen_llvm\back\archive.rs:290:73
|
290 | Some(child.raw));
| ^^^^^^^^^ borrowed value does not live long enough
...
293 | }
| - `*child.raw` dropped here while still borrowed
...
299 | members.len() as libc::size_t,
| ------- borrow used here in later iteration of loop
error: variable does not need to be mutable
--> librustc_codegen_llvm\type_of.rs:92:25
|
92 | let mut llty = Type::named_struct(cx, name);
| ----^^^^
| |
| help: remove this `mut`
|
= note: `-D unused-mut` implied by `-D warnings`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment