Skip to content

Commit 1db58d7

Browse files
committed
rename Binder::new_not_binding to Binder::dummy
per pnkfelix's suggestion
1 parent 4703770 commit 1db58d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc/ty/sty.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ impl<T> Binder<T> {
654654
/// contain any bound regions that would be bound by the
655655
/// binder. This is commonly used to 'inject' a value T into a
656656
/// different binding level.
657-
pub fn new_not_binding<'tcx>(value: T) -> Binder<T>
657+
pub fn dummy<'tcx>(value: T) -> Binder<T>
658658
where T: TypeFoldable<'tcx>
659659
{
660660
assert!(!value.has_escaping_regions());

src/librustc_mir/borrow_check/nll/universal_regions.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ impl<'cx, 'gcx, 'tcx> UniversalRegionsBuilder<'cx, 'gcx, 'tcx> {
545545
assert_eq!(self.mir_def_id, def_id);
546546
let output = substs.generator_return_ty(def_id, tcx);
547547
let inputs_and_output = self.infcx.tcx.intern_type_list(&[defining_ty, output]);
548-
ty::Binder::new_not_binding(inputs_and_output)
548+
ty::Binder::dummy(inputs_and_output)
549549
}
550550

551551
ty::TyFnDef(def_id, _) => {

0 commit comments

Comments
 (0)