Closed
Description
This should help with things like #83348 (comment)
Levenshtein distance with list of known directives will be enough?
This should help with things like #83348 (comment)
Levenshtein distance with list of known directives will be enough?
Activity
klensy commentedon Mar 27, 2021
@rustbot label: A-testsuite
osa1 commentedon Mar 27, 2021
Is this to distinguish an ordinary comment from a directive?
klensy commentedon Mar 27, 2021
@osa1
Yes, this is the first idea that came into my mind.
only-
headers #90619jieyouxu commentedon Feb 17, 2024
This is easier if/when we port over all current
//
directives in all test suites and modes over to useui_test
-style//@
directives, so that it is easier to detect between regular comments and directives.Other bootstrap tools like tidy should also probably use something else to distinguish them from regular comments. Otherwise, trying to check between a valid directive vs comment is really cursed, and comments like
gets treated as
// ignore-test
, making it quite surprising.Rollup merge of rust-lang#121561 - jieyouxu:compiletest-directive-typ…
Rollup merge of rust-lang#121561 - jieyouxu:compiletest-directive-typ…
Auto merge of rust-lang#121561 - jieyouxu:compiletest-directive-typo-…