mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 06:28:20 +03:00
librustc: Make &const [T] mean the same thing as &[const T]
This commit is contained in:
@@ -216,7 +216,8 @@ fn mk_pointer<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);
|
||||
|
||||
Reference in New Issue
Block a user