diff options
| author | Jacob Hughes <j@jacobhughes.me> | 2020-09-24 18:10:56 -0400 |
|---|---|---|
| committer | Jacob Hughes <j@jacobhughes.me> | 2020-09-28 14:51:03 -0400 |
| commit | 5829560a68d4bf5e29edfed0f9545d24e87ac3f5 (patch) | |
| tree | 4af9a11d9ea568fc1e3a07071113f064d704adcb /library/alloc/src/raw_vec | |
| parent | d62d3f7fa9a91d933213cc10e20e740608983f64 (diff) | |
Rename AllocErr to AllocError
Diffstat (limited to 'library/alloc/src/raw_vec')
| -rw-r--r-- | library/alloc/src/raw_vec/tests.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/alloc/src/raw_vec/tests.rs b/library/alloc/src/raw_vec/tests.rs index e4c8b3709df..cb4fe1b46cd 100644 --- a/library/alloc/src/raw_vec/tests.rs +++ b/library/alloc/src/raw_vec/tests.rs @@ -3,7 +3,7 @@ use std::cell::Cell; #[test] fn allocator_param() { - use crate::alloc::AllocErr; + use crate::alloc::AllocError; // Writing a test of integration between third-party // allocators and `RawVec` is a little tricky because the `RawVec` @@ -21,10 +21,10 @@ fn allocator_param() { fuel: Cell<usize>, } unsafe impl AllocRef for BoundedAlloc { - fn alloc(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocErr> { + fn alloc(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { let size = layout.size(); if size > self.fuel.get() { - return Err(AllocErr); + return Err(AllocError); } match Global.alloc(layout) { ok @ Ok(_) => { |
