Update tidy target_policy to account for //@ directives

This commit is contained in:
许杰友 Jieyou Xu (Joe) 2024-02-21 00:39:54 +00:00
parent 90a189c19b
commit 95f4d4da43
No known key found for this signature in database
GPG Key ID: 95DDEBD74A1DC2C0

View File

@ -7,7 +7,7 @@ use std::{collections::HashSet, path::Path};
const TARGET_DEFINITIONS_PATH: &str = "compiler/rustc_target/src/spec/targets/";
const ASSEMBLY_TEST_PATH: &str = "tests/assembly/targets/";
const REVISION_LINE_START: &str = "// revisions: ";
const REVISION_LINE_START: &str = "//@ revisions: ";
const EXCEPTIONS: &[&str] = &[
// FIXME: disabled since it fails on CI saying the csky component is missing
"csky_unknown_linux_gnuabiv2",