taiki-e / pin-project-lite

A lightweight version of pin-project written with declarative macros.
https://docs.rs/pin-project-lite
Apache License 2.0
216 stars 15 forks source link

Force proj_vis to pub(crate) if visibility cannot be parsed due to rustc bug #79

Open taiki-e opened 1 year ago

taiki-e commented 1 year ago

Fixes #77

The visibility that has been parsed once by caller macro and can no longer be re-parsed by us (due to rustc bug) is forced to pub(crate).

Note: This would be a breaking change for macros that generate code with traits that have lower visibility than pub(crate) as a bound.