diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2018-04-03 16:00:04 +0200 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2018-04-12 22:53:13 +0200 |
| commit | 157ff8cd0562eefdd7aa296395c38a7bc259a4b9 (patch) | |
| tree | 162a8b87c71c590b4ae1a594c4087819fb719b57 /src/libcore/alloc.rs | |
| parent | 86753ce1cc520bfe50ae89f09ec47f313ce900eb (diff) | |
| download | rust-157ff8cd0562eefdd7aa296395c38a7bc259a4b9.tar.gz rust-157ff8cd0562eefdd7aa296395c38a7bc259a4b9.zip | |
Remove the now-unit-struct AllocErr parameter of oom()
Diffstat (limited to 'src/libcore/alloc.rs')
| -rw-r--r-- | src/libcore/alloc.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/alloc.rs b/src/libcore/alloc.rs index 1c764dab000..1ba4c641065 100644 --- a/src/libcore/alloc.rs +++ b/src/libcore/alloc.rs @@ -572,7 +572,7 @@ pub unsafe trait Alloc { /// instead they should return an appropriate error from the /// invoked method, and let the client decide whether to invoke /// this `oom` method in response. - fn oom(&mut self, _: AllocErr) -> ! { + fn oom(&mut self) -> ! { unsafe { ::intrinsics::abort() } } |
