Remove UnnecessaryUnsafe diagnostic, Fix Expr::Call unsafe analysis

This commit is contained in:
Paul Daniel Faria 2020-05-24 13:18:31 -04:00
parent b358fbfdf8
commit 499d4c454d
4 changed files with 22 additions and 70 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 ketword,
/// Block expression with an optional prefix (label, try keyword,
/// unsafe keyword, async keyword...).
///
/// ```