about summary refs log tree commit diff
path: root/src/test/ui/alloc-error
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-197/+0
2023-01-05Tweak wording of fn call with wrong number of argsEsteban Küber-1/+1
2022-12-29Account for multiple multiline spans with empty paddingEsteban Küber-16/+4
Instead of ``` LL | fn oom( | __^ | | _| | || LL | || ) { | ||_- LL | | } | |__^ ``` emit ``` LL | // fn oom( LL | || ) { | ||_- LL | | } | |__^ ```
2022-12-13Make some diagnostics not depend on the source of what they reference being ↵Oli Scherer-3/+0
available
2022-11-28Tweak outputEsteban Küber-20/+16
2022-11-28Change multiline span ASCII art visual orderEsteban Küber-24/+24
2022-10-31Rewrite implementation of `#[alloc_error_handler]`Amanieu d'Antras-23/+125
The new implementation doesn't use weak lang items and instead changes `#[alloc_error_handler]` to an attribute macro just like `#[global_allocator]`. The attribute will generate the `__rg_oom` function which is called by the compiler-generated `__rust_alloc_error_handler`. If no `__rg_oom` function is defined in any crate then the compiler shim will call `__rdl_oom` in the alloc crate which will simply panic. This also fixes link errors with `-C link-dead-code` with `default_alloc_error_handler`: `__rg_oom` was previously defined in the alloc crate and would attempt to reference the `oom` lang item, even if it didn't exist. This worked as long as `__rg_oom` was excluded from linking since it was not called. This is a prerequisite for the stabilization of `default_alloc_error_handler` (#102318).
2022-10-18handle core dumps output in qemu user modePietro Albini-1/+10
In addition to the whole-system emulation/virtualization, QEMU also supports user-mode emulation, where the emulation happens as a normal process inside the parent system. This allows running most tests by simply spawning remote-test-server inside user-mode emulation. Unfortunately, QEMU always writes its own message in addition to the system one when a core dump happens, which breaks a few tests which match on the exact output of the system. This PR changes those tests to strip the (possible) QEMU output before checking if the output is expected.
2022-03-03Cleanup feature gates.Camille GILLOT-3/+3
2021-11-14Move some tests to more reasonable directoriesCaio-0/+19
2019-03-11Update testsVadim Petrochenkov-5/+5
2018-12-25Remove licensesMark Rousskov-35/+5
2018-08-30Point at def span on incorrect panic or alloc error handlerEsteban Küber-4/+2
2018-08-23add #[panic_handler]; deprecate #[panic_implementation]Jorge Aparicio-6/+6
2018-08-14Merged migrated compile-fail tests and ui tests. Fixes #46841.David Wood-0/+118