Commit graph

12 commits

Author SHA1 Message Date
David Tolnay
479744ec28
No need for dead code if struct fields are public 2024-06-07 19:38:42 -07:00
David Tolnay
4db08b10a3
Ignore warning on unused struct in test
warning: struct `OptSourceNoBacktrace` is never constructed
      --> tests/test_option.rs:10:16
       |
    10 |     pub struct OptSourceNoBacktrace {
       |                ^^^^^^^^^^^^^^^^^^^^
       |
       = note: `#[warn(dead_code)]` on by default

    warning: struct `OptSourceAlwaysBacktrace` is never constructed
      --> tests/test_option.rs:17:16
       |
    17 |     pub struct OptSourceAlwaysBacktrace {
       |                ^^^^^^^^^^^^^^^^^^^^^^^^

    warning: struct `NoSourceOptBacktrace` is never constructed
      --> tests/test_option.rs:25:16
       |
    25 |     pub struct NoSourceOptBacktrace {
       |                ^^^^^^^^^^^^^^^^^^^^

    warning: struct `AlwaysSourceOptBacktrace` is never constructed
      --> tests/test_option.rs:32:16
       |
    32 |     pub struct AlwaysSourceOptBacktrace {
       |                ^^^^^^^^^^^^^^^^^^^^^^^^

    warning: struct `OptSourceOptBacktrace` is never constructed
      --> tests/test_option.rs:40:16
       |
    40 |     pub struct OptSourceOptBacktrace {
       |                ^^^^^^^^^^^^^^^^^^^^^
2024-06-07 19:36:29 -07:00
David Tolnay
f2824ae379
Fill in ignore reasons in all #[ignore] attributes 2024-06-01 22:16:16 -07:00
David Tolnay
8a95c2583e
Update to nightly's new Error::provide API 2023-08-14 23:15:54 -07:00
David Tolnay
e11c97babf
Update backtrace test to provider API 2022-08-30 19:08:59 -07:00
David Tolnay
986e106172
Revert "Disable nightly backtrace testing until converted to provider API"
This reverts commit c1fb583043.
2022-08-30 19:04:12 -07:00
David Tolnay
c1fb583043
Disable nightly backtrace testing until converted to provider API 2022-08-02 20:46:44 -07:00
David Tolnay
dd9206cfd0
Remove clippy deny attributes from test suite
These were superseded by the clippy invocation made in our CI workflow:

    run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic
2022-04-24 15:22:58 -07:00
David Tolnay
21b5dabc25
Try to catch clippy::pedantic violations in generated code 2020-05-21 18:41:13 -07:00
David Tolnay
b4996def92
Make test_option appear as ignored or passing 2019-10-12 16:18:43 -07:00
David Tolnay
d9ed0fba49
Add test for optional backtrace 2019-10-12 16:14:07 -07:00
David Tolnay
30b1561f65
Add test for optional source 2019-10-12 16:07:23 -07:00