Skip to content

Commit cac76db

Browse files
coeff-aijcoord-e
andauthored
Update src/analyze/crate_.rs
Co-authored-by: Hiromi Ogawa <me@coord-e.com>
1 parent 49f5691 commit cac76db

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/analyze/crate_.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@ impl<'tcx, 'ctx> Analyzer<'tcx, 'ctx> {
4545
..
4646
},
4747
_,
48-
) if lit.kind == LitKind::Str => Some(lit.symbol.to_string()),
49-
_ => None,
50-
}
51-
.expect("invalid raw_command annotation");
48+
) if lit.kind == LitKind::Str => lit.symbol.to_string(),
49+
_ => panic!("invalid raw_command annotation"),
50+
};
5251

5352
self.ctx
5453
.system

0 commit comments

Comments
 (0)