librustc: Make &const [T] mean the same thing as &[const T]
This commit is contained in:
parent
8fceee6c88
commit
9b08cd4903
1 changed files with 2 additions and 1 deletions
|
|
@ -216,7 +216,8 @@ pub fn ast_ty_to_ty<AC:AstConv,RS:region_scope + Copy + Durable>(
|
|||
match a_seq_ty.ty.node {
|
||||
ast::ty_vec(mt) => {
|
||||
let mut mt = ast_mt_to_mt(self, rscope, mt);
|
||||
if a_seq_ty.mutbl == ast::m_mutbl {
|
||||
if a_seq_ty.mutbl == ast::m_mutbl ||
|
||||
a_seq_ty.mutbl == ast::m_const {
|
||||
mt = ty::mt { ty: mt.ty, mutbl: ast::m_mutbl };
|
||||
}
|
||||
return ty::mk_evec(tcx, mt, vst);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue