Lines Matching refs:unwrap
51 let potential_components: Vec<&str> = file.strip_suffix("_rs").unwrap().split('_').collect(); in find_real_path()
105 valid_paths[0].to_str().unwrap() in find_real_path()
109 let srctree = std::env::var("srctree").unwrap(); in main()
113 .unwrap() in main()
114 .map(|entry| entry.unwrap().path()) in main()
131 let name = path.file_name().unwrap().to_str().unwrap().to_string(); in main()
134 let (file, line) = name.rsplit_once('_').unwrap().0.rsplit_once('_').unwrap(); in main()
156 File::open(path).unwrap().read_to_string(&mut body).unwrap(); in main()
213 .unwrap(); in main()
215 write!(c_test_declarations, "void {kunit_name}(struct kunit *);\n").unwrap(); in main()
216 write!(c_test_cases, " KUNIT_CASE({kunit_name}),\n").unwrap(); in main()
224 BufWriter::new(File::create("rust/doctests_kernel_generated.rs").unwrap()), in main()
232 .unwrap(); in main()
235 BufWriter::new(File::create("rust/doctests_kernel_generated_kunit.c").unwrap()), in main()
259 .unwrap(); in main()