/third_party/rust/crates/clap/examples/ |
H A D | repl.rs | 20 write!(std::io::stdout(), "{err}").map_err(|e| e.to_string())?; in main() 21 std::io::stdout().flush().map_err(|e| e.to_string())?; in main() 33 .map_err(|e| e.to_string())?; in respond() 36 write!(std::io::stdout(), "Pong").map_err(|e| e.to_string())?; in respond() 37 std::io::stdout().flush().map_err(|e| e.to_string())?; in respond() 40 write!(std::io::stdout(), "Exiting ...").map_err(|e| e.to_string())?; in respond() 41 std::io::stdout().flush().map_err(|e| e.to_string())?; in respond() 85 write!(std::io::stdout(), "$ ").map_err(|e| e.to_string())?; in readline() 86 std::io::stdout().flush().map_err(|e| e.to_string())?; in readline() 90 .map_err(| in readline() [all...] |
/third_party/rust/crates/rustix/src/backend/libc/fs/ |
H A D | syscalls.rs | 668 .map_err(|_| io::Errno::OVERFLOW)?, in utimensat_old() 676 .map_err(|_| io::Errno::OVERFLOW)?, in utimensat_old() 771 dev.try_into().map_err(|_e| io::Errno::PERM)?, 1137 .map_err(|_| io::Errno::OVERFLOW)?, in futimens_old() 1145 .map_err(|_| io::Errno::OVERFLOW)?, 1200 let offset: i64 = offset.try_into().map_err(|_e| io::Errno::INVAL)?; 1238 let length = length.try_into().map_err(|_overflow_err| io::Errno::FBIG)?; 1341 st_size: x.stx_size.try_into().map_err(|_| io::Errno::OVERFLOW)?, in statx_to_stat() 1348 .map_err(|_| io::Errno::OVERFLOW)?, in statx_to_stat() 1354 .map_err(| in statx_to_stat() [all...] |
/third_party/rust/crates/rustix/src/path/ |
H A D | arg.rs | 106 CString::new(*self).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy() 116 CString::new(self).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy() 144 CString::new(String::as_str(self)).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy() 180 CString::new(self.as_str()).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy() 190 CString::new(self).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy() 200 f(&CString::new(self).map_err(|_cstr_err| io::Errno::INVAL)?) in into_with_c_str() 219 CString::new(self.as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy() 229 CString::new(self.as_bytes()).map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy() 259 .map_err(|_cstr_err| io::Errno::INVAL)?, in to_string_lossy() 296 CString::new(self.as_bytes()).map_err(|_cstr_er in to_string_lossy() [all...] |
/third_party/rust/crates/rustix/src/backend/linux_raw/fs/ |
H A D | syscalls.rs | 628 st_size: x.stx_size.try_into().map_err(|_| io::Errno::OVERFLOW)?, in statx_to_stat() 635 .map_err(|_| io::Errno::OVERFLOW)?, in statx_to_stat() 641 .map_err(|_| io::Errno::OVERFLOW)?, in statx_to_stat() 647 .map_err(|_| io::Errno::OVERFLOW)?, in statx_to_stat() 657 st_dev: s64.st_dev.try_into().map_err(|_| io::Errno::OVERFLOW)?, in stat_to_stat() 658 st_mode: s64.st_mode.try_into().map_err(|_| io::Errno::OVERFLOW)?, in stat_to_stat() 659 st_nlink: s64.st_nlink.try_into().map_err(|_| io::Errno::OVERFLOW)?, in stat_to_stat() 660 st_uid: s64.st_uid.try_into().map_err(|_| io::Errno::OVERFLOW)?, in stat_to_stat() 661 st_gid: s64.st_gid.try_into().map_err(|_| io::Errno::OVERFLOW)?, in stat_to_stat() 662 st_rdev: s64.st_rdev.try_into().map_err(| in stat_to_stat() [all...] |
/third_party/rust/crates/regex/tests/ |
H A D | consistent.rs | 28 .map_err(|err| format!("{}", err))?, in backends_are_consistent() 36 .map_err(|err| format!("{}", err))?, in backends_are_consistent() 43 .map_err(|err| format!("{}", err))?, in backends_are_consistent() 55 .map_err(|err| format!("{}", err))?, in backends_are_consistent() 64 .map_err(|err| format!("{}", err))?, in backends_are_consistent() 72 .map_err(|err| format!("{}", err))?, in backends_are_consistent() 84 .map_err(|err| format!("{}", err))?, in backends_are_consistent() 93 .map_err(|err| format!("{}", err))?, in backends_are_consistent() 101 .map_err(|err| format!("{}", err))?, in backends_are_consistent() 140 .map_err(|er in quickcheck_regex_eq() [all...] |
/third_party/rust/crates/log/src/kv/ |
H A D | source.rs | 415 self.0.visit(&mut f).map_err(|_| fmt::Error)?; in fmt() 454 self.0.visit(&mut f).map_err(|_| fmt::Error)?; in fmt() 476 .map_err(|_| Error::msg("failed to stream map key"))?; in stream() 479 .map_err(|_| Error::msg("failed to stream map value"))?; in stream() 486 .map_err(|_| self::sval::Error::msg("failed to begin map"))?; in stream() 489 .map_err(|_| self::sval::Error::msg("failed to visit key-values"))?; in stream() 493 .map_err(|_| self::sval::Error::msg("failed to end map")) in stream() 508 .map_err(|_| Error::msg("failed to stream seq entry"))?; in stream() 515 .map_err(|_| self::sval::Error::msg("failed to begin seq"))?; in stream() 518 .map_err(| in stream() [all...] |
/third_party/rust/crates/autocfg/src/ |
H A D | version.rs | 30 .map_err(error::from_io)); in from_rustc() 34 let output = try!(str::from_utf8(&output.stdout).map_err(error::from_utf8)); in from_rustc() 55 try!(major.parse().map_err(error::from_num)), in from_rustc() 56 try!(minor.parse().map_err(error::from_num)), in from_rustc() 57 try!(patch.parse().map_err(error::from_num)), in from_rustc()
|
H A D | lib.rs | 164 let meta = try!(fs::metadata(&dir).map_err(error::from_io)); in with_dir() 226 let mut child = try!(command.spawn().map_err(error::from_io)); in probe() 230 try!(stdin.write_all(b"#![no_std]\n").map_err(error::from_io)); in probe() 232 try!(stdin.write_all(code.as_ref()).map_err(error::from_io)); in probe() 235 let status = try!(child.wait().map_err(error::from_io)); in probe()
|
/kernel/linux/linux-5.10/arch/m68k/mm/ |
H A D | fault.c | 95 goto map_err; in do_page_fault() 101 goto map_err; in do_page_fault() 108 goto map_err; in do_page_fault() 111 goto map_err; in do_page_fault() 150 goto map_err; in do_page_fault() 195 map_err: in do_page_fault()
|
/kernel/linux/linux-6.6/arch/m68k/mm/ |
H A D | fault.c | 95 goto map_err; in do_page_fault() 99 goto map_err; in do_page_fault() 106 goto map_err; in do_page_fault() 156 goto map_err; in do_page_fault() 199 map_err: in do_page_fault()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/thread/ |
H A D | syscalls.rs | 77 tv_sec: req.tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, in clock_nanosleep_relative_old() 78 tv_nsec: req.tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, in clock_nanosleep_relative_old() 136 tv_sec: req.tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, in clock_nanosleep_absolute_old() 137 tv_nsec: req.tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, in clock_nanosleep_absolute_old() 191 tv_sec: req.tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, in nanosleep_old() 192 tv_nsec: req.tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, in nanosleep_old() 272 tv_sec: (*utime).tv_sec.try_into().map_err(|_| io::Errno::INVAL)?, in futex_old() 273 tv_nsec: (*utime).tv_nsec.try_into().map_err(|_| io::Errno::INVAL)?, in futex_old()
|
/third_party/rust/crates/rustix/src/io/ |
H A D | procfs.rs | 201 openat(dirfd, path, oflags, Mode::empty()).map_err(|_err| io::Errno::NOTSUP) in proc_opendirat() 223 check_proc_entry(Kind::Proc, proc.as_fd(), None).map_err(|_err| io::Errno::NOTSUP)?; in proc() 253 .map_err(|_err| io::Errno::NOTSUP)?; in proc_self() 284 .map_err(|_err| io::Errno::NOTSUP)?; 321 .map_err(|_err| io::Errno::NOTSUP)?; in proc_self_fdinfo() 413 let file = openat(dir, name, oflags, Mode::empty()).map_err(|_err| io::Errno::NOTSUP)?; in open_and_check_file() 429 let dir = Dir::read_from(dir).map_err(|_err| io::Errno::NOTSUP)?; in open_and_check_file() 432 let dot_stat = dir.stat().map_err(|_err| io::Errno::NOTSUP)?; in open_and_check_file() 440 let entry = entry.map_err(|_err| io::Errno::NOTSUP)?; in open_and_check_file()
|
/third_party/rust/crates/cxx/gen/lib/src/ |
H A D | lib.rs | 57 .map_err(crate::gen::Error::from) in generate_header_and_cc() 58 .map_err(Error::from)?; in generate_header_and_cc() 59 gen::generate(syntax, opt).map_err(Error::from) in generate_header_and_cc()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/time/ |
H A D | syscalls.rs | 134 .map_err(|_| io::Errno::OVERFLOW)?, in timerfd_settime_old() 139 .map_err(|_| io::Errno::INVAL)?, in timerfd_settime_old() 146 .map_err(|_| io::Errno::OVERFLOW)?, in timerfd_settime_old() 151 .map_err(|_| io::Errno::INVAL)?, in timerfd_settime_old()
|
/third_party/rust/crates/libloading/src/os/windows/ |
H A D | mod.rs | 127 }).map_err(|e| e.unwrap_or(crate::Error::GetModuleHandleExWUnknown)) in this() 162 }).map_err(|e| e.unwrap_or(crate::Error::GetModuleHandleExWUnknown)) in open_already_loaded() 203 }).map_err(|e| e.unwrap_or(crate::Error::LoadLibraryExWUnknown)); in load_with_flags() 233 }).map_err(|e| e.unwrap_or(crate::Error::GetProcAddressUnknown)) in get() 254 }).map_err(|e| e.unwrap_or(crate::Error::GetProcAddressUnknown)) in get_ordinal() 288 }).map_err(|e| e.unwrap_or(crate::Error::FreeLibraryUnknown)); in close()
|
/third_party/rust/crates/clap/src/ |
H A D | derive.rs | 84 .map_err(format_error::<Self>); in parse() 98 <Self as FromArgMatches>::from_arg_matches_mut(&mut matches).map_err(format_error::<Self>) in try_parse() 109 .map_err(format_error::<Self>); in parse_from() 127 <Self as FromArgMatches>::from_arg_matches_mut(&mut matches).map_err(format_error::<Self>) in try_parse_from() 138 .map_err(format_error::<Self>); in update_from() 155 .map_err(format_error::<Self>) in try_update_from()
|
/kernel/linux/linux-6.6/rust/alloc/ |
H A D | raw_vec.rs | 218 let layout = Layout::array::<T>(capacity).map_err(|_| CapacityOverflow)?; in try_allocate_in() 224 let ptr = result.map_err(|_| AllocError { layout, non_exhaustive: () })?; in try_allocate_in() 490 .map_err(|_| AllocError { layout: new_layout, non_exhaustive: () })? in shrink() 512 let new_layout = new_layout.map_err(|_| CapacityOverflow)?; in finish_grow() 527 memory.map_err(|_| AllocError { layout: new_layout, non_exhaustive: () }.into()) in finish_grow() 543 match result.map_err(|e| e.kind()) { in handle_reserve()
|
/third_party/rust/crates/nix/src/ |
H A D | pty.rs | 84 unistd::read(self.0, buf).map_err(io::Error::from) in read() 90 unistd::write(self.0, buf).map_err(io::Error::from) in write() 99 unistd::read(self.0, buf).map_err(io::Error::from) in read() 105 unistd::write(self.0, buf).map_err(io::Error::from) in write()
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/quickchecking/src/ |
H A D | lib.rs | 69 .map_err(|_| "error converting path into String")?; in run_predicate_script() 77 .map_err(|_| "error converting path into String")?; in run_predicate_script()
|
/third_party/rust/crates/syn/examples/dump-syntax/src/ |
H A D | main.rs | 72 let code = fs::read_to_string(&filepath).map_err(Error::ReadFile)?; in try_main() 73 let syntax = syn::parse_file(&code).map_err({ in try_main()
|
/third_party/rust/crates/nom/fuzz/fuzz_targets/ |
H A D | fuzz_arithmetic.rs | 69 let (i, init) = factor(i).map_err(|e| { decr(); e })?; in term() 97 let (i, init) = term(i).map_err(|e| { decr(); e })?; in expr()
|
/third_party/rust/crates/clap/tests/builder/ |
H A D | error.rs | 86 .map_err(|e| e.apply::<clap::error::KindFormatter>()); in kind_prints_help() 104 .map_err(|e| e.apply::<clap::error::KindFormatter>()); in kind_formats_validation_error()
|
/third_party/rust/crates/syn/benches/ |
H A D | rust.rs | 35 TokenStream::from_str(content).map(drop).map_err(drop) in bench() 41 syn::parse_file(content).map(drop).map_err(drop) in bench()
|
/third_party/rust/crates/clap/examples/derive_ref/ |
H A D | augment_subcommands.rs | 18 .map_err(|err| err.exit()) in main()
|
/third_party/rust/crates/syn/dev/ |
H A D | parse.rs | 9 .map_err(|err| err.to_compile_error()) in r()
|