Add test for invalid --remap-path-scope arguments

This commit is contained in:
Urgau 2026-01-22 22:43:56 +01:00
parent 0f145634fc
commit ee6dd56425
3 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,2 @@
error: argument for `--remap-path-scope` must be a comma separated list of scopes: `macro`, `diagnostics`, `documentation`, `debuginfo`, `coverage`, `object`, `all`

View file

@ -0,0 +1,9 @@
// Error on invalid --remap-path-scope arguments
//@ revisions: foo underscore
//@ [foo]compile-flags: --remap-path-scope=foo
//@ [underscore]compile-flags: --remap-path-scope=macro_object
//~? ERROR argument for `--remap-path-scope
fn main() {}

View file

@ -0,0 +1,2 @@
error: argument for `--remap-path-scope` must be a comma separated list of scopes: `macro`, `diagnostics`, `documentation`, `debuginfo`, `coverage`, `object`, `all`