nushell/crates/nu-protocol/src
Devyn Cairns 626d597527
Replace panics with errors in thread spawning (#12040)
# Description
Replace panics with errors in thread spawning.

Also adds `IntoSpanned` trait for easily constructing `Spanned`, and an
implementation of `From<Spanned<std::io::Error>>` for `ShellError`,
which is used to provide context for the error wherever there was a span
conveniently available. In general this should make it more convenient
to do the right thing with `std::io::Error` and always add a span to it
when it's possible to do so.

# User-Facing Changes
Fewer panics!

# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`
2024-03-02 11:14:02 -06:00
..
ast Remove unused Index(Mut) impls on AST types (#11903) 2024-02-21 18:02:30 +08:00
config Add Value::coerce_str (#11885) 2024-02-18 17:47:10 +01:00
engine wrapping run_repl with catch_unwind and restarting the repl on panic (#11860) 2024-02-22 12:14:10 -06:00
value Glob: don't allow implicit casting between glob and string (#11992) 2024-02-28 23:05:35 +08:00
alias.rs
cli_error.rs
did_you_mean.rs
eval_base.rs open, rm, umv, cp, rm and du: Don't globs if inputs are variables or string interpolation (#11886) 2024-02-23 09:17:09 +08:00
eval_const.rs Add ConfigDirNotFound error (#11849) 2024-02-26 15:42:20 +08:00
example.rs
exportable.rs
id.rs
lev_distance.rs
lib.rs Deprecate --flag: bool in custom command (#11365) 2023-12-21 10:07:08 +01:00
module.rs
parse_error.rs Prune unused ParseError variants (#11881) 2024-02-18 15:31:02 +08:00
parse_warning.rs Deprecate --flag: bool in custom command (#11365) 2023-12-21 10:07:08 +01:00
pipeline_data.rs Replace panics with errors in thread spawning (#12040) 2024-03-02 11:14:02 -06:00
plugin_signature.rs Bidirectional communication and streams for plugins (#11911) 2024-02-25 16:32:50 -06:00
shell_error.rs Replace panics with errors in thread spawning (#12040) 2024-03-02 11:14:02 -06:00
signature.rs Replace debug_assert! with assert! in Signature::check_names (#11937) 2024-02-22 16:17:06 -06:00
span.rs Replace panics with errors in thread spawning (#12040) 2024-03-02 11:14:02 -06:00
syntax_shape.rs open, rm, umv, cp, rm and du: Don't globs if inputs are variables or string interpolation (#11886) 2024-02-23 09:17:09 +08:00
ty.rs Glob: don't allow implicit casting between glob and string (#11992) 2024-02-28 23:05:35 +08:00
util.rs
variable.rs