Respect mut in &mut str in astconv

Closes #17361
This commit is contained in:
Brian Koropoff 2014-10-28 00:01:23 -07:00
parent 823f805453
commit c6ab5b0829

View File

@ -674,7 +674,7 @@ fn mk_pointer<'tcx, AC: AstConv<'tcx>, RS: RegionScope>(
return constr(ty::mk_str(tcx));
}
RPtr(r) => {
return ty::mk_str_slice(tcx, r, ast::MutImmutable);
return ty::mk_str_slice(tcx, r, a_seq_mutbl);
}
}
}