-
-
Save zwarich/afda62376ccab80dcf19 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
/Users/mozilla/rust/src/libsyntax/ast_map/mod.rs:375:47: 378:14 error: borrowed value does not live long enough | |
/Users/mozilla/rust/src/libsyntax/ast_map/mod.rs:375 self.with_path_next(parent, Some(&LinkedPathNode { | |
/Users/mozilla/rust/src/libsyntax/ast_map/mod.rs:376 node: self.get_path_elem(id), | |
/Users/mozilla/rust/src/libsyntax/ast_map/mod.rs:377 next: next | |
/Users/mozilla/rust/src/libsyntax/ast_map/mod.rs:378 }), f) | |
/Users/mozilla/rust/src/libsyntax/ast_map/mod.rs:352:89: 380:6 note: reference must be valid for the anonymous lifetime #2 defined on the block at 352:88... | |
/Users/mozilla/rust/src/libsyntax/ast_map/mod.rs:352 fn with_path_next<T>(&self, id: NodeId, next: LinkedPath, f: |PathElems| -> T) -> T { | |
/Users/mozilla/rust/src/libsyntax/ast_map/mod.rs:353 let parent = self.get_parent(id); | |
/Users/mozilla/rust/src/libsyntax/ast_map/mod.rs:354 let parent = match self.find_entry(id) { | |
/Users/mozilla/rust/src/libsyntax/ast_map/mod.rs:355 Some(EntryForeignItem(..)) | Some(EntryVariant(..)) => { | |
/Users/mozilla/rust/src/libsyntax/ast_map/mod.rs:356 // Anonymous extern items, enum variants and struct ctors | |
/Users/mozilla/rust/src/libsyntax/ast_map/mod.rs:357 // go in the parent scope. | |
... | |
/Users/mozilla/rust/src/libsyntax/ast_map/mod.rs:374:16: 379:10 note: ...but borrowed value is only valid for the expression at 374:15 | |
/Users/mozilla/rust/src/libsyntax/ast_map/mod.rs:374 } else { | |
/Users/mozilla/rust/src/libsyntax/ast_map/mod.rs:375 self.with_path_next(parent, Some(&LinkedPathNode { | |
/Users/mozilla/rust/src/libsyntax/ast_map/mod.rs:376 node: self.get_path_elem(id), | |
/Users/mozilla/rust/src/libsyntax/ast_map/mod.rs:377 next: next | |
/Users/mozilla/rust/src/libsyntax/ast_map/mod.rs:378 }), f) | |
/Users/mozilla/rust/src/libsyntax/ast_map/mod.rs:379 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment