Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

define Eq,TotalEq,Ord,TotalOrd for &mut T #14133

Merged
merged 1 commit into from
May 15, 2014

Conversation

db48x
Copy link
Contributor

@db48x db48x commented May 12, 2014

Also Show, which is useful in assertions. Fixes #14074

@@ -1244,6 +1244,9 @@ impl<T> Show for *T {
impl<T> Show for *mut T {
fn fmt(&self, f: &mut Formatter) -> Result { secret_pointer(self, f) }
}
impl<'a, T> Show for &'a mut T {
fn fmt(&self, f: &mut Formatter) -> Result { secret_pointer(self, f) }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move this up to line 1124 next to the impl for &'a T, and use secret_show instead?

@alexcrichton
Copy link
Member

Looks good to me, thanks! Could you squash the commits together?

Also, feel free to ping the PR whenever you update it, sadly github doesn't send out notifications!

Also Show, which is useful in assertions. Fixes rust-lang#14074
@db48x
Copy link
Contributor Author

db48x commented May 14, 2014

Well, when in Rome I suppose.

bors added a commit that referenced this pull request May 15, 2014
Also Show, which is useful in assertions. Fixes #14074
@bors bors closed this May 15, 2014
@bors bors merged commit 9eb723d into rust-lang:master May 15, 2014
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 13, 2023
minor: Add version placeholder to changelog template

Closes rust-lang#13967

This isn't great because we need to fill it in manually, but getting the version number from GitHub Actions is a bit annoying.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Define Ord for &mut T if T is Ord
3 participants