diff options
| author | Simonas Kazlauskas <git@kazlauskas.me> | 2015-09-02 22:29:41 +0300 |
|---|---|---|
| committer | Simonas Kazlauskas <git@kazlauskas.me> | 2015-09-03 03:50:43 +0300 |
| commit | d8074e65b02812e96cd5ed987795f5e8cfcef78d (patch) | |
| tree | fc579b6df045fd1d3888120eda4c9cddc53a57b6 /src/libsyntax/ast.rs | |
| parent | cd138dc4475fa90b007969d0a4e00f230be777cf (diff) | |
| download | rust-d8074e65b02812e96cd5ed987795f5e8cfcef78d.tar.gz rust-d8074e65b02812e96cd5ed987795f5e8cfcef78d.zip | |
Use proper span for break and continue labels
Fixes #28109
Diffstat (limited to 'src/libsyntax/ast.rs')
| -rw-r--r-- | src/libsyntax/ast.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 25a3540c743..049d45b6e9e 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -891,9 +891,9 @@ pub enum Expr_ { /// A referencing operation (`&a` or `&mut a`) ExprAddrOf(Mutability, P<Expr>), /// A `break`, with an optional label to break - ExprBreak(Option<Ident>), + ExprBreak(Option<SpannedIdent>), /// A `continue`, with an optional label - ExprAgain(Option<Ident>), + ExprAgain(Option<SpannedIdent>), /// A `return`, with an optional value to be returned ExprRet(Option<P<Expr>>), |
