summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hir_typeck/expr_check.cpp4
-rw-r--r--src/hir_typeck/expr_cs.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/hir_typeck/expr_check.cpp b/src/hir_typeck/expr_check.cpp
index 985fe15f..319124ad 100644
--- a/src/hir_typeck/expr_check.cpp
+++ b/src/hir_typeck/expr_check.cpp
@@ -177,8 +177,8 @@ namespace {
case ::HIR::ExprNode_Assign::Op::And: lang_item = "bitand_assign"; break;
case ::HIR::ExprNode_Assign::Op::Or : lang_item = "bitor_assign" ; break;
case ::HIR::ExprNode_Assign::Op::Xor: lang_item = "bitxor_assign"; break;
- case ::HIR::ExprNode_Assign::Op::Shr: lang_item = "shl_assign"; break;
- case ::HIR::ExprNode_Assign::Op::Shl: lang_item = "shr_assign"; break;
+ case ::HIR::ExprNode_Assign::Op::Shr: lang_item = "shr_assign"; break;
+ case ::HIR::ExprNode_Assign::Op::Shl: lang_item = "shl_assign"; break;
}
assert(lang_item);
const auto& trait_path = this->get_lang_item_path(node.span(), lang_item);
diff --git a/src/hir_typeck/expr_cs.cpp b/src/hir_typeck/expr_cs.cpp
index 62f50ed9..b62ea1cc 100644
--- a/src/hir_typeck/expr_cs.cpp
+++ b/src/hir_typeck/expr_cs.cpp
@@ -846,8 +846,8 @@ namespace {
case ::HIR::ExprNode_Assign::Op::And: lang_item = "bitand_assign"; break;
case ::HIR::ExprNode_Assign::Op::Or : lang_item = "bitor_assign" ; break;
case ::HIR::ExprNode_Assign::Op::Xor: lang_item = "bitxor_assign"; break;
- case ::HIR::ExprNode_Assign::Op::Shr: lang_item = "shl_assign"; break;
- case ::HIR::ExprNode_Assign::Op::Shl: lang_item = "shr_assign"; break;
+ case ::HIR::ExprNode_Assign::Op::Shr: lang_item = "shr_assign"; break;
+ case ::HIR::ExprNode_Assign::Op::Shl: lang_item = "shl_assign"; break;
}
assert(lang_item);
const auto& trait_path = this->context.m_crate.get_lang_item_path(node.span(), lang_item);