mirror of
https://github.com/rust-lang/cargo
synced 2024-10-02 22:13:47 +00:00
Get past internal test on CI
This commit is contained in:
parent
784ea96e8e
commit
68200151da
|
@ -24,6 +24,9 @@ fn check_forbidden_code() {
|
|||
}
|
||||
let c = fs::read_to_string(path).unwrap();
|
||||
for (line_index, line) in c.lines().enumerate() {
|
||||
if line.trim().starts_with("//") {
|
||||
continue;
|
||||
}
|
||||
if line_has_print(line) {
|
||||
if entry.file_name().to_str().unwrap() == "cargo_new.rs" && line.contains("Hello") {
|
||||
// An exception.
|
||||
|
|
Loading…
Reference in a new issue