Typos in a comment and an error message
This commit is contained in:
parent
bacf9e9887
commit
d513d9893e
1 changed files with 2 additions and 2 deletions
|
@ -134,7 +134,7 @@ fn ast_path_to_ty<AC: ast_conv, RS: region_scope copy>(
|
||||||
path: @ast::path,
|
path: @ast::path,
|
||||||
path_id: ast::node_id) -> ty_param_substs_and_ty {
|
path_id: ast::node_id) -> ty_param_substs_and_ty {
|
||||||
|
|
||||||
// Lookup the polytype of the item and then substitute the provided types
|
// Look up the polytype of the item and then substitute the provided types
|
||||||
// for any type/region parameters.
|
// for any type/region parameters.
|
||||||
let tcx = self.tcx();
|
let tcx = self.tcx();
|
||||||
let {substs: substs, ty: ty} =
|
let {substs: substs, ty: ty} =
|
||||||
|
@ -216,7 +216,7 @@ fn ast_ty_to_ty<AC: ast_conv, RS: region_scope copy>(
|
||||||
some(ty::atttce_resolved(ty)) { ret ty; }
|
some(ty::atttce_resolved(ty)) { ret ty; }
|
||||||
some(ty::atttce_unresolved) {
|
some(ty::atttce_unresolved) {
|
||||||
tcx.sess.span_fatal(ast_ty.span, "illegal recursive type. \
|
tcx.sess.span_fatal(ast_ty.span, "illegal recursive type. \
|
||||||
insert a enum in the cycle, \
|
insert an enum in the cycle, \
|
||||||
if this is desired)");
|
if this is desired)");
|
||||||
}
|
}
|
||||||
none { /* go on */ }
|
none { /* go on */ }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue