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

remove dead #[derive(FromPrimitive)] code #31400

Merged
merged 2 commits into from
Feb 5, 2016

Conversation

durka
Copy link
Contributor

@durka durka commented Feb 4, 2016

You can #[derive(FromPrimitive)], but it fails later in the compile due to hardcoding std::num::FromPrimitive which was removed (for some reason Github doesn't show FromPrimitive in the diff, but git show does).

Anyway, this PR removes the code. I didn't mark it as a breaking change, even though this extremely contrived code using highly unstable features is broken by it -- should I?

@alexcrichton
Copy link
Member

@bors: r+ 45e716e

@alexcrichton alexcrichton added the relnotes Marks issues that should be documented in the release notes of the next release. label Feb 4, 2016
@alexcrichton
Copy link
Member

Tagging with relnotes but this may not even warrant a mention

Manishearth added a commit to Manishearth/rust that referenced this pull request Feb 5, 2016
…chton

You can `#[derive(FromPrimitive)]`, but it [fails later in the compile](https://play.rust-lang.org/?gist=82cb8ad2fac49e3fe472&version=stable) due to hardcoding `std::num::FromPrimitive` which [was removed](rust-lang@eeb9488) (for some reason Github doesn't show `FromPrimitive` in the diff, but `git show` does).

Anyway, this PR removes the code. I didn't mark it as a breaking change, even though [this extremely contrived code using highly unstable features](https://play.rust-lang.org/?gist=1e1b1bbff962837b228a&version=nightly) is broken by it -- should I?
@nagisa
Copy link
Member

nagisa commented Feb 5, 2016

@bors force

(another PR is still running but was requested to be cancelled by the author, forcing the next PR in queue)

@bors
Copy link
Contributor

bors commented Feb 5, 2016

⌛ Testing commit 45e716e with merge 98422e8...

bors added a commit that referenced this pull request Feb 5, 2016
You can `#[derive(FromPrimitive)]`, but it [fails later in the compile](https://play.rust-lang.org/?gist=82cb8ad2fac49e3fe472&version=stable) due to hardcoding `std::num::FromPrimitive` which [was removed](eeb9488) (for some reason Github doesn't show `FromPrimitive` in the diff, but `git show` does).

Anyway, this PR removes the code. I didn't mark it as a breaking change, even though [this extremely contrived code using highly unstable features](https://play.rust-lang.org/?gist=1e1b1bbff962837b228a&version=nightly) is broken by it -- should I?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
relnotes Marks issues that should be documented in the release notes of the next release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants