mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +00:00
collapsible_if
This commit is contained in:
parent
11b401d0b4
commit
75a42f1a09
@ -109,11 +109,11 @@ fn main() {
|
||||
let mut artifact_path = None;
|
||||
for message in Message::parse_stream(output.stdout.as_slice()) {
|
||||
if let Message::CompilerArtifact(artifact) = message.unwrap() {
|
||||
if artifact.target.kind.contains(&"proc-macro".to_string()) {
|
||||
if artifact.package_id.repr.starts_with(&repr) || artifact.package_id.repr == pkgid
|
||||
{
|
||||
artifact_path = Some(PathBuf::from(&artifact.filenames[0]));
|
||||
}
|
||||
if artifact.target.kind.contains(&"proc-macro".to_string())
|
||||
&& (artifact.package_id.repr.starts_with(&repr)
|
||||
|| artifact.package_id.repr == pkgid)
|
||||
{
|
||||
artifact_path = Some(PathBuf::from(&artifact.filenames[0]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user