Lines Matching refs:arg

245             .map(|arg| match (arg.chars().next(), arg.chars().skip(1).last()) {  in from_rustc_invocation()
246 (Some('"'), Some('"')) => &arg[1..arg.len() - 1], in from_rustc_invocation()
247 (Some('\''), Some('\'')) => &arg[1..arg.len() - 1], in from_rustc_invocation()
250 _ => arg, in from_rustc_invocation()
253 while let Some(arg) = arg_iter.next() { in from_rustc_invocation()
254 match arg { in from_rustc_invocation()
263 let arg = arg_iter.next().unwrap(); in from_rustc_invocation() localVariable
265 arg.strip_prefix("feature=\"").and_then(|s| s.strip_suffix('\"')) in from_rustc_invocation()
269 out.cfgs.push(arg.to_string()); in from_rustc_invocation()
275 let arg = arg_iter.next().unwrap(); in from_rustc_invocation() localVariable
276 if let Some((name, path)) = arg.split_once('=') { in from_rustc_invocation()
301 } else if arg != "proc_macro" { in from_rustc_invocation()
302 panic!("No filename for {}", arg); in from_rustc_invocation()
305 _ if arg.starts_with("-C") => { in from_rustc_invocation()
307 let arg = if arg == "-C" { in from_rustc_invocation() localVariable
310 arg.strip_prefix("-C").unwrap() in from_rustc_invocation()
317 if !arg.starts_with("codegen-units=") in from_rustc_invocation()
318 && !arg.starts_with("debuginfo=") in from_rustc_invocation()
319 && !arg.starts_with("embed-bitcode=") in from_rustc_invocation()
320 && !arg.starts_with("extra-filename=") in from_rustc_invocation()
321 && !arg.starts_with("incremental=") in from_rustc_invocation()
322 && !arg.starts_with("metadata=") in from_rustc_invocation()
323 && arg != "prefer-dynamic" in from_rustc_invocation()
325 out.codegens.push(arg.to_string()); in from_rustc_invocation()
327 if let Some(x) = arg.strip_prefix("extra-filename=") { in from_rustc_invocation()
333 let arg = arg_iter.next().unwrap(); in from_rustc_invocation() localVariable
334 if let Some(lib) = arg.strip_prefix("static=") { in from_rustc_invocation()
336 } else if let Some(lib) = arg.strip_prefix("dylib=") { in from_rustc_invocation()
339 out.shared_libs.push(arg.to_string()); in from_rustc_invocation()
342 _ if !arg.starts_with('-') => { in from_rustc_invocation()
343 (out.package_dir, out.main_src) = split_src_path(Path::new(arg))?; in from_rustc_invocation()
356 _ if arg.starts_with("--error-format=") => {} in from_rustc_invocation()
357 _ if arg.starts_with("--emit=") => {} in from_rustc_invocation()
358 _ if arg.starts_with("--edition=") => {} in from_rustc_invocation()
359 _ if arg.starts_with("--json=") => {} in from_rustc_invocation()
360 _ if arg.starts_with("-Aclippy") => {} in from_rustc_invocation()
361 _ if arg.starts_with("--allow=clippy") => {} in from_rustc_invocation()
362 _ if arg.starts_with("-Wclippy") => {} in from_rustc_invocation()
363 _ if arg.starts_with("--warn=clippy") => {} in from_rustc_invocation()
364 _ if arg.starts_with("-A=rustdoc") => {} in from_rustc_invocation()
365 _ if arg.starts_with("--allow=rustdoc") => {} in from_rustc_invocation()
366 _ if arg.starts_with("-D") => {} in from_rustc_invocation()
367 _ if arg.starts_with("--deny=") => {} in from_rustc_invocation()
368 _ if arg.starts_with("-W") => {} in from_rustc_invocation()
369 _ if arg.starts_with("--warn=") => {} in from_rustc_invocation()
371 arg => bail!("unsupported rustc argument: {arg:?}"), in from_rustc_invocation()