Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
rust/tests/ui/conditional-compilation/cfg-arg-invalid-8.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
117 B
Rust
Raw Normal View History

UI tests: migrate remaining compile time `error-pattern`s to line annotations when possible.
2025-04-12 22:40:34 +03:00
//@ compile-flags: --cfg )
Emit an error for `--cfg=)` Fixes #73026 See also: #64467, #89468 The issue stems from a `FatalError` being silently raised in `panictry_buffer`. Normally this is not a problem, because `panictry_buffer` emits the causes of the error, but they are not themselves fatal, so they get filtered out by the silent emitter. To fix this, we use a parser entrypoint which doesn't use `panictry_buffer`, and we handle the error ourselves.
2022-01-01 05:12:56 +01:00
fn main() {}
UI tests: migrate remaining compile time `error-pattern`s to line annotations when possible.
2025-04-12 22:40:34 +03:00
//~? ERROR invalid `--cfg` argument: `)` (expected `key` or `key="value"`)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1342ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API