diff options
| author | Tim Diekmann <tim.diekmann@3dvision.de> | 2020-01-23 01:49:29 +0100 |
|---|---|---|
| committer | Tim Diekmann <tim.diekmann@3dvision.de> | 2020-01-27 21:39:51 +0100 |
| commit | 7ca25db8162128808714f536fa993aefcf6a2239 (patch) | |
| tree | b0e326ad284fb34d208b59080a38e349a50687b0 /src/liballoc/raw_vec | |
| parent | c2d141df59703393c0c683abc259f9a8c3be041a (diff) | |
| download | rust-7ca25db8162128808714f536fa993aefcf6a2239.tar.gz rust-7ca25db8162128808714f536fa993aefcf6a2239.zip | |
Rename `Alloc` to `AllocRef`
Diffstat (limited to 'src/liballoc/raw_vec')
| -rw-r--r-- | src/liballoc/raw_vec/tests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/raw_vec/tests.rs b/src/liballoc/raw_vec/tests.rs index b214cef3011..63087501f0e 100644 --- a/src/liballoc/raw_vec/tests.rs +++ b/src/liballoc/raw_vec/tests.rs @@ -19,7 +19,7 @@ fn allocator_param() { struct BoundedAlloc { fuel: usize, } - unsafe impl Alloc for BoundedAlloc { + unsafe impl AllocRef for BoundedAlloc { unsafe fn alloc(&mut self, layout: Layout) -> Result<NonNull<u8>, AllocErr> { let size = layout.size(); if size > self.fuel { |
