diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-12-08 23:38:36 +0100 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-12-15 15:18:40 +0100 |
| commit | c00574848b029d3458326a728dae682e60323a0d (patch) | |
| tree | e9db4bab594fd8bc8fb398888f210f0a11da6010 /src/rustllvm/RustWrapper.cpp | |
| parent | 4dbdfb493357427a0f94ce09badef581f5d62bbd (diff) | |
| download | rust-c00574848b029d3458326a728dae682e60323a0d.tar.gz rust-c00574848b029d3458326a728dae682e60323a0d.zip | |
Ensure borrows of fn/closure params do not outlive invocations.
resolve_lifetime.rs: Switch from BlockScope to FnScope in ScopeChain construction. Lifetimes introduced by a fn signature are scoped to the call-site for that fn. (Note `add_scope_and_walk_fn` must only add FnScope for the walk of body, *not* of the fn signature.) region.rs: Introduce new CodeExtentData::CallSiteScope variant. Use CodeExtentData as the cx.parent, rather than just a NodeId. Change DestructionScopeData to CallSiteScopeData. regionck.rs: Thread call_site_scope via Rcx; constrain fn return values. (update; incorporated review feedback from niko.)
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
