diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2024-05-22 00:56:57 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2024-05-22 01:34:26 -0700 |
| commit | 8ee3d29cd93325db6f973358115f40ee1c785ef0 (patch) | |
| tree | afd7805cc663f1d2bd8b996d66aaa5c06ff51815 /compiler/rustc_middle/src/mir | |
| parent | b54dd08a84f3c07efbc2aaf63c3df219ae680a03 (diff) | |
| download | rust-8ee3d29cd93325db6f973358115f40ee1c785ef0.tar.gz rust-8ee3d29cd93325db6f973358115f40ee1c785ef0.zip | |
Stop using `to_hir_binop` in codegen
Diffstat (limited to 'compiler/rustc_middle/src/mir')
| -rw-r--r-- | compiler/rustc_middle/src/mir/tcx.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/mir/tcx.rs b/compiler/rustc_middle/src/mir/tcx.rs index e1ae2e08666..c421c937dc3 100644 --- a/compiler/rustc_middle/src/mir/tcx.rs +++ b/compiler/rustc_middle/src/mir/tcx.rs @@ -295,7 +295,7 @@ impl BorrowKind { } impl BinOp { - pub fn to_hir_binop(self) -> hir::BinOpKind { + pub(crate) fn to_hir_binop(self) -> hir::BinOpKind { match self { BinOp::Add => hir::BinOpKind::Add, BinOp::Sub => hir::BinOpKind::Sub, |
