Make str be treated as str/~.
This commit is contained in:
parent
b569bdec9f
commit
7b26503566
8 changed files with 8 additions and 8 deletions
|
|
@ -652,7 +652,7 @@ fn mk_mach_float(cx: ctxt, tm: ast::float_ty) -> t { mk_t(cx, ty_float(tm)) }
|
|||
|
||||
fn mk_char(cx: ctxt) -> t { mk_t(cx, ty_int(ast::ty_char)) }
|
||||
|
||||
fn mk_str(cx: ctxt) -> t { mk_t(cx, ty_str) }
|
||||
fn mk_str(cx: ctxt) -> t { mk_estr(cx, vstore_uniq) }
|
||||
|
||||
fn mk_estr(cx: ctxt, t: vstore) -> t {
|
||||
mk_t(cx, ty_estr(t))
|
||||
|
|
|
|||
|
|
@ -223,7 +223,7 @@ fn arg_is_argv_ty(_tcx: ty::ctxt, a: ty::arg) -> bool {
|
|||
ty::ty_evec(mt, vstore_uniq) {
|
||||
if mt.mutbl != ast::m_imm { ret false; }
|
||||
alt ty::get(mt.ty).struct {
|
||||
ty::ty_str { ret true; }
|
||||
ty::ty_estr(vstore_uniq) { ret true; }
|
||||
_ { ret false; }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue