diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-02-02 19:34:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-02 19:34:07 +0100 |
| commit | 3388e6d9fda3d2bd637b35bbcd71b18d28a026b7 (patch) | |
| tree | abb103be7dd3844bc27b6ac1a5c118447341c54d /compiler/rustc_save_analysis/src/dump_visitor.rs | |
| parent | 799bded9b44fd59b4647d4e2087b8d336f573bae (diff) | |
| parent | 670f5c6ef385f251df5cd7bcba9e8039a80bdb4d (diff) | |
| download | rust-3388e6d9fda3d2bd637b35bbcd71b18d28a026b7.tar.gz rust-3388e6d9fda3d2bd637b35bbcd71b18d28a026b7.zip | |
Rollup merge of #93590 - est31:let_else, r=lcnr
More let_else adoptions Continuation of #89933, #91018, #91481, #93046.
Diffstat (limited to 'compiler/rustc_save_analysis/src/dump_visitor.rs')
| -rw-r--r-- | compiler/rustc_save_analysis/src/dump_visitor.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_save_analysis/src/dump_visitor.rs b/compiler/rustc_save_analysis/src/dump_visitor.rs index 8b4ab77dffb..a3f7e84b1d5 100644 --- a/compiler/rustc_save_analysis/src/dump_visitor.rs +++ b/compiler/rustc_save_analysis/src/dump_visitor.rs @@ -47,11 +47,10 @@ use rls_data::{ use tracing::{debug, error}; +#[rustfmt::skip] // https://github.com/rust-lang/rustfmt/issues/5213 macro_rules! down_cast_data { ($id:ident, $kind:ident, $sp:expr) => { - let $id = if let super::Data::$kind(data) = $id { - data - } else { + let super::Data::$kind($id) = $id else { span_bug!($sp, "unexpected data kind: {:?}", $id); }; }; |
