Skip to content

Begin refactoring deriving code and implement #[deriving(TotalOrd)] #5376

New issue

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

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

Already on GitHub? # to your account

Closed
wants to merge 2 commits into from
Closed

Begin refactoring deriving code and implement #[deriving(TotalOrd)] #5376

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Mar 14, 2013

The first commit breaks the 1200-line deriving.rs into multiple submodules, one for each derivable trait. I haven't made any effort yet to clean that code up, however.

The second commit introduces #[deriving(TotalOrd)], which creates an implementation based on the successive comparison of all struct/enum fields in their declaration order. A future patch will allow this to be configured in the attribute.

@ghost
Copy link
Author

ghost commented Mar 14, 2013

Hold off on reviewing this; there's one small issue I just uncovered. Will rebase shortly.

@ghost
Copy link
Author

ghost commented Mar 14, 2013

Rebase complete.

@ghost
Copy link
Author

ghost commented Mar 15, 2013

Closing this while I do some more work on it.

@ghost ghost closed this Mar 15, 2013
@ghost ghost reopened this Mar 15, 2013
@ghost ghost closed this Mar 15, 2013
@ghost ghost deleted the deriving branch March 15, 2013 17:39
bors added a commit to rust-lang-ci/rust that referenced this pull request May 2, 2020
…n, r=matthiaskrgr

Move verbose_file_reads to restriction

cc rust-lang#5368

Using `File::read` instead of  `fs::read_to_end` does make sense in multiple cases, so this lint is rather restriction, than complexity

changelog: Move [`verbose_file_reads`] to restriction
This pull request was closed.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant