Skip to content

Commit ddec763

Browse files
committed
---
yaml --- r: 273527 b: refs/heads/beta c: a2bab6f h: refs/heads/master i: 273525: 10f6828 273523: bba2480 273519: a55c327
1 parent 6b585a9 commit ddec763

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
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: 14a5657a9a22580aecdbcd72fdea35e4c30f36a5
26+
refs/heads/beta: a2bab6f3e1f8b830b311e30a5a154a351a29e001
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,21 @@ pub enum BorrowKind {
156156
/// decl, a let, etc.
157157
#[derive(Clone, Debug, RustcEncodable, RustcDecodable)]
158158
pub struct VarDecl<'tcx> {
159+
/// `let mut x` vs `let x`
159160
pub mutability: Mutability,
161+
162+
/// name that user gave the variable; not that, internally,
163+
/// mir references variables by index
160164
pub name: Name,
165+
166+
/// type inferred for this variable (`let x: ty = ...`)
161167
pub ty: Ty<'tcx>,
162-
pub scope: ScopeId, // scope in which variable was declared
163-
pub span: Span, // span where variable was declared
168+
169+
/// scope in which variable was declared
170+
pub scope: ScopeId,
171+
172+
/// span where variable was declared
173+
pub span: Span,
164174
}
165175

166176
/// A "temp" is a temporary that we place on the stack. They are

0 commit comments

Comments
 (0)