diff options
| author | bors <bors@rust-lang.org> | 2020-12-29 23:20:46 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-12-29 23:20:46 +0000 |
| commit | f3eead1c69d5ce9cb128a9068250581ad28103f0 (patch) | |
| tree | 9803bb601004e2fcb03d00009320067e439535d4 /src/test/ui/panic-handler/panic-handler-missing.rs | |
| parent | 158f8d034b15e65ba8dc0d066358dd0632bfcd6e (diff) | |
| parent | 4d2d0bad4e51d0d14d21b4e21cdb61b55dd11349 (diff) | |
| download | rust-f3eead1c69d5ce9cb128a9068250581ad28103f0.tar.gz rust-f3eead1c69d5ce9cb128a9068250581ad28103f0.zip | |
Auto merge of #80453 - petrochenkov:nocfail, r=Mark-Simulacrum
Remove `compile-fail` test suite By moving all of its tests to `ui` test suite. Now we have directives like `// dont-check-compiler-stderr` that allow to disable `.stderr` comparison for platform-dependent tests without introducing a whole new test suite.
Diffstat (limited to 'src/test/ui/panic-handler/panic-handler-missing.rs')
| -rw-r--r-- | src/test/ui/panic-handler/panic-handler-missing.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/panic-handler/panic-handler-missing.rs b/src/test/ui/panic-handler/panic-handler-missing.rs new file mode 100644 index 00000000000..6bb062ba657 --- /dev/null +++ b/src/test/ui/panic-handler/panic-handler-missing.rs @@ -0,0 +1,9 @@ +// dont-check-compiler-stderr +// error-pattern: `#[panic_handler]` function required, but not found + +#![feature(lang_items)] +#![no_main] +#![no_std] + +#[lang = "eh_personality"] +fn eh() {} |
