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

Revised: Added TotalEq/TotalOrd/Clone functionality and related tests to B-tree #11258

Closed
wants to merge 2 commits into from

Conversation

niftynif
Copy link
Contributor

@niftynif niftynif commented Jan 1, 2014

After the debacle that was the previous PR, I decided to close and start again. This adds TotalEq, TotalOrd, and Clone to each part of the btree structure. r? @catamorphism

Wrote some tests for the compare/clone/to_str methods.

Took out doc comments around tests.

Don't allow impls to force public types

This code in resolve accidentally forced all types with an impl to become
public. This fixes it by default inheriting the privacy of what was previously
there and then becoming `true` if nothing else exits.

Closes rust-lang#10545

Committing to show work in progress.  Everything is still messy,
but I want to take this opportunity to get feedback from relevant
parties if I can.

Recommitting after a bad commit that unnecessarily changed files.
@@ -14,8 +14,10 @@
//! Starting implementation of a btree for rust.
//! Structure inspired by github user davidhalperin's gist.


#[allow(attribute_usage)];
#[feature(globs)];
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see any globs in this commit. Why turn on the feature?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it was left in by accident. It was being used, but I ultimately ended up taking out the globs. There are also a few commented-out lines I meant to delete so I think I'll push a new commit shortly that fixes these things and anything else that needs fixing.

@niftynif niftynif closed this Jan 1, 2014
@adrientetar
Copy link
Contributor

@niftynif: You don't need to open up a new PR everytime, just do your changes locally then git commit --amend and git push --force.
Also git reset if you want to edit more than just your last commit.

@niftynif
Copy link
Contributor Author

niftynif commented Jan 2, 2014

Great, thanks for the advice. :)

flip1995 pushed a commit to flip1995/rust that referenced this pull request Jul 31, 2023
Resolve type aliases in `type_certainty`

Fixes rust-lang#11256

changelog: `unwrap_or_default`: Fix ICE when local types are declared using alias types
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.

3 participants