diff options
| author | Harald Hoyer <harald@redhat.com> | 2020-09-07 10:45:20 +0200 |
|---|---|---|
| committer | Harald Hoyer <harald@redhat.com> | 2020-10-02 09:00:29 +0200 |
| commit | cadd12b5f020b9b2c7bb0c5e7078b81fbdcfb6d8 (patch) | |
| tree | f08cb851bfe4d02d97b2b20748a9f0d69d225ed0 /src/test/ui/missing/missing-alloc_error_handler.stderr | |
| parent | f283d3f02cf3ed261a519afe05cde9e23d1d9278 (diff) | |
| download | rust-cadd12b5f020b9b2c7bb0c5e7078b81fbdcfb6d8.tar.gz rust-cadd12b5f020b9b2c7bb0c5e7078b81fbdcfb6d8.zip | |
Implement Make `handle_alloc_error` default to panic (for no_std + liballoc)
Related: https://github.com/rust-lang/rust/issues/66741 Guarded with `#![feature(default_alloc_error_handler)]` a default `alloc_error_handler` is called, if a custom allocator is used and no other custom `#[alloc_error_handler]` is defined. The panic message does not contain the size anymore, because it would pull in the fmt machinery, which would blow up the code size significantly.
Diffstat (limited to 'src/test/ui/missing/missing-alloc_error_handler.stderr')
| -rw-r--r-- | src/test/ui/missing/missing-alloc_error_handler.stderr | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/ui/missing/missing-alloc_error_handler.stderr b/src/test/ui/missing/missing-alloc_error_handler.stderr index 5489b2cbbfa..511d0788b40 100644 --- a/src/test/ui/missing/missing-alloc_error_handler.stderr +++ b/src/test/ui/missing/missing-alloc_error_handler.stderr @@ -1,4 +1,6 @@ -error: `#[alloc_error_handler]` function required, but not found +error: `#[alloc_error_handler]` function required, but not found. + +note: Use `#![feature(default_alloc_error_handler)]` for a default error handler. error: aborting due to previous error |
