asomers / mockall

A powerful mock object library for Rust
Apache License 2.0
1.5k stars 62 forks source link

Fixing compatibility with syn-2.0.9 #474

Closed asomers closed 1 year ago

asomers commented 1 year ago

This version of syn is more picky about parsing ItemImplFn. Previously it would accept "pub fn foo(&self);" and consider the ";" to be the function's Block. But now it (technically correctly) doesn't recognize that as a valid ItemImplFn. So instead we'll have to parse that as a combination of a Visibility and a TraitItemFn.