Skip to content

Commit fd0f616

Browse files
committed
pipes: Rename the pipec-generated buffer to __Buffer
Conforms to camel case convention and hides it away so it doesn't conflict with user code
1 parent c0140f5 commit fd0f616

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libsyntax/ext/pipes/pipec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ impl protocol: gen_init {
361361
}
362362
}
363363
364-
cx.ty_path_ast_builder(path(@~"buffer", self.span)
364+
cx.ty_path_ast_builder(path(@~"__Buffer", self.span)
365365
.add_tys(cx.ty_vars(params)))
366366
}
367367
@@ -383,7 +383,7 @@ impl protocol: gen_init {
383383
};
384384
385385
cx.item_ty_poly(
386-
@~"buffer",
386+
@~"__Buffer",
387387
cx.ty_rec(fields),
388388
params)
389389
}

0 commit comments

Comments
 (0)