Skip to content

Commit 3a75182

Browse files
committed
---
yaml --- r: 272611 b: refs/heads/auto c: f680c62 h: refs/heads/master i: 272609: fe3c4d3 272607: 3406aa0
1 parent 60bbe97 commit 3a75182

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
88
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
99
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1010
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
11-
refs/heads/auto: 4e6b178649b30b060cce043862dbaeedd361f2c7
11+
refs/heads/auto: f680c623d4bcc30772f4eed400631128ffedda05
1212
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1313
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
1414
refs/tags/0.2: 1754d02027f2924bed83b0160ee340c7f41d5ea1

branches/auto/src/librustc/mir/repr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ impl ScopeId {
698698

699699
#[derive(Clone, Debug, RustcEncodable, RustcDecodable)]
700700
pub struct ScopeData {
701+
pub span: Span,
701702
pub parent_scope: Option<ScopeId>,
702703
}
703704

branches/auto/src/librustc/mir/visit.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,11 @@ macro_rules! make_mir_visitor {
298298
fn super_scope_data(&mut self,
299299
scope_data: & $($mutability)* ScopeData) {
300300
let ScopeData {
301+
ref $($mutability)* span,
301302
ref $($mutability)* parent_scope,
302303
} = *scope_data;
303304

305+
self.visit_span(span);
304306
if let Some(ref $($mutability)* parent_scope) = *parent_scope {
305307
self.visit_scope_id(parent_scope);
306308
}

branches/auto/src/librustc_mir/build/scope.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,9 @@ impl<'a,'tcx> Builder<'a,'tcx> {
255255
debug!("push_scope({:?})", extent);
256256
let parent_id = self.scopes.last().map(|s| s.id);
257257
let id = ScopeId::new(self.scope_datas.len());
258+
let tcx = self.hir.tcx();
258259
self.scope_datas.push(ScopeData {
260+
span: extent.span(&tcx.region_maps, &tcx.map).unwrap_or(DUMMY_SP),
259261
parent_scope: parent_id,
260262
});
261263
self.scopes.push(Scope {

0 commit comments

Comments
 (0)