()
| 2 | use std::io::Write; |
| 3 | |
| 4 | fn main() { |
| 5 | use_feature_or_nothing("can_vector"); // https://github.com/rust-lang/rust/issues/69941 |
| 6 | use_feature_or_nothing("clamp"); // https://github.com/rust-lang/rust/issues/44095 |
| 7 | use_feature_or_nothing("extend_one"); // https://github.com/rust-lang/rust/issues/72631 |
| 8 | use_feature_or_nothing("io_error_more"); // https://github.com/rust-lang/rust/issues/86442 |
| 9 | use_feature_or_nothing("pattern"); // https://github.com/rust-lang/rust/issues/27721 |
| 10 | use_feature_or_nothing("seek_stream_len"); // https://github.com/rust-lang/rust/issues/59359 |
| 11 | use_feature_or_nothing("shrink_to"); // https://github.com/rust-lang/rust/issues/56431 |
| 12 | use_feature_or_nothing("toowned_clone_into"); // https://github.com/rust-lang/rust/issues/41263 |
| 13 | use_feature_or_nothing("try_reserve"); // https://github.com/rust-lang/rust/issues/56431 |
| 14 | use_feature_or_nothing("unix_socket_peek"); // https://github.com/rust-lang/rust/issues/76923 |
| 15 | use_feature_or_nothing("windows_by_handle"); // https://github.com/rust-lang/rust/issues/63010 |
| 16 | use_feature_or_nothing("write_all_vectored"); // https://github.com/rust-lang/rust/issues/70436 |
| 17 | // https://doc.rust-lang.org/unstable-book/library-features/windows-file-type-ext.html |
| 18 | use_feature_or_nothing("windows_file_type_ext"); |
| 19 | |
| 20 | // Don't rerun this on changes other than build.rs, as we only depend on |
| 21 | // the rustc version. |
| 22 | println!("cargo:rerun-if-changed=build.rs"); |
| 23 | } |
| 24 | |
| 25 | fn use_feature_or_nothing(feature: &str) { |
| 26 | if has_feature(feature) { |
nothing calls this directly
no test coverage detected