feat: add attributes support on struct fields and method #3870

Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
This commit is contained in:
Benjamin Coenen 2020-04-09 09:39:17 +02:00
commit 585bb83e2a
28 changed files with 522 additions and 336 deletions

View file

@ -336,7 +336,7 @@ fn no_such_field_with_feature_flag_diagnostics() {
pub(crate) fn new(my_val: usize, bar: bool) -> Self {
Self { my_val, bar }
}
#[cfg(not(feature = "foo"))]
pub(crate) fn new(my_val: usize, _bar: bool) -> Self {
Self { my_val }