diff options
| author | bors <bors@rust-lang.org> | 2013-02-26 10:06:45 -0800 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-02-26 10:06:45 -0800 |
| commit | 565ec93fd3805d1c8d24fa10e51f6b95975c880f (patch) | |
| tree | 6722e7ca5ce29d2abf19869475220d7ee1b282b7 /src/libsyntax/parse/parser.rs | |
| parent | 6439e286f90a34d96cec91d82f941f7572817939 (diff) | |
| parent | c9dd917fad8ead284643b9873de60e3df894fb59 (diff) | |
| download | rust-565ec93fd3805d1c8d24fa10e51f6b95975c880f.tar.gz rust-565ec93fd3805d1c8d24fa10e51f6b95975c880f.zip | |
auto merge of #5110 : pcwalton/rust/and-const, r=pcwalton
r? @brson
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 853b1408050..af25a4f6e58 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -75,7 +75,7 @@ use parse::obsolete::{ObsoleteMoveInit, ObsoleteBinaryMove}; use parse::obsolete::{ObsoleteStructCtor, ObsoleteWith}; use parse::obsolete::{ObsoleteSyntax, ObsoleteLowerCaseKindBounds}; use parse::obsolete::{ObsoleteUnsafeBlock, ObsoleteImplSyntax}; -use parse::obsolete::{ObsoleteTraitBoundSeparator}; +use parse::obsolete::{ObsoleteTraitBoundSeparator, ObsoleteMutOwnedPointer}; use parse::prec::{as_prec, token_to_binop}; use parse::token::{can_begin_expr, is_ident, is_ident_or_path}; use parse::token::{is_plain_ident, INTERPOLATED, special_idents}; @@ -677,6 +677,11 @@ pub impl Parser { // rather than boxed ptrs. But the special casing of str/vec is not // reflected in the AST type. let mt = self.parse_mt(); + + if mt.mutbl == m_mutbl && sigil == OwnedSigil { + self.obsolete(*self.last_span, ObsoleteMutOwnedPointer); + } + ctor(mt) } |
