mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Track unsafe blocks, don't trigger missing unsafe diagnostic when unsafe exprs within unsafe block
This commit is contained in:
parent
3df0f9ce7e
commit
278cbf12cd
7 changed files with 82 additions and 19 deletions
|
@ -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...).
|
||||
///
|
||||
/// ```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue