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

iter_copied rustc 1.35 compatibility fix #353 #354

Merged
merged 1 commit into from Nov 1, 2019

Conversation

@dunnock
Copy link
Contributor

dunnock commented Oct 31, 2019

Replaced copied with filter_map for rustc 1.35 compatibility. This should fix projects like mentioned by @dvogt23 in issue #353 which are still using rustc 1.35 might automatically pull 0.5.4 since it is patch semver.

% cargo +1.35.0 test
   Compiling toml v0.5.4 (/Users/max/src/opensource/toml-rs)
    Finished dev [unoptimized + debuginfo] target(s) in 4.37s
     Running target/debug/deps/toml-bd94711eee332035

running 6 tests
test tokens::tests::bad_comment ... ok
test tokens::tests::bare_cr_bad ... ok
test tokens::tests::all ... ok
test tokens::tests::keylike ... ok
test tokens::tests::basic_strings ... ok
test tokens::tests::literal_strings ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/enum_external_deserialize-e6d4b6530bf5385b

running 16 tests
test enum_array::from_dotted_table ... ignored
test enum_newtype::from_dotted_table ... ignored
test enum_struct::from_dotted_table ... ok
test enum_newtype::from_inline_table ... ok
test enum_struct::from_inline_table ... ok
test enum_array::from_inline_tables ... ok
test enum_tuple::from_dotted_table ... ok
test enum_struct::from_nested_dotted_table ... ok
test enum_unit::from_dotted_table ... ok
test enum_unit::from_str ... ok
test enum_unit::from_inline_table ... ok
test extra_field_returns_expected_empty_table_error ... ok
test enum_tuple::from_inline_table ... ok
test invalid_variant_returns_error_with_good_message_inline_table ... ok
test invalid_variant_returns_error_with_good_message_string ... ok
test extra_field_returns_expected_empty_table_error_struct_variant ... ok

test result: ok. 14 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out

   Doc-tests toml

running 10 tests
test src/lib.rs -  (line 26) ... ignored
test src/lib.rs -  (line 46) ... ok
test src/lib.rs -  (line 113) ... ok
test src/macros.rs - toml (line 9) ... ok
test src/ser.rs - ser (line 14) ... ok
test src/de.rs - de::from_str (line 50) ... ok
test src/ser.rs - ser::tables_last (line 1579) ... ok
test src/lib.rs -  (line 79) ... ok
test src/ser.rs - ser::to_string (line 57) ... ok
test src/spanned.rs - spanned::Spanned (line 14) ... ok

test result: ok. 9 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out
@alexcrichton alexcrichton merged commit 1e6bfbc into alexcrichton:master Nov 1, 2019
5 checks passed
5 checks passed
Test (stable)
Details
Test (beta)
Details
Test (nightly)
Details
Rustfmt
Details
Publish Documentation
Details
@alexcrichton

This comment has been minimized.

Copy link
Owner

alexcrichton commented Nov 1, 2019

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.