Commit graph

8 commits

Author SHA1 Message Date
David Tolnay
94ef1d73b0
Delete non_exhaustive_omitted_patterns lint and exhaustive cfg 2024-10-19 19:37:58 -07:00
David Tolnay
3b66338afa
Support OUT_DIR located in \\?\ path on Windows 2024-05-14 14:45:54 -07:00
David Tolnay
554f072045
Resolve unexpected_cfgs warning
warning: unexpected `cfg` condition name: `exhaustive`
      --> src/main.rs:18:23
       |
    18 | #![cfg_attr(all(test, exhaustive), feature(non_exhaustive_omitted_patterns_lint))]
       |                       ^^^^^^^^^^
       |
       = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, `windows`
       = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(exhaustive)");` to the top of the `build.rs`
       = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
       = note: `#[warn(unexpected_cfgs)]` on by default

    warning: unexpected `cfg` condition name: `exhaustive`
      --> src/edit.rs:64:31
       |
    64 |         #![cfg_attr(all(test, exhaustive), deny(non_exhaustive_omitted_patterns))]
       |                               ^^^^^^^^^^
       |
       = help: consider using a Cargo feature instead or adding `println!("cargo::rustc-check-cfg=cfg(exhaustive)");` to the top of the `build.rs`
       = note: see <https://doc.rust-lang.org/nightly/cargo/reference/build-scripts.html#rustc-check-cfg> for more information about checking conditional configuration
2024-05-06 15:27:48 -07:00
David Tolnay
828ea84c93
Make prettyplease version appear only if '--version --verbose' is used 2023-08-05 11:40:53 -07:00
David Tolnay
f1d6cf52c8
Fix printing of prettyplease 0.2.x version number 2023-03-24 20:48:08 -07:00
David Tolnay
5a10cb0134
Prevent build.rs rerunning unnecessarily on all source changes 2022-12-12 14:37:40 -08:00
David Tolnay
9e6d9270e7
Prettyplease default, rustfmt opt-in via config 2022-08-13 12:21:22 -07:00
David Tolnay
c5b8828563
Include prettyplease version in --version 2022-06-16 15:47:19 -07:00