fn should_ignore(line: &str) -> bool {
    // Matches test annotations like `//~ ERROR text`.
    // This mirrors the regex in src/tools/compiletest/src/runtest.rs, please
    // update both if either are changed.
    let re = Regex::new("\\s*//(\\[.*\\])?~.*").unwrap();
    re.is_match(line) || ANNOTATIONS_TO_IGNORE.iter().any(|a| line.contains(a))
}
/// Returns `true` if `line` can be ignored. This is the case when it contains
/// an annotation that is explicitly ignored.
Returns `true` if `line` can be ignored. This is the case when it contains
an annotation that is explicitly ignored.
Returns ` true ` if ` line ` can be ignored . This is the case when it contains an annotation that is explicitly ignored .
fn should_ignore(line: &str) -> bool {
    // Matches test annotations like `//~ ERROR text`.
    // This mirrors the regex in src/tools/compiletest/src/runtest.rs, please
    // update both if either are changed.
    let re = Regex::new("\\s*//(\\[.*\\])?~.*").unwrap();
    re.is_match(line) || ANNOTATIONS_TO_IGNORE.iter().any(|a| line.contains(a))
}
fn should_ignore ( line : & str ) -> bool { // Matches test annotations like `//~ ERROR text`. // This mirrors the regex in src/tools/compiletest/src/runtest.rs, please // update both if either are changed. let re = Regex :: new ( " \\ \\ \\ " ) . unwrap ( ) ; re . is_match ( line ) || ANNOTATIONS_TO_IGNORE . iter ( ) . any ( | a | line . contains ( a ) ) }
Returns `true` if `line` can be ignored.
Returns ` true ` if ` line ` can be ignored .
line
&str
line
&str