danielhenrymantilla / rust-uninit

Read trait fixed to soundly work with uninitalized memory
MIT License
25 stars 2 forks source link

Consider removing the `pub macro` in `well_located_public_macro` #15

Closed kupiakos closed 10 months ago

kupiakos commented 10 months ago

This warning is always printed when compiling on 1.71 stable:

warning: `macro` is experimental
   --> src\read\mod.rs:192:5
    |
192 | /     pub
193 | |     macro $macro_name {
194 | |         $(
195 | |             $input => $output,
196 | |         )+
197 | |     }
    | |_____^
...
200 | / well_located_public_macro! {
201 | |     /// Helper macro to alleviate the code duplication from implementing both
202 | |     /// `Read` and `ReadIntoUninit`.
203 | |     ///
...   |
253 | |     )}
254 | | }
    | |_- in this macro invocation
    |
    = note: see issue #39412 <https://github.com/rust-lang/rust/issues/39412> for more information
    = warning: unstable syntax can change at any point in the future, causing a hard error!
    = note: for more information, see issue #65860 <https://github.com/rust-lang/rust/issues/65860>
    = note: this warning originates in the macro `well_located_public_macro` (in Nightly builds, run with -Z macro-backtrace for more info)

This is annoying.