mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
use ctry
This commit is contained in:
parent
f4860870da
commit
aa7fd563a4
4 changed files with 13 additions and 22 deletions
|
@ -9,6 +9,15 @@ extern crate relative_path;
|
|||
extern crate rustc_hash;
|
||||
extern crate salsa;
|
||||
|
||||
macro_rules! ctry {
|
||||
($expr:expr) => {
|
||||
match $expr {
|
||||
None => return Ok(None),
|
||||
Some(it) => it,
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
mod arena;
|
||||
mod db;
|
||||
mod loc2id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue