diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-09-05 20:50:10 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-09-11 00:13:41 -0700 |
| commit | 11e9c48353a6fcbfd036e5ee58b1d4b5f572d7eb (patch) | |
| tree | 0fe567f92d372b3d756a9e935ca35a82fee514bb /src/libsyntax/parse/parser.rs | |
| parent | 19a6fabad8e43a81617182eba24fb80e33da8e52 (diff) | |
| download | rust-11e9c48353a6fcbfd036e5ee58b1d4b5f572d7eb.tar.gz rust-11e9c48353a6fcbfd036e5ee58b1d4b5f572d7eb.zip | |
Flag unsafe blocks from format! as compiler-generated
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index b0bcc91f962..b5772a9eede 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1792,7 +1792,7 @@ impl Parser { } else if self.eat_keyword(keywords::Match) { return self.parse_match_expr(); } else if self.eat_keyword(keywords::Unsafe) { - return self.parse_block_expr(lo, UnsafeBlock(false)); + return self.parse_block_expr(lo, UnsafeBlock(ast::UserProvided)); } else if *self.token == token::LBRACKET { self.bump(); let mutbl = self.parse_mutability(); |
