use ErrorKind;
use ErrorId;
/// Map errors from atomic swap/symlink replacement to stable `ErrorId`.
/// Map restore error kinds to stable `ErrorId` for telemetry.
///
/// Keep this conservative to support older stable compilers; many `ErrorKind`
/// variants (e.g., `NotADirectory`, `IsADirectory`) were stabilized later.
pub const