File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2828//!
2929//! This means we can skip tagging it, which is necessary as this variant can
3030//! be constructed from a `const fn`, which probably cannot tag pointers (or
31- //! at least it would be difficult.
31+ //! at least it would be difficult) .
3232//!
3333//! - **Tag 0b01**: The other pointer variant holds the data for
3434//! `ErrorData::Custom` and the remaining 62 bits are used to store a
4040//! preserve the pointer's provenance, which would otherwise be lost.
4141//!
4242//! - **Tag 0b10**: Holds the data for `ErrorData::Os(i32)`. We store the `i32`
43- //! in the pointers most significant 32 bits, and don't use the bits `2..32`
43+ //! in the pointer's most significant 32 bits, and don't use the bits `2..32`
4444//! for anything. Using the top 32 bits is just to let us easily recover the
4545//! `i32` code with the correct sign.
4646//!
You can’t perform that action at this time.
0 commit comments