File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
compiler/rustc_const_eval/src Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -121,11 +121,10 @@ fn const_to_valtree_inner<'tcx>(
121
121
ty:: Slice ( _) | ty:: Str => {
122
122
match ecx. try_read_immediate_from_mplace ( & place) {
123
123
Ok ( Some ( imm) ) => {
124
- let mplace_ref = ecx. ref_to_mplace ( & imm) . unwrap ( ) ;
125
124
let derefd = ecx. deref_operand ( & place. into ( ) ) . expect ( & format ! ( "couldnt deref {:?}" , imm) ) ;
126
- debug ! ( ?mplace_ref , ? derefd) ;
125
+ debug ! ( ?derefd) ;
127
126
128
- let len = match imm . imm {
127
+ let len = match * imm {
129
128
Immediate :: ScalarPair ( _, b) => {
130
129
let len = b. to_machine_usize ( & ecx. tcx . tcx ) . unwrap ( ) ;
131
130
len
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ impl<'tcx, Tag: Provenance> Immediate<Tag> {
98
98
// as input for binary and cast operations.
99
99
#[ derive( Copy , Clone , Debug ) ]
100
100
pub struct ImmTy < ' tcx , Tag : Provenance = AllocId > {
101
- pub ( crate ) imm : Immediate < Tag > ,
101
+ imm : Immediate < Tag > ,
102
102
pub layout : TyAndLayout < ' tcx > ,
103
103
}
104
104
You can’t perform that action at this time.
0 commit comments