Track unsafe blocks, don't trigger missing unsafe diagnostic when unsafe exprs within unsafe block

This commit is contained in:
Paul Daniel Faria 2020-05-24 16:24:36 -04:00
parent 3df0f9ce7e
commit 278cbf12cd
7 changed files with 82 additions and 19 deletions

View file

@ -899,7 +899,7 @@ impl ast::LoopBodyOwner for LoopExpr {}
impl LoopExpr {
pub fn loop_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![loop]) }
}
/// Block expression with an optional prefix (label, try keyword,
/// Block expression with an optional prefix (label, try ketword,
/// unsafe keyword, async keyword...).
///
/// ```