Skip to content

Conversation

@taiki-e
Copy link
Owner

@taiki-e taiki-e commented Jun 6, 2020

This deprecates #[project], #[project_ref], and #[project_replace] attributes in favor of the naming of projected type.

Closes #225

@taiki-e
Copy link
Owner Author

taiki-e commented Jun 6, 2020

Hm, deprecation of proc-macro requires Rust 1.40 (rust-lang/rust#65666). I'll add a build script.

@taiki-e taiki-e force-pushed the deprecate-project-attributes branch 2 times, most recently from 470a60c to e69fa34 Compare June 7, 2020 05:48
@taiki-e taiki-e added relnotes A-project-attribute Area: #[project], #[project_ref], and #[project_replace] (note: this was removed in v1.0) labels Jun 7, 2020
@taiki-e taiki-e marked this pull request as ready for review June 12, 2020 02:53
@taiki-e taiki-e force-pushed the deprecate-project-attributes branch 2 times, most recently from 67d1fea to 2e63bec Compare June 13, 2020 07:26
@taiki-e taiki-e force-pushed the deprecate-project-attributes branch from 2e63bec to fda3011 Compare June 13, 2020 07:34
@taiki-e
Copy link
Owner Author

taiki-e commented Jun 13, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Jun 13, 2020

Build succeeded:

@bors bors bot merged commit 9e3996f into master Jun 13, 2020
@bors bors bot deleted the deprecate-project-attributes branch June 13, 2020 07:45
@taiki-e
Copy link
Owner Author

taiki-e commented Jun 13, 2020

Hmm... rustdoc doesn't seem to show deprecation note on re-export. https://docs.rs/pin-project/0.4.21/pin_project/#attributes

So, it needs to add descriptions to project attributes.

bors bot added a commit that referenced this pull request Jun 14, 2020
255: Add deprecation note to project attributes r=taiki-e a=taiki-e

Addresses #244 (comment)

Co-authored-by: Taiki Endo <te316e89@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-project-attribute Area: #[project], #[project_ref], and #[project_replace] (note: this was removed in v1.0)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate #[project] attributes in favor of the naming of projected-type

1 participant