Skip to content
Open
Changes from 1 commit
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
fd12a02
chore: bump `itertools` semver and activate `use_alloc`
rich-ayr Feb 5, 2025
75860ae
feat(integration): add integration tests for custom attributes
rich-ayr Feb 5, 2025
2c4742f
feat(attrs): add tests for custom attributes and cli
rich-ayr Feb 5, 2025
8506bc9
feat(attrs): implement codegen
rich-ayr Feb 5, 2025
4ae1854
feat(attrs): add `merge_cfg_attributes` pass
rich-ayr Feb 5, 2025
1599556
doc(attrs): fix docs for `merge_cfg_attributes` pass
rich-ayr Feb 5, 2025
8542bfa
fix: visibility of `FunctionKind` and `MethodKind`
rich-ayr Feb 5, 2025
2878dbe
feat(attrs): implement cli
rich-ayr Feb 5, 2025
d12cce9
feat(attrs): use `Vec` instead of `HashSet`
rich-ayr Feb 5, 2025
48b8599
feat(attrs): format attribute tokens using config
rich-ayr Feb 6, 2025
ab272ad
feat(attrs): always use `prettyplease::unparse` and some refactoring
rich-ayr Feb 6, 2025
6ec8523
refactor: unnest codegen for var to reduce code duplication
rich-ayr Feb 6, 2025
3e98b56
style: spelling
rich-ayr Feb 6, 2025
fe77c8b
docs: fix comments
rich-ayr Feb 6, 2025
678e52b
fix: remove debug prints
rich-ayr Feb 6, 2025
724fc19
fix(attrs): use `Vec<_>` over `HashSet<_>`
rich-ayr Feb 6, 2025
91928be
chore: fix rustfmt check
rich-ayr Feb 6, 2025
3600115
fix: crate version
rich-ayr Feb 6, 2025
31e3c5f
fix: remove unused imports
rich-ayr Feb 6, 2025
3c552de
fix: cli build
rich-ayr Feb 6, 2025
8dc4963
chore: run rustfmt on `codegen/mod.rs`
rich-ayr Feb 6, 2025
b2b3181
chore: run rustfmt on `options/cli.rs`
rich-ayr Feb 6, 2025
1be9954
fix: make clippy happy
rich-ayr Feb 6, 2025
3d1ff2c
chore: run rustfmt on `codegen/mod.rs`
rich-ayr Feb 6, 2025
a833e10
feat(attrs): always enable `prettyplease`
rich-ayr Feb 6, 2025
b4eb4fc
fix(attrs): emit comment as first attribute
rich-ayr Feb 6, 2025
786c1bc
style: minor fixes
rich-ayr Feb 6, 2025
dc468ee
fix(attrs): only quote `cfg_attrs` for constified enum variant `impl`s
rich-ayr Feb 6, 2025
7834cdc
fix(regr): prepend space inside block comments
rich-ayr Feb 6, 2025
d2b5b19
chore: run rustfmt on `codegen/mod.rs`
rich-ayr Feb 6, 2025
ed8fc84
chore: apply clippy fixes
rich-ayr Feb 6, 2025
63f7863
fix: improve comment formatting, unnest branch
rich-ayr Feb 6, 2025
c270044
fix: don't skip empty lines indiscriminately
rich-ayr Feb 6, 2025
ec0a0dc
fix: skip -> take
rich-ayr Feb 6, 2025
9305a1d
fix: use itertools for logic
rich-ayr Feb 6, 2025
67ef11f
fix: attempt to not trim whitespaces
rich-ayr Feb 6, 2025
031be86
fix: syntax error
rich-ayr Feb 6, 2025
dd80133
chore: run rustfmt on `codegen/mod.rs`
rich-ayr Feb 6, 2025
e1d3855
fix: filter out `#[must_use]` attributes
rich-ayr Feb 6, 2025
c4c5358
fix: invert logic
rich-ayr Feb 6, 2025
9dcbd24
fix: invert operator
rich-ayr Feb 6, 2025
9c02ec5
fix(tests): apply new `#[must_use]` order
rich-ayr Feb 6, 2025
d646345
chore: run rustfmt on `codegen/mod.rs`
rich-ayr Feb 6, 2025
c7d0890
fix: test to apply attrs for function_item
rich-ayr Feb 6, 2025
de6805e
fix: remaining expectations related to new attribute handling
rich-ayr Feb 6, 2025
1caa01a
chore: run rustfmt on `codegen/mod.rs`
rich-ayr Feb 6, 2025
6fe99c9
chore: apply clippy fix
rich-ayr Feb 6, 2025
a4f583d
fix: attempt to fix CI
rich-ayr Feb 6, 2025
ffaec44
fix: terminate comment
rich-ayr Feb 6, 2025
f27db9a
fix: attempt to fix ci
rich-ayr Feb 6, 2025
fad0ff5
fix: attempt to fix ci
rich-ayr Feb 6, 2025
d0652a0
fix: attempt to fix ci
rich-ayr Feb 6, 2025
b625a69
fix: only remove `#[must_use]` for non-dynamic fns
rich-ayr Feb 6, 2025
726ff75
chore: run rustfmt on `codegen/mod.rs`
rich-ayr Feb 6, 2025
f7eeecd
fix: attempt to fix ci
rich-ayr Feb 6, 2025
00663bf
fix: attempt to fix ci
rich-ayr Feb 6, 2025
e6c4596
fix: attempt to fix ci at last
rich-ayr Feb 6, 2025
05178c6
fix: attempt to fix ci - see what happens
rich-ayr Feb 6, 2025
cd86a8f
fix: make it compile
rich-ayr Feb 6, 2025
a0c642e
fix: invert condition
rich-ayr Feb 6, 2025
973cca1
fix: attempt to fix ci
rich-ayr Feb 6, 2025
f2aecce
fix: setting attributes on dynamic_functions seems bad, so let's not …
rich-ayr Feb 6, 2025
d5c134b
fix: syntax errors
rich-ayr Feb 6, 2025
0698c4f
fix: try the helper again
rich-ayr Feb 6, 2025
c9c772b
fix: try to combine the attrs
rich-ayr Feb 6, 2025
e95c7e5
fix: version number
rich-ayr Feb 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: run rustfmt on codegen/mod.rs
  • Loading branch information
rich-ayr committed Feb 6, 2025
commit d6463458d2a898dda4e27bff1459a0afb86a7862
4 changes: 3 additions & 1 deletion bindgen/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,9 @@ impl CodeGenerator for Type {
};

let mut attrs = attrs_for_item(item, ctx);
attrs.retain(|attr| attr.to_string() != attributes::must_use().to_string());
attrs.retain(|attr| {
attr.to_string() != attributes::must_use().to_string()
});

if let Some(inner_attrs) =
result.get_attributes(inner_item.id())
Expand Down