change region inference to not consider & that appears in a fn
type as indicating region parameterization
This commit is contained in:
parent
2407373fa4
commit
638491712e
2 changed files with 19 additions and 1 deletions
|
|
@ -485,7 +485,16 @@ fn determine_rp_in_ty(ty: @ast::ty,
|
|||
_ {}
|
||||
}
|
||||
|
||||
visit::visit_ty(ty, cx, visitor);
|
||||
alt ty.node {
|
||||
ast::ty_fn(*) => {
|
||||
do cx.with(cx.item_id, false) {
|
||||
visit::visit_ty(ty, cx, visitor);
|
||||
}
|
||||
}
|
||||
_ => {
|
||||
visit::visit_ty(ty, cx, visitor);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn determine_rp_in_crate(sess: session,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue