Skip to content

Commit d3af16b

Browse files
committed
auto merge of #18922 : japaric/rust/for, r=jakub-
r? @alexcrichton
2 parents bc0b612 + e5ef556 commit d3af16b

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/librustc/metadata/decoder.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -630,12 +630,12 @@ pub fn get_item_path(cdata: Cmd, id: ast::NodeId) -> Vec<ast_map::PathElem> {
630630
item_path(lookup_item(id, cdata.data()))
631631
}
632632

633-
pub type DecodeInlinedItem<'a> = <'tcx> |cdata: Cmd,
634-
tcx: &ty::ctxt<'tcx>,
635-
path: Vec<ast_map::PathElem>,
636-
par_doc: rbml::Doc|: 'a
637-
-> Result<&'tcx ast::InlinedItem,
638-
Vec<ast_map::PathElem>>;
633+
pub type DecodeInlinedItem<'a> = for<'tcx> |cdata: Cmd,
634+
tcx: &ty::ctxt<'tcx>,
635+
path: Vec<ast_map::PathElem>,
636+
par_doc: rbml::Doc|: 'a
637+
-> Result<&'tcx ast::InlinedItem,
638+
Vec<ast_map::PathElem>>;
639639

640640
pub fn maybe_get_item_ast<'tcx>(cdata: Cmd, tcx: &ty::ctxt<'tcx>, id: ast::NodeId,
641641
decode_inlined_item: DecodeInlinedItem)

src/librustc/middle/trans/base.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1787,8 +1787,8 @@ pub fn trans_closure(ccx: &CrateContext,
17871787
abi: Abi,
17881788
has_env: bool,
17891789
is_unboxed_closure: IsUnboxedClosureFlag,
1790-
maybe_load_env: <'blk, 'tcx> |Block<'blk, 'tcx>, ScopeId|
1791-
-> Block<'blk, 'tcx>) {
1790+
maybe_load_env: for<'blk, 'tcx> |Block<'blk, 'tcx>, ScopeId|
1791+
-> Block<'blk, 'tcx>) {
17921792
ccx.stats().n_closures.set(ccx.stats().n_closures.get() + 1);
17931793

17941794
let _icx = push_ctxt("trans_closure");

src/librustc/middle/trans/glue.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,8 @@ fn declare_generic_glue(ccx: &CrateContext, t: ty::t, llfnty: Type,
528528
fn make_generic_glue(ccx: &CrateContext,
529529
t: ty::t,
530530
llfn: ValueRef,
531-
helper: <'blk, 'tcx> |Block<'blk, 'tcx>, ValueRef, ty::t|
532-
-> Block<'blk, 'tcx>,
531+
helper: for<'blk, 'tcx> |Block<'blk, 'tcx>, ValueRef, ty::t|
532+
-> Block<'blk, 'tcx>,
533533
name: &str)
534534
-> ValueRef {
535535
let _icx = push_ctxt("make_generic_glue");

src/libsyntax/ext/base.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ pub trait TTMacroExpander {
8989
}
9090

9191
pub type MacroExpanderFn =
92-
fn<'cx>(&'cx mut ExtCtxt, Span, &[ast::TokenTree]) -> Box<MacResult+'cx>;
92+
for<'cx> fn(&'cx mut ExtCtxt, Span, &[ast::TokenTree]) -> Box<MacResult+'cx>;
9393

9494
impl TTMacroExpander for MacroExpanderFn {
9595
fn expand<'cx>(&self,
@@ -111,7 +111,7 @@ pub trait IdentMacroExpander {
111111
}
112112

113113
pub type IdentMacroExpanderFn =
114-
fn<'cx>(&'cx mut ExtCtxt, Span, ast::Ident, Vec<ast::TokenTree>) -> Box<MacResult+'cx>;
114+
for<'cx> fn(&'cx mut ExtCtxt, Span, ast::Ident, Vec<ast::TokenTree>) -> Box<MacResult+'cx>;
115115

116116
impl IdentMacroExpander for IdentMacroExpanderFn {
117117
fn expand<'cx>(&self,

0 commit comments

Comments
 (0)