mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Implement BeginPanic for mir eval
This commit is contained in:
parent
a9140e197c
commit
6de838c255
4 changed files with 44 additions and 7 deletions
|
@ -1138,7 +1138,7 @@ impl Evaluator<'_> {
|
|||
let mut ty = self.operand_ty(lhs, locals)?;
|
||||
while let TyKind::Ref(_, _, z) = ty.kind(Interner) {
|
||||
ty = z.clone();
|
||||
let size = if ty.kind(Interner) == &TyKind::Str {
|
||||
let size = if ty.is_str() {
|
||||
if *op != BinOp::Eq {
|
||||
never!("Only eq is builtin for `str`");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue