Repository navigation
Restrict PartialEq and PartialOrd documentation to thin pointers - #163372
Conversation
|
r? @JohnTitor rustbot has assigned @JohnTitor. Use Why was this reviewer chosen?The reviewer was selected based on:
|
2878128 to
08cb1c7
Compare
For fat pointers, the old documentation that the comparison reduces to comparison of the addresses is clearly wrong. Don't make any new guarantees for now by simply restricting the documentation to thin pointers.
08cb1c7 to
46ad236
Compare
|
r? ChrisDenton Thanks! Do we have a definition of thin pointers we can link to? I worry this will look like jargon on its own. |
|
Hm, apparently not. During a quick search I could only find mention of thin pointers in unstable items. I did find one mention of fat pointers on
But other than that the documentation of stable items seems to mostly ignore the existence of fat/wide pointers. |
There was a problem hiding this comment.
Ok I'm going to accept this as I think it is an improvement and "thin pointer" is a common enough term in rust.
We really should define our terms properly though. Would you be willing to open an issue about the lack of thin pointer definition (and maybe the fat/wide terminology inconsistency)?
|
@bors r+ rollup |
…uwer Rollup of 9 pull requests Successful merges: - #163743 (std: simplify the miri bypass of the stack overflow detection logic) - #164474 (core: implement `char::is_xid_{start|continue}`) - #164643 (Const-stabilize `{BinaryHeap, BTreeMap, BTreeSet, LinkedList, VecDeque)::{len, is_empty}`) - #164739 (Use cfi_encoding instead of name in abi checking in miri) - #162927 (stabilize ptr_cast_slice) - #163372 (Restrict `PartialEq` and `PartialOrd` documentation to thin pointers) - #164261 (Simplify MSYS check in is_terminal on Windows) - #164698 (Remove FCP from libs tracking checklist) - #164810 (Don't prioritize issues that require internal features)
Rollup merge of #163372 - niluxv:ptr-cmp-docs1, r=ChrisDenton Restrict `PartialEq` and `PartialOrd` documentation to thin pointers For fat pointers, the old documentation that the comparison reduces to comparison of the addresses is clearly wrong. Don't make any new guarantees for now by simply restricting the documentation to thin pointers. (Found this issue while writing up #163013.)
…uwer Rollup of 9 pull requests Successful merges: - rust-lang/rust#163743 (std: simplify the miri bypass of the stack overflow detection logic) - rust-lang/rust#164474 (core: implement `char::is_xid_{start|continue}`) - rust-lang/rust#164643 (Const-stabilize `{BinaryHeap, BTreeMap, BTreeSet, LinkedList, VecDeque)::{len, is_empty}`) - rust-lang/rust#164739 (Use cfi_encoding instead of name in abi checking in miri) - rust-lang/rust#162927 (stabilize ptr_cast_slice) - rust-lang/rust#163372 (Restrict `PartialEq` and `PartialOrd` documentation to thin pointers) - rust-lang/rust#164261 (Simplify MSYS check in is_terminal on Windows) - rust-lang/rust#164698 (Remove FCP from libs tracking checklist) - rust-lang/rust#164810 (Don't prioritize issues that require internal features)
For fat pointers, the old documentation that the comparison reduces to comparison of the addresses is clearly wrong. Don't make any new guarantees for now by simply restricting the documentation to thin pointers.
(Found this issue while writing up #163013.)