diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-07-23 13:46:35 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-07-23 13:48:04 +0200 |
| commit | 910ee2d15a505070cbc80dcceaf74ba2b8a5b15a (patch) | |
| tree | 466c80948cfcb7dc0adefc89c7a1148f5a358114 /src/tools/compiletest | |
| parent | de93fb13feeb6263bef61d4035e78ab8651c5714 (diff) | |
| download | rust-910ee2d15a505070cbc80dcceaf74ba2b8a5b15a.tar.gz rust-910ee2d15a505070cbc80dcceaf74ba2b8a5b15a.zip | |
Fix `compiletest` bad handling of `ignore-backends`
Diffstat (limited to 'src/tools/compiletest')
| -rw-r--r-- | src/tools/compiletest/src/directives/cfg.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/compiletest/src/directives/cfg.rs b/src/tools/compiletest/src/directives/cfg.rs index 35f6a9e1644..802a1d63d1f 100644 --- a/src/tools/compiletest/src/directives/cfg.rs +++ b/src/tools/compiletest/src/directives/cfg.rs @@ -285,6 +285,11 @@ fn parse_cfg_name_directive<'a>( if name == "gdb-version" { outcome = MatchOutcome::External; } + + // Don't error out for ignore-backends,as it is handled elsewhere. + if name == "backends" { + outcome = MatchOutcome::External; + } } ParsedNameDirective { |
