Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

portable: Retain the provided type IDs #174

Merged
merged 30 commits into from
Mar 21, 2023
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
e3e2312
ty: Make type fields public
lexnv Mar 8, 2023
8143c65
portable: Add recursive type ID resolver
lexnv Mar 8, 2023
f18bafa
tests: Check recursive type ID correctness
lexnv Mar 8, 2023
e5dc1e2
portable: Implement `retain` on the `PortableRegistry`
lexnv Mar 8, 2023
965579e
tests: Check `retain` method
lexnv Mar 8, 2023
d1e7773
portable: Add error type
lexnv Mar 8, 2023
49be10d
derive: Fix clippy and improve documentation
lexnv Mar 8, 2023
f1a378b
Fix clippy
lexnv Mar 9, 2023
3fdf492
rustfmt: Change deprecated fmt
lexnv Mar 9, 2023
867b926
portable: Ensure no-std works
lexnv Mar 9, 2023
7241cc8
test_suite: Adjust UI tests to latest
lexnv Mar 9, 2023
8ee93db
Adjust UI tests with nightly
lexnv Mar 9, 2023
4264969
portable: Remove AtomicU32
lexnv Mar 13, 2023
4549555
portable: Use DFS for recursive ID assignment
lexnv Mar 13, 2023
5d70abb
ty: Implement zero-alloc Default::default() for Type
lexnv Mar 17, 2023
5071adf
portable: Change `retain` signature with FnMut
lexnv Mar 17, 2023
863f06b
portable/tests: Apply clippy
lexnv Mar 17, 2023
d5123ea
git: Use clippy with `--all-targets`
lexnv Mar 17, 2023
ee3ae6d
ty: Make fields public to this crate `pub(crate)` only
lexnv Mar 17, 2023
47859ae
portable: Use `mem` from `prelude` and not from `std`
lexnv Mar 17, 2023
b04048b
retain
jsdw Mar 17, 2023
dabb640
portable: Modify docs and apply fmt
lexnv Mar 17, 2023
17a98f2
portable/test: Check result BTreeMap
lexnv Mar 17, 2023
9bcb199
Fix cargo check
lexnv Mar 17, 2023
16011f5
tests: Recursive retain for all type-def types
lexnv Mar 21, 2023
5701df5
ty: Use placeholder instead of implementing dummy Default::default()
lexnv Mar 21, 2023
3000e18
portable: use crate::prelude::vec![] insted of vec![]
lexnv Mar 21, 2023
95fa6cb
Update src/portable.rs
lexnv Mar 21, 2023
72ac00d
portable: Fix clippy
lexnv Mar 21, 2023
e4018f2
Update src/portable.rs
lexnv Mar 21, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: clippy
run: |
cargo clippy --version
cargo clippy --all -- -D warnings
cargo clippy --all-targets -- -D warnings

- name: check-all-features
run: |
Expand Down
2 changes: 1 addition & 1 deletion .rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ struct_field_align_threshold = 0
enum_discrim_align_threshold = 0
match_arm_blocks = true
force_multiline_blocks = true # changed
fn_args_layout = "Tall"
fn_params_layout = "Tall"
brace_style = "SameLineWhere"
control_brace_style = "AlwaysSameLine"
trailing_semicolon = false # changed
Expand Down
2 changes: 1 addition & 1 deletion derive/src/trait_bounds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pub fn make_where_clause<'a>(
}
});

generics.type_params().into_iter().for_each(|type_param| {
generics.type_params().for_each(|type_param| {
let ident = type_param.ident.clone();
let mut bounds = type_param.bounds.clone();
if attrs
Expand Down
Loading