Lines Matching refs:unwrap
40 env::current_dir().unwrap().canonicalize().unwrap(), in parse_cargo_out()
120 "--crate-name" => crate_name = arg_iter.next().unwrap().to_string(), in raw_name_from_rustc_invocation()
193 LazyLock::new(|| Regex::new(r"^ +Running `(?:/[^\s]*/)?rustc (.*)`$").unwrap()); in parse()
201 LazyLock::new(|| Regex::new(r"^ +Running `.*CARGO_.*=.*$").unwrap()); in parse()
219 Regex::new(r"^ *Running `.*CARGO_.*=.* (?:/[^\s]*/)?rustc (.*)`$").unwrap() in parse()
230 Regex::new(r#"^\[([^ ]*)[^\]]*\] running:? "(?:/[^\s]*/)?(cc|ar)" (.*)$"#).unwrap() in parse()
242 LazyLock::new(|| Regex::new(r"^ *--> ([^:]*):[0-9]+").unwrap()); in parse()
258 LazyLock::new(|| Regex::new(r"^### Running: .*$").unwrap()); in parse()
267 Regex::new(r"^\s*Running (?:unittests )?(.*) \(.*/(.*)\)$").unwrap() in parse()
270 LazyLock::new(|| Regex::new(r"^(\d+) tests?, (\d+) benchmarks$").unwrap()); in parse()
273 Some((captures.get(2).unwrap().as_str(), captures.get(1).unwrap().as_str())); in parse()
276 let num_tests = captures.get(1).unwrap().as_str().parse::<u32>().unwrap(); in parse()
277 let num_benchmarks = captures.get(2).unwrap().as_str().parse::<u32>().unwrap(); in parse()
308 "--crate-name" => out.name = arg_iter.next().unwrap().to_string(), in from_rustc_invocation()
311 .push(CrateType::from_str(arg_iter.next().unwrap().to_string().as_str())), in from_rustc_invocation()
313 "--target" => out.target = Some(arg_iter.next().unwrap().to_string()), in from_rustc_invocation()
316 let arg = arg_iter.next().unwrap(); in from_rustc_invocation()
328 let arg = arg_iter.next().unwrap(); in from_rustc_invocation()
330 let filename = path.split('/').last().unwrap(); in from_rustc_invocation()
334 Regex::new(r"^lib([^-]*)(?:-[0-9a-f]*)?.(rlib|so|rmeta)$").unwrap() in from_rustc_invocation()
369 arg_iter.next().unwrap() in from_rustc_invocation()
371 arg.strip_prefix("-C").unwrap() in from_rustc_invocation()
393 let arg = arg_iter.next().unwrap(); in from_rustc_invocation()
408 arg_iter.next().unwrap(); in from_rustc_invocation()
411 arg_iter.next().unwrap(); in from_rustc_invocation()
414 arg_iter.next().unwrap(); in from_rustc_invocation()
417 arg_iter.next().unwrap(); in from_rustc_invocation()
420 arg_iter.next().unwrap(); in from_rustc_invocation()
473 .find(|p| Path::new(&p.manifest_path).canonicalize().unwrap() == manifest_path) in from_rustc_invocation()
512 let main_src = src_path.strip_prefix(&package_dir).unwrap().to_path_buf(); in split_src_path()
520 let mut package_dir = src_path.parent().unwrap(); in find_cargo_toml()