Skip to content

Commit c6ab5b0

Browse files
committed
Respect mut in &mut str in astconv
Closes rust-lang#17361
1 parent 823f805 commit c6ab5b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/typeck/astconv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ fn mk_pointer<'tcx, AC: AstConv<'tcx>, RS: RegionScope>(
674674
return constr(ty::mk_str(tcx));
675675
}
676676
RPtr(r) => {
677-
return ty::mk_str_slice(tcx, r, ast::MutImmutable);
677+
return ty::mk_str_slice(tcx, r, a_seq_mutbl);
678678
}
679679
}
680680
}

0 commit comments

Comments
 (0)