From 3b0550c3a94baa8ed4a5c25fc69a2859acb65673 Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Sun, 5 Oct 2014 11:59:10 +1300 Subject: Rename slicing methods --- src/test/run-pass/slice.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/test') diff --git a/src/test/run-pass/slice.rs b/src/test/run-pass/slice.rs index 7d969a0864e..f863c4d330f 100644 --- a/src/test/run-pass/slice.rs +++ b/src/test/run-pass/slice.rs @@ -24,15 +24,15 @@ impl Slice for Foo { unsafe { COUNT += 1; } self } - fn slice_from_<'a>(&'a self, _from: &Foo) -> &'a Foo { + fn slice_from_or_fail<'a>(&'a self, _from: &Foo) -> &'a Foo { unsafe { COUNT += 1; } self } - fn slice_to_<'a>(&'a self, _to: &Foo) -> &'a Foo { + fn slice_to_or_fail<'a>(&'a self, _to: &Foo) -> &'a Foo { unsafe { COUNT += 1; } self } - fn slice_<'a>(&'a self, _from: &Foo, _to: &Foo) -> &'a Foo { + fn slice_or_fail<'a>(&'a self, _from: &Foo, _to: &Foo) -> &'a Foo { unsafe { COUNT += 1; } self } @@ -43,15 +43,15 @@ impl SliceMut for Foo { unsafe { COUNT += 1; } self } - fn slice_from_mut_<'a>(&'a mut self, _from: &Foo) -> &'a mut Foo { + fn slice_from_or_fail_mut<'a>(&'a mut self, _from: &Foo) -> &'a mut Foo { unsafe { COUNT += 1; } self } - fn slice_to_mut_<'a>(&'a mut self, _to: &Foo) -> &'a mut Foo { + fn slice_to_or_fail_mut<'a>(&'a mut self, _to: &Foo) -> &'a mut Foo { unsafe { COUNT += 1; } self } - fn slice_mut_<'a>(&'a mut self, _from: &Foo, _to: &Foo) -> &'a mut Foo { + fn slice_or_fail_mut<'a>(&'a mut self, _from: &Foo, _to: &Foo) -> &'a mut Foo { unsafe { COUNT += 1; } self } -- cgit 1.4.1-3-g733a5