]> git.lizzy.rs Git - rust.git/commit
Auto merge of #30341 - pnkfelix:call-site-scope, r=nikomatsakis
authorbors <bors@rust-lang.org>
Wed, 16 Dec 2015 22:53:19 +0000 (22:53 +0000)
committerbors <bors@rust-lang.org>
Wed, 16 Dec 2015 22:53:19 +0000 (22:53 +0000)
commit4af427881405f95b8d87efea844cbd695fb55986
tree919c4c9a0d414809dfb1227197df7249db06594a
parent38da1a406472cf3c675c70fe2c0b1c665fce4b16
parent5299441954b4678f23f3c0c0b2080b3430a2d028
Auto merge of #30341 - pnkfelix:call-site-scope, r=nikomatsakis

Ensure borrows of fn/closure params do not outlive invocations.

Does this by adding a new CallSiteScope to the region (or rather code extent) hierarchy, which outlives even the ParameterScope (which in turn outlives the DestructionScope of a fn/closure's body).

Fix #29793

r? @nikomatsakis
src/librustc/middle/infer/error_reporting.rs
src/librustc/middle/liveness.rs
src/librustc/middle/region.rs
src/librustc/middle/resolve_lifetime.rs
src/librustc/middle/ty/mod.rs
src/librustc_metadata/tydecode.rs
src/librustc_typeck/astconv.rs
src/librustc_typeck/check/mod.rs
src/librustc_typeck/check/wfcheck.rs
src/librustc_typeck/collect.rs