Module header

Source

Modules§

auxiliary 🔒
Code for dealing with test directives that request an “auxiliary” crate to be built and made available to the test in some way.
cfg 🔒
directives 🔒
needs 🔒

Structs§

CheckDirectiveResult 🔒
DirectiveLine 🔒
The (partly) broken-down contents of a line containing a test directive, which iter_header passes to its callback function.
EarlyProps
Properties which must be known very early, before actually running the test.
HeadersCache
NormalizeRule 🔒
TestProps

Enums§

IgnoreDecision 🔒
NormalizeKind 🔒

Constants§

COMPILETEST_DIRECTIVE_PREFIX 🔒
KNOWN_DIRECTIVE_NAMES 🔒
This was originally generated by collecting directives from ui tests and then extracting their directive names. This is not an exhaustive list of all possible directives. Instead, this is a best-effort approximation for diagnostics. Add new headers to this list when needed.
KNOWN_HTMLDOCCK_DIRECTIVE_NAMES 🔒
KNOWN_JSONDOCCK_DIRECTIVE_NAMES 🔒

Functions§

check_directive 🔒
expand_variables 🔒
extract_llvm_version
Given an llvm version string that looks like 1.2.3-rc1, extract as semver. Note that this accepts more than just strict semver syntax (as in major.minor.patch); this permits omitting minor and patch version components so users can write e.g. //@ min-llvm-version: 19 instead of having to write //@ min-llvm-version: 19.0.0.
extract_llvm_version_from_binary
extract_version_range 🔒
Takes a directive of the form "<version1> [- <version2>]", returns the numeric representation of <version1> and <version2> as tuple: (<version1>, <version2>).
ignore_cdb 🔒
ignore_gdb 🔒
ignore_lldb 🔒
ignore_llvm 🔒
iter_header 🔒
line_directive 🔒
If the given line begins with the appropriate comment prefix for a directive, returns a struct containing various parts of the directive.
llvm_has_libzstd
For tests using the needs-llvm-zstd directive:
make_test_description
parse_normalize_rule 🔒
Parses the regex and replacement values of a //@ normalize-* header, in the format: