Flag unsafe blocks from format! as compiler-generated
This commit is contained in:
parent
19a6fabad8
commit
11e9c48353
5 changed files with 21 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue