Skip to content

Consistently refer to a test's revision instead of cfg#121373

Merged
bors merged 3 commits intorust-lang:masterfrom
Zalathar:test-revision
Feb 22, 2024
Merged

Consistently refer to a test's revision instead of cfg#121373
bors merged 3 commits intorust-lang:masterfrom
Zalathar:test-revision

Conversation

@Zalathar
Copy link
Copy Markdown
Member

@Zalathar Zalathar commented Feb 21, 2024

Compiletest allows a test file to specify multiple “revisions” (//@ revisions: foo bar), with each revision running as a separate test, and having the ability to define revision-specific headers (//@[foo] ignore-blah) and revision-specific code (#[cfg(foo)]).

The code that implements this feature sometimes uses the term “cfg” instead of “revision”. This results in two confusingly-different names for the same concept, one of which is ambiguous with other kinds of configuration (such as compiletest's own config).

This PR replaces those occurrences of cfg with revision, so that one name is used consistently.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants