Mark error constructors cold
Before adoption: this commit came in with the history the project adopted, so no landing records it.
All `#[cold]` to all error constructors. As discussed in the [issue #165](https://github.com/dtolnay/anyhow/issues/165), marking functions cold helps LLVM optimize code paths not leading to error. Although in our case marking only `from` was enough, I took the liberty of marking all error constructors `#[cold]`. Note, I marked cold both inner function and public functions, because LLVM does not always takes into account `#[cold]` attribute of inlined functions, see [an example in compiled explorer](https://rust.godbolt.org/z/vzxazMMnb).
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+18 added−0 removed
- other:+18 added−0 removed