nushell/crates/nu-engine/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
..
call_ext.rs make the ansi command const (#11682) 2024-01-30 16:09:43 -06:00
column.rs Use Record's public API in a bunch of places (#10927) 2023-11-08 14:24:00 +01:00
documentation.rs Name the Value conversion functions more clearly (#11851) 2024-02-17 18:14:16 +00:00
env.rs Add Value::coerce_str (#11885) 2024-02-18 17:47:10 +01:00
eval.rs Replace panics with errors in thread spawning (#12040) 2024-03-02 11:14:02 -06:00
glob_from.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
lib.rs Allow operator in constants (#10212) 2023-09-05 16:35:58 +02:00
scope.rs Remove Record::from_raw_cols_vals_unchecked (#11810) 2024-02-18 14:20:22 +02:00