Skip to content

Preparatory work for #[deriving(Show)] #11948

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

Merged
merged 3 commits into from
Feb 2, 2014
Merged

Preparatory work for #[deriving(Show)] #11948

merged 3 commits into from
Feb 2, 2014

Conversation

huonw
Copy link
Member

@huonw huonw commented Jan 31, 2014

  • renames Default to Show
  • introduces some hidden std::fmt::secret_... functions, designed to work-around the lack of UFCS (with UFCS they can be replaced by referencing the trait methods directly) because I'm going to convert the traits to have methods rather than static functions, since #[deriving] works much better with true methods.

I'm blocked on a snapshot after this. (I could probably do a large number of #[cfg]s, but I can work on other things in the meantime.)

@huonw
Copy link
Member Author

huonw commented Jan 31, 2014

r? @alexcrichton

around the lack of UFCS.

The further work is pending a snapshot, to avoid putting #[cfg(stage0)]
attributes on all the traits and duplicating them.
bors added a commit that referenced this pull request Feb 2, 2014
- renames `Default` to `Show`
- introduces some hidden `std::fmt::secret_...` functions, designed to work-around the lack of UFCS (with UFCS they can be replaced by referencing the trait methods directly) because I'm going to convert the traits to have methods rather than static functions, since `#[deriving]` works much better with true methods.

I'm blocked on a snapshot after this. (I could probably do a large number of `#[cfg]`s, but I can work on other things in the meantime.)
@bors bors closed this Feb 2, 2014
@bors bors merged commit c19a7b6 into rust-lang:master Feb 2, 2014
chris-morgan added a commit to chris-morgan/rust-http that referenced this pull request Feb 4, 2014
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.

2 participants