Skip to content

Commit c9f0f52

Browse files
Ariel Ben-Yehudaarielb1
authored andcommitted
---
yaml --- r: 233674 b: refs/heads/beta c: 2bcc6d8 h: refs/heads/master v: v3
1 parent d7c573b commit c9f0f52

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 316510f5e216340d9ec1a2734e2f5ada87504689
26+
refs/heads/beta: 2bcc6d8ec7f525328a1e8c8ce423ac3ac015eb6d
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: 370fe2786109360f7c35b8ba552b83b773dd71d6
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/src/librustc/metadata/tydecode.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ impl<'a,'tcx> TyDecoder<'a,'tcx> {
269269
assert_eq!(self.next(), '[');
270270
let node_id = self.parse_uint() as ast::NodeId;
271271
assert_eq!(self.next(), '|');
272-
let first_stmt_index = self.parse_uint();
272+
let first_stmt_index = self.parse_u32();
273273
assert_eq!(self.next(), ']');
274274
let block_remainder = region::BlockRemainder {
275275
block: node_id, first_statement_index: first_stmt_index,
@@ -717,4 +717,3 @@ fn parse_unsafety(c: char) -> ast::Unsafety {
717717
_ => panic!("parse_unsafety: bad unsafety {}", c)
718718
}
719719
}
720-

branches/beta/src/librustc/middle/region.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl DestructionScopeData {
144144
RustcDecodable, Debug, Copy)]
145145
pub struct BlockRemainder {
146146
pub block: ast::NodeId,
147-
pub first_statement_index: usize,
147+
pub first_statement_index: u32,
148148
}
149149

150150
impl CodeExtent {
@@ -207,7 +207,7 @@ impl CodeExtent {
207207
//
208208
// (This is the special case aluded to in the
209209
// doc-comment for this method)
210-
let stmt_span = blk.stmts[r.first_statement_index].span;
210+
let stmt_span = blk.stmts[r.first_statement_index as usize].span;
211211
Some(Span { lo: stmt_span.hi, ..blk.span })
212212
}
213213
}
@@ -310,7 +310,7 @@ impl InnermostDeclaringBlock {
310310
struct DeclaringStatementContext {
311311
stmt_id: ast::NodeId,
312312
block_id: ast::NodeId,
313-
stmt_index: usize,
313+
stmt_index: u32,
314314
}
315315

316316
impl DeclaringStatementContext {
@@ -711,7 +711,7 @@ fn resolve_block(visitor: &mut RegionResolutionVisitor, blk: &ast::Block) {
711711
let declaring = DeclaringStatementContext {
712712
stmt_id: stmt_id,
713713
block_id: blk.id,
714-
stmt_index: i,
714+
stmt_index: i as u32,
715715
};
716716
record_superlifetime(
717717
visitor, declaring.to_code_extent(), statement.span);

0 commit comments

Comments
 (0)