Stabilize unsafe extern blocks (RFC 3484)
This commit is contained in:
parent
20f23abbec
commit
8366c7fe9c
41 changed files with 85 additions and 163 deletions
|
@ -1205,9 +1205,6 @@ impl<'a> Parser<'a> {
|
|||
if self.eat_keyword_case(kw::Unsafe, case) {
|
||||
Safety::Unsafe(self.prev_token.uninterpolated_span())
|
||||
} else if self.eat_keyword_case(kw::Safe, case) {
|
||||
self.psess
|
||||
.gated_spans
|
||||
.gate(sym::unsafe_extern_blocks, self.prev_token.uninterpolated_span());
|
||||
Safety::Safe(self.prev_token.uninterpolated_span())
|
||||
} else {
|
||||
Safety::Default
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue