code_ownership 2.1.4 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.cargo/config +2 -2
- data/Cargo.lock +6 -59
- data/ext/cargo-vendor/codeowners-0.5.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/codeowners-0.5.0/.github/workflows/audit.yml +31 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/.github/workflows/ci.yml +11 -0
- data/ext/cargo-vendor/codeowners-0.5.0/.github/workflows/codeql.yml +21 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/Cargo.lock +27 -115
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/Cargo.toml +44 -3
- data/ext/cargo-vendor/codeowners-0.5.0/perf/README.md +204 -0
- data/ext/cargo-vendor/codeowners-0.5.0/perf/compare.sh +23 -0
- data/ext/cargo-vendor/codeowners-0.5.0/perf/run.sh +28 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/rust-toolchain.toml +1 -1
- data/ext/cargo-vendor/codeowners-0.5.0/src/bin/codeowners-perf.rs +719 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/cache/file.rs +9 -9
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/cache/mod.rs +4 -4
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/cache/noop.rs +4 -4
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/cli.rs +7 -7
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/main.rs +3 -3
- data/ext/cargo-vendor/codeowners-0.5.0/src/ownership/file_owner_resolver.rs +829 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/validator.rs +108 -15
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership.rs +22 -3
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/project.rs +4 -4
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/project_builder.rs +40 -14
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/project_file_builder.rs +2 -2
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/runner/api.rs +8 -5
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/runner/types.rs +1 -2
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/runner.rs +39 -29
- data/ext/cargo-vendor/codeowners-0.5.0/tests/annotation_in_unowned_team_glob_test.rs +64 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/common/mod.rs +1 -1
- data/ext/cargo-vendor/codeowners-0.5.0/tests/directory_codeowner_github_team_test.rs +22 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/empty_directory_codeowner_test.rs +26 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/annotation_in_unowned_team_glob/.github/CODEOWNERS +18 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/annotation_in_unowned_team_glob/config/code_ownership.yml +4 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/annotation_in_unowned_team_glob/config/teams/alpha.yml +7 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/annotation_in_unowned_team_glob/config/teams/beta.yml +3 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/annotation_in_unowned_team_glob/ruby/app/services/alpha_owned.rb +2 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/annotation_in_unowned_team_glob/ruby/app/services/beta_owned.rb +4 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/directory-codeowner-github-team/.github/CODEOWNERS +15 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/directory-codeowner-github-team/app/by_handle/.codeowner +1 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/directory-codeowner-github-team/app/by_handle/handled.rb +2 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/directory-codeowner-github-team/app/by_name/named.rb +2 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/empty-directory-codeowner/.github/CODEOWNERS +14 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/empty-directory-codeowner/app/services/.codeowner +1 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/empty-directory-codeowner/app/services/nested/.codeowner +1 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/empty-directory-codeowner/app/services/nested/nested_file.rb +2 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/empty-directory-codeowner/config/code_ownership.yml +10 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/empty-directory-codeowner/config/teams/foo.yml +5 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/invalid-directory-codeowner/.github/CODEOWNERS +14 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/invalid-directory-codeowner/app/services/.codeowner +1 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/invalid-directory-codeowner/app/services/nested/.codeowner +1 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/invalid-directory-codeowner/app/services/nested/nested_file.rb +2 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/invalid-directory-codeowner/config/code_ownership.yml +10 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/invalid-directory-codeowner/config/teams/foo.yml +5 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/multiple-directory-owners/app/services/.codeowner +1 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/multiple-directory-owners/config/code_ownership.yml +10 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/multiple-directory-owners/config/teams/foo.yml +5 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/global_gitignore_test.rs +50 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/invalid_directory_codeowner_test.rs +26 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/invalid_project_test.rs +9 -9
- data/ext/cargo-vendor/codeowners-0.5.0/tests/perf_harness_test.rs +245 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/untracked_new_file_test.rs +63 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/untracked_source_file_test.rs +40 -0
- data/ext/cargo-vendor/error-stack-0.8.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/error-stack-0.8.0/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/error-stack-0.8.0/.justfile +16 -0
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/CHANGELOG.md +50 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/Cargo.lock +253 -310
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/Cargo.toml +107 -52
- data/ext/cargo-vendor/error-stack-0.8.0/Cargo.toml.orig +109 -0
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/README.md +16 -18
- data/ext/cargo-vendor/error-stack-0.8.0/build.rs +28 -0
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/examples/demo.rs +21 -19
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/examples/detect.rs +6 -6
- data/ext/cargo-vendor/error-stack-0.8.0/examples/exit_code.rs +25 -0
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/examples/parse_config.rs +5 -5
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/src/compat/anyhow.rs +7 -7
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/src/compat/eyre.rs +7 -6
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/src/compat/mod.rs +7 -9
- data/ext/cargo-vendor/error-stack-0.8.0/src/context.rs +52 -0
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/src/error.rs +2 -9
- data/ext/cargo-vendor/error-stack-0.8.0/src/ext/iter.rs +286 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/ext/mod.rs +19 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/ext/stream.rs +212 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/ext/tuple.rs +218 -0
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/src/fmt/charset.rs +12 -12
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/src/fmt/color.rs +30 -30
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/src/fmt/config.rs +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/src/fmt/hook.rs +23 -24
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/src/fmt/location.rs +3 -3
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/src/fmt/mod.rs +62 -52
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/src/frame/frame_impl.rs +12 -15
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/src/frame/kind.rs +11 -10
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/src/frame/mod.rs +8 -10
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/src/future.rs +57 -63
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/src/hook/context.rs +18 -20
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/src/hook/mod.rs +16 -15
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/src/iter.rs +12 -57
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/src/lib.rs +99 -87
- data/ext/cargo-vendor/error-stack-0.8.0/src/macros.rs +212 -0
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/src/report.rs +525 -207
- data/ext/cargo-vendor/error-stack-0.8.0/src/result.rs +137 -0
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/src/serde.rs +53 -38
- data/ext/cargo-vendor/error-stack-0.8.0/src/sink.rs +672 -0
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/common.rs +36 -24
- data/ext/cargo-vendor/error-stack-0.8.0/tests/compiletest.rs +22 -0
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/fmt__charset_ascii.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/fmt__charset_utf8.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/fmt__diagnostics_add.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/fmt__doc.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/fmt__emit.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/fmt__emit_alt.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/fmt__hookcontext_cast.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/fmt__hookcontext_decrement.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/fmt__hookcontext_emit.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/fmt__hookcontext_increment.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/fmt__hookcontext_storage.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/fmt__preference_color.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/fmt__preference_emphasis.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/fmt__preference_none.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/fmt_doc_alt.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/hook__debug_hook.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/hook__debug_hook_provide.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/lib__suggestion.snap +2 -2
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/report_debug__doc.snap +3 -3
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__complex.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__hook_location.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__linear.snap +2 -2
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__linear_ext.snap +2 -2
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__multiline_context.snap +3 -3
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__sources.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__sources_transparent.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__sources_nested.snap +10 -10
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__sources_nested@spantrace-backtrace.snap +10 -10
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__sources_nested_alternate.snap +10 -10
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__sources_nested_alternate@spantrace-backtrace.snap +10 -10
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_serialize__attachment.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_serialize__context.snap +1 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_serialize__multiple_sources.snap +2 -2
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_serialize__multiple_sources_at_root.snap +2 -2
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/test_attach.rs +41 -15
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/test_attach_printable.rs +14 -15
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/test_backtrace.rs +0 -1
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/test_change_context.rs +31 -9
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/test_compatibility.rs +8 -17
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/test_conversion.rs +25 -3
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/test_debug.rs +91 -91
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/test_display.rs +8 -9
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_downcast.rs +101 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_extend.rs +99 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_frame.rs +136 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_iter.rs +132 -0
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/test_macros.rs +5 -31
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/test_provision.rs +3 -2
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/test_serialize.rs +14 -14
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/test_span_trace.rs +10 -11
- data/ext/cargo-vendor/error-stack-0.8.0/tests/ui/attach_diagnostics.rs +21 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/ui/attach_diagnostics.stderr +23 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/ui/frames_mut_escape.rs +28 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/ui/frames_mut_escape.stderr +13 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/ui/macro_invalid_args.rs +32 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/ui/macro_invalid_args.stderr +132 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/ui/missing_args.rs +32 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/ui/missing_args.stderr +35 -0
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/ui/must_use.rs +3 -3
- data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/ui/must_use.stderr +1 -1
- data/ext/code_ownership/Cargo.toml +1 -1
- data/ext/code_ownership/src/lib.rs +13 -1
- data/lib/code_ownership/version.rb +1 -1
- data/lib/code_ownership.rb +3 -0
- metadata +340 -431
- data/ext/cargo-vendor/ahash-0.7.8/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/ahash-0.7.8/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/ahash-0.7.8/.github/workflows/rust.yml +0 -151
- data/ext/cargo-vendor/ahash-0.7.8/Cargo.toml +0 -149
- data/ext/cargo-vendor/ahash-0.7.8/Cargo.toml.orig +0 -96
- data/ext/cargo-vendor/ahash-0.7.8/FAQ.md +0 -118
- data/ext/cargo-vendor/ahash-0.7.8/LICENSE-APACHE +0 -201
- data/ext/cargo-vendor/ahash-0.7.8/LICENSE-MIT +0 -25
- data/ext/cargo-vendor/ahash-0.7.8/README.md +0 -110
- data/ext/cargo-vendor/ahash-0.7.8/build.rs +0 -47
- data/ext/cargo-vendor/ahash-0.7.8/rustfmt.toml +0 -1
- data/ext/cargo-vendor/ahash-0.7.8/src/aes_hash.rs +0 -440
- data/ext/cargo-vendor/ahash-0.7.8/src/convert.rs +0 -167
- data/ext/cargo-vendor/ahash-0.7.8/src/fallback_hash.rs +0 -392
- data/ext/cargo-vendor/ahash-0.7.8/src/hash_map.rs +0 -371
- data/ext/cargo-vendor/ahash-0.7.8/src/hash_quality_test.rs +0 -517
- data/ext/cargo-vendor/ahash-0.7.8/src/hash_set.rs +0 -313
- data/ext/cargo-vendor/ahash-0.7.8/src/lib.rs +0 -263
- data/ext/cargo-vendor/ahash-0.7.8/src/operations.rs +0 -330
- data/ext/cargo-vendor/ahash-0.7.8/src/random_state.rs +0 -363
- data/ext/cargo-vendor/ahash-0.7.8/src/specialize.rs +0 -239
- data/ext/cargo-vendor/ahash-0.7.8/tests/bench.rs +0 -154
- data/ext/cargo-vendor/ahash-0.7.8/tests/map_tests.rs +0 -203
- data/ext/cargo-vendor/ahash-0.7.8/tests/nopanic.rs +0 -72
- data/ext/cargo-vendor/codeowners-0.3.3/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/codeowners-0.3.3/.github/workflows/audit.yml +0 -19
- data/ext/cargo-vendor/codeowners-0.3.3/src/ownership/file_owner_resolver.rs +0 -416
- data/ext/cargo-vendor/error-stack-0.5.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/error-stack-0.5.0/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/error-stack-0.5.0/.justfile +0 -58
- data/ext/cargo-vendor/error-stack-0.5.0/Cargo.toml.orig +0 -87
- data/ext/cargo-vendor/error-stack-0.5.0/build.rs +0 -29
- data/ext/cargo-vendor/error-stack-0.5.0/examples/exit_code.rs +0 -24
- data/ext/cargo-vendor/error-stack-0.5.0/rust-toolchain.toml +0 -4
- data/ext/cargo-vendor/error-stack-0.5.0/src/context.rs +0 -132
- data/ext/cargo-vendor/error-stack-0.5.0/src/macros.rs +0 -253
- data/ext/cargo-vendor/error-stack-0.5.0/src/result.rs +0 -267
- data/ext/cargo-vendor/error-stack-0.5.0/tests/compiletest.rs +0 -7
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__sources_nested@backtrace.snap +0 -104
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__sources_nested@spantrace.snap +0 -104
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__sources_nested_alternate@backtrace.snap +0 -104
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__sources_nested_alternate@spantrace.snap +0 -104
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_downcast.rs +0 -41
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_extend.rs +0 -78
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_frame.rs +0 -126
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_iter.rs +0 -99
- data/ext/cargo-vendor/error-stack-0.5.0/tests/ui/macro_invalid_args.rs +0 -60
- data/ext/cargo-vendor/error-stack-0.5.0/tests/ui/macro_invalid_args.stderr +0 -101
- data/ext/cargo-vendor/getrandom-0.2.16/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/getrandom-0.2.16/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/getrandom-0.2.16/CHANGELOG.md +0 -498
- data/ext/cargo-vendor/getrandom-0.2.16/Cargo.lock +0 -354
- data/ext/cargo-vendor/getrandom-0.2.16/Cargo.toml +0 -121
- data/ext/cargo-vendor/getrandom-0.2.16/Cargo.toml.orig +0 -67
- data/ext/cargo-vendor/getrandom-0.2.16/LICENSE-APACHE +0 -201
- data/ext/cargo-vendor/getrandom-0.2.16/LICENSE-MIT +0 -26
- data/ext/cargo-vendor/getrandom-0.2.16/README.md +0 -81
- data/ext/cargo-vendor/getrandom-0.2.16/SECURITY.md +0 -13
- data/ext/cargo-vendor/getrandom-0.2.16/benches/buffer.rs +0 -71
- data/ext/cargo-vendor/getrandom-0.2.16/src/apple-other.rs +0 -24
- data/ext/cargo-vendor/getrandom-0.2.16/src/custom.rs +0 -105
- data/ext/cargo-vendor/getrandom-0.2.16/src/error.rs +0 -189
- data/ext/cargo-vendor/getrandom-0.2.16/src/error_impls.rs +0 -15
- data/ext/cargo-vendor/getrandom-0.2.16/src/espidf.rs +0 -18
- data/ext/cargo-vendor/getrandom-0.2.16/src/fuchsia.rs +0 -13
- data/ext/cargo-vendor/getrandom-0.2.16/src/getentropy.rs +0 -21
- data/ext/cargo-vendor/getrandom-0.2.16/src/getrandom.rs +0 -25
- data/ext/cargo-vendor/getrandom-0.2.16/src/hermit.rs +0 -29
- data/ext/cargo-vendor/getrandom-0.2.16/src/js.rs +0 -155
- data/ext/cargo-vendor/getrandom-0.2.16/src/lazy.rs +0 -56
- data/ext/cargo-vendor/getrandom-0.2.16/src/lib.rs +0 -407
- data/ext/cargo-vendor/getrandom-0.2.16/src/linux_android.rs +0 -7
- data/ext/cargo-vendor/getrandom-0.2.16/src/linux_android_with_fallback.rs +0 -33
- data/ext/cargo-vendor/getrandom-0.2.16/src/netbsd.rs +0 -46
- data/ext/cargo-vendor/getrandom-0.2.16/src/rdrand.rs +0 -121
- data/ext/cargo-vendor/getrandom-0.2.16/src/solaris.rs +0 -34
- data/ext/cargo-vendor/getrandom-0.2.16/src/solid.rs +0 -18
- data/ext/cargo-vendor/getrandom-0.2.16/src/use_file.rs +0 -120
- data/ext/cargo-vendor/getrandom-0.2.16/src/util.rs +0 -35
- data/ext/cargo-vendor/getrandom-0.2.16/src/util_libc.rs +0 -162
- data/ext/cargo-vendor/getrandom-0.2.16/src/vxworks.rs +0 -29
- data/ext/cargo-vendor/getrandom-0.2.16/src/wasi.rs +0 -17
- data/ext/cargo-vendor/getrandom-0.2.16/src/windows.rs +0 -59
- data/ext/cargo-vendor/getrandom-0.2.16/tests/common/mod.rs +0 -100
- data/ext/cargo-vendor/getrandom-0.2.16/tests/custom.rs +0 -54
- data/ext/cargo-vendor/getrandom-0.2.16/tests/normal.rs +0 -11
- data/ext/cargo-vendor/getrandom-0.2.16/tests/rdrand.rs +0 -22
- data/ext/cargo-vendor/hashbrown-0.12.3/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/hashbrown-0.12.3/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/hashbrown-0.12.3/CHANGELOG.md +0 -402
- data/ext/cargo-vendor/hashbrown-0.12.3/Cargo.toml +0 -113
- data/ext/cargo-vendor/hashbrown-0.12.3/Cargo.toml.orig +0 -60
- data/ext/cargo-vendor/hashbrown-0.12.3/LICENSE-APACHE +0 -201
- data/ext/cargo-vendor/hashbrown-0.12.3/LICENSE-MIT +0 -25
- data/ext/cargo-vendor/hashbrown-0.12.3/README.md +0 -126
- data/ext/cargo-vendor/hashbrown-0.12.3/benches/bench.rs +0 -331
- data/ext/cargo-vendor/hashbrown-0.12.3/benches/insert_unique_unchecked.rs +0 -32
- data/ext/cargo-vendor/hashbrown-0.12.3/clippy.toml +0 -1
- data/ext/cargo-vendor/hashbrown-0.12.3/src/external_trait_impls/mod.rs +0 -4
- data/ext/cargo-vendor/hashbrown-0.12.3/src/external_trait_impls/rayon/helpers.rs +0 -27
- data/ext/cargo-vendor/hashbrown-0.12.3/src/external_trait_impls/rayon/map.rs +0 -734
- data/ext/cargo-vendor/hashbrown-0.12.3/src/external_trait_impls/rayon/mod.rs +0 -4
- data/ext/cargo-vendor/hashbrown-0.12.3/src/external_trait_impls/rayon/raw.rs +0 -231
- data/ext/cargo-vendor/hashbrown-0.12.3/src/external_trait_impls/rayon/set.rs +0 -659
- data/ext/cargo-vendor/hashbrown-0.12.3/src/external_trait_impls/serde.rs +0 -201
- data/ext/cargo-vendor/hashbrown-0.12.3/src/lib.rs +0 -150
- data/ext/cargo-vendor/hashbrown-0.12.3/src/macros.rs +0 -70
- data/ext/cargo-vendor/hashbrown-0.12.3/src/map.rs +0 -8408
- data/ext/cargo-vendor/hashbrown-0.12.3/src/raw/alloc.rs +0 -73
- data/ext/cargo-vendor/hashbrown-0.12.3/src/raw/bitmask.rs +0 -122
- data/ext/cargo-vendor/hashbrown-0.12.3/src/raw/generic.rs +0 -154
- data/ext/cargo-vendor/hashbrown-0.12.3/src/raw/mod.rs +0 -2460
- data/ext/cargo-vendor/hashbrown-0.12.3/src/raw/sse2.rs +0 -146
- data/ext/cargo-vendor/hashbrown-0.12.3/src/rustc_entry.rs +0 -630
- data/ext/cargo-vendor/hashbrown-0.12.3/src/scopeguard.rs +0 -74
- data/ext/cargo-vendor/hashbrown-0.12.3/src/set.rs +0 -2790
- data/ext/cargo-vendor/hashbrown-0.12.3/tests/hasher.rs +0 -65
- data/ext/cargo-vendor/hashbrown-0.12.3/tests/rayon.rs +0 -533
- data/ext/cargo-vendor/hashbrown-0.12.3/tests/serde.rs +0 -65
- data/ext/cargo-vendor/hashbrown-0.12.3/tests/set.rs +0 -34
- data/ext/cargo-vendor/lru-0.7.8/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/lru-0.7.8/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/lru-0.7.8/.github/workflows/main.yml +0 -54
- data/ext/cargo-vendor/lru-0.7.8/CHANGELOG.md +0 -194
- data/ext/cargo-vendor/lru-0.7.8/Cargo.toml +0 -42
- data/ext/cargo-vendor/lru-0.7.8/Cargo.toml.orig +0 -22
- data/ext/cargo-vendor/lru-0.7.8/LICENSE +0 -21
- data/ext/cargo-vendor/lru-0.7.8/README.md +0 -62
- data/ext/cargo-vendor/lru-0.7.8/src/lib.rs +0 -1872
- data/ext/cargo-vendor/version_check-0.9.5/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/version_check-0.9.5/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/version_check-0.9.5/.github/workflows/ci.yml +0 -42
- data/ext/cargo-vendor/version_check-0.9.5/.travis.yml +0 -6
- data/ext/cargo-vendor/version_check-0.9.5/Cargo.toml +0 -38
- data/ext/cargo-vendor/version_check-0.9.5/Cargo.toml.orig +0 -13
- data/ext/cargo-vendor/version_check-0.9.5/LICENSE-APACHE +0 -201
- data/ext/cargo-vendor/version_check-0.9.5/LICENSE-MIT +0 -19
- data/ext/cargo-vendor/version_check-0.9.5/README.md +0 -80
- data/ext/cargo-vendor/version_check-0.9.5/src/channel.rs +0 -195
- data/ext/cargo-vendor/version_check-0.9.5/src/date.rs +0 -203
- data/ext/cargo-vendor/version_check-0.9.5/src/lib.rs +0 -528
- data/ext/cargo-vendor/version_check-0.9.5/src/version.rs +0 -316
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/.github/workflows/main.yml +0 -44
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/.gitmodules +0 -3
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/CODE_OF_CONDUCT.md +0 -49
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/CONTRIBUTING.md +0 -8
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/Cargo.lock +0 -23
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/Cargo.toml +0 -59
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/Cargo.toml.orig +0 -29
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/LICENSE-APACHE +0 -201
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/LICENSE-Apache-2.0_WITH_LLVM-exception +0 -220
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/LICENSE-MIT +0 -23
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/ORG_CODE_OF_CONDUCT.md +0 -143
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/README.md +0 -94
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/SECURITY.md +0 -29
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/src/lib.rs +0 -47
- data/ext/cargo-vendor/wasi-0.11.1+wasi-snapshot-preview1/src/lib_generated.rs +0 -2366
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/.github/CODEOWNERS +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/.github/workflows/dotslash-config.json +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/.rustfmt.toml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/.rusty-hook.toml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/AGENTS.md +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/CLAUDE.md +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/README.md +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/dev/run_benchmarks_for_file.sh +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/dev/run_benchmarks_for_gv.sh +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/common_test.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/config.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/crosscheck.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/lib.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/codeowners_file_parser.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/codeowners_query.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/file_generator.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/file_owner_finder.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/mapper/annotated_file_mapper.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/mapper/directory_mapper.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/mapper/escaper.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/mapper/package_mapper.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/mapper/team_gem_mapper.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/mapper/team_glob_mapper.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/mapper/team_yml_mapper.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/ownership/mapper.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/path_utils.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/src/tracked_files.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/cache_test.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/codeowners_path_test.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/crosscheck_owners_test.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/executable_name_config_test.rs +10 -10
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/custom_codeowners_path/config/code_ownership.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/custom_codeowners_path/config/teams/test_team.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/custom_codeowners_path/docs/CODEOWNERS +3 -3
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/custom_codeowners_path/expected/CODEOWNERS +3 -3
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/custom_codeowners_path/ruby/app/models/test.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/custom_executable_name/.github/CODEOWNERS +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/custom_executable_name/app/foo.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/custom_executable_name/config/code_ownership.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/custom_executable_name/config/teams/foo.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/custom_executable_name/config/teams/payments.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/custom_executable_name/ruby/app/payments/foo.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/default_executable_name/.github/CODEOWNERS +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/default_executable_name/app/bar.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/default_executable_name/config/code_ownership.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/default_executable_name/config/teams/bar.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3/tests/fixtures/multiple-directory-owners/app/services → codeowners-0.5.0/tests/fixtures/directory-codeowner-github-team/app/by_name}/.codeowner +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3/tests/fixtures/multiple-directory-owners → codeowners-0.5.0/tests/fixtures/directory-codeowner-github-team}/config/code_ownership.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3/tests/fixtures/multiple-directory-owners → codeowners-0.5.0/tests/fixtures/directory-codeowner-github-team}/config/teams/foo.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/.github/CODEOWNERS +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/config/code_ownership.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/config/teams/payments.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/config/teams/payroll.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/gems/payroll_calculator/calculator.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/ruby/app/models/bank_account.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/ruby/app/models/blockchain.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/ruby/app/models/payroll.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/ruby/app/payments/nacha.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/ruby/app/services/.codeowner +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/ruby/app/services/multi_owned.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/ruby/app/unowned.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/invalid_project/ruby/packages/payroll_flow/package.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/javascript_only_project/.github/CODEOWNERS +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/javascript_only_project/.keep +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/javascript_only_project/config/code_ownership.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/javascript_only_project/config/teams/design.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/javascript_only_project/config/teams/frontend.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/javascript_only_project/frontend/apps/public/index.tsx +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/javascript_only_project/frontend/packages/dashboard/package.json +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/javascript_only_project/frontend/packages/dashboard/src/index.tsx +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/javascript_only_project/frontend/packages/ui-kit/.codeowner +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/javascript_only_project/frontend/packages/ui-kit/src/button.tsx +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/missing_github_team/.github/CODEOWNERS +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/missing_github_team/config/code_ownership.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/missing_github_team/config/teams/bad_team.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/missing_github_team/config/teams/good.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/missing_github_team/gems/pets/dog.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/multiple-directory-owners/.github/CODEOWNERS +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/multiple-directory-owners/app/consumers/.codeowner +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/multiple-directory-owners/app/consumers/deep/nesting/nestdir/deep_file.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/multiple-directory-owners/app/consumers/one_owner.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/multiple-directory-owners/app/services/exciting/.codeowner +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/multiple-directory-owners/app/services/exciting/some_other_file.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/multiple-directory-owners/config/teams/bar.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/.github/CODEOWNERS +9 -9
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/.ignore +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/config/code_ownership.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/config/teams/payments.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/config/teams/payroll.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/config/teams/ux.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/gems/payroll_calculator/calculator.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/gems/pets/dog.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/javascript/packages/PayrollFlow/index.tsx +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/javascript/packages/PayrollFlow/package.json +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/javascript/packages/items/(special)/.codeowner +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/javascript/packages/items/(special)/pay.ts +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/javascript/packages/items/.codeowner +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/javascript/packages/items/item.ts +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/javascript/packages/list/page-admin.tsx +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/app/models/bank_account.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/app/models/payroll.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/app/payments/foo/.codeowner +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/app/payments/foo/ownedby_payroll.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/app/payments/nacha.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/app/payroll/.codeowner +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/app/payroll/payroll.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/app/views/foos/edit.erb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/app/views/foos/index.html.erb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/app/views/foos/new.html.erb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/ignored_files/git_ignored.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/ruby/packages/payroll_flow/package.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project/should_be_ignored/an_ignored_file.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/.github/CODEOWNERS +12 -12
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/config/code_ownership.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/config/teams/brewers.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/config/teams/cubs.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/config/teams/giants.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/config/teams/rockies.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/frontend/packages/components/datepicker/package.json +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/frontend/packages/components/datepicker/src/picks/dp.tsx +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/frontend/packages/components/list/package.json +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/frontend/packages/components/list/src/item.tsx +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/frontend/packages/components/textfield/package.json +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/frontend/packages/components/textfield/src/field.tsx +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/frontend/packages/components/textfield/src/fields/small.tsx +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/gems/apollo/lib/apollo.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/gems/ivy/lib/ivy.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/gems/lager/lib/lager.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/gems/summit/lib/summit.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/packs/games/app/services/stats.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/packs/games/package.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/packs/locations/app/services/capacity.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/packs/locations/package.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/packs/schedule/app/services/date.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/packs/schedule/package.yml +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/ruby/app/brewers/lib/util.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/ruby/app/brewers/services/play.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/ruby/app/cubs/.codeowner +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/ruby/app/cubs/services/models/.codeowner +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/ruby/app/cubs/services/models/db/price.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/ruby/app/cubs/services/models/entertainment.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/ruby/app/cubs/services/play.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/ruby/app/giants/services/play.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/fixtures/valid_project_with_overrides/ruby/app/rockies/services/play.rb +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/git_stage_test.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/invalid_project_structure_test.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/missing_github_team_test.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/multiple_directory_owners_test.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/run_config_executable_override_test.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/runner_api.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/untracked_files_test.rs +0 -0
- data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/valid_project_test.rs +6 -6
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/valid_project_with_overrides_test.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tests/validate_files_test.rs +0 -0
- /data/ext/cargo-vendor/{codeowners-0.3.3 → codeowners-0.5.0}/tmp/.gitkeep +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/LICENSE-APACHE.md +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/LICENSE-MIT.md +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/LICENSE.md +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/src/fmt/override.rs +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/hook__location_hook.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/report_display__doc.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/doc/report_display_alt__doc.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__alt.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__charset_ascii.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__color_mode_color.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__color_mode_emphasis.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__hook.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__hook_context.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__hook_decr.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__hook_for_context.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__hook_incr.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__hook_multiple.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__hook_provider.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__multiline.snap +0 -0
- /data/ext/cargo-vendor/{error-stack-0.5.0 → error-stack-0.8.0}/tests/snapshots/test_debug__full__norm.snap +0 -0
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
//! [`poll`]: Future::poll
|
|
7
7
|
|
|
8
8
|
use core::{
|
|
9
|
-
|
|
9
|
+
error::Error,
|
|
10
10
|
future::Future,
|
|
11
11
|
pin::Pin,
|
|
12
12
|
task::{Context as TaskContext, Poll},
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
use crate::{
|
|
15
|
+
use crate::{Attachment, OpaqueAttachment, Report, ResultExt};
|
|
16
16
|
|
|
17
17
|
macro_rules! implement_future_adaptor {
|
|
18
18
|
($future:ident, $method:ident, $bound:ident $(+ $bounds:ident)* $(+ $lifetime:lifetime)*, $output:ty) => {
|
|
@@ -100,53 +100,54 @@ macro_rules! implement_lazy_future_adaptor {
|
|
|
100
100
|
implement_future_adaptor!(
|
|
101
101
|
FutureWithAttachment,
|
|
102
102
|
attach,
|
|
103
|
-
|
|
104
|
-
Result<<Fut::Output as ResultExt>::Ok,
|
|
103
|
+
Attachment,
|
|
104
|
+
Result<<Fut::Output as ResultExt>::Ok, Report<<Fut::Output as ResultExt>::Context>>
|
|
105
105
|
);
|
|
106
106
|
|
|
107
107
|
implement_lazy_future_adaptor!(
|
|
108
108
|
FutureWithLazyAttachment,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
Result<<Fut::Output as ResultExt>::Ok,
|
|
109
|
+
attach_with,
|
|
110
|
+
Attachment,
|
|
111
|
+
Result<<Fut::Output as ResultExt>::Ok, Report<<Fut::Output as ResultExt>::Context>>
|
|
112
112
|
);
|
|
113
113
|
|
|
114
114
|
implement_future_adaptor!(
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
Result<<Fut::Output as ResultExt>::Ok,
|
|
115
|
+
FutureWithOpaqueAttachment,
|
|
116
|
+
attach_opaque,
|
|
117
|
+
OpaqueAttachment,
|
|
118
|
+
Result<<Fut::Output as ResultExt>::Ok, Report<<Fut::Output as ResultExt>::Context>>
|
|
119
119
|
);
|
|
120
120
|
|
|
121
121
|
implement_lazy_future_adaptor!(
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
Result<<Fut::Output as ResultExt>::Ok,
|
|
122
|
+
FutureWithLazyOpaqueAttachment,
|
|
123
|
+
attach_opaque_with,
|
|
124
|
+
OpaqueAttachment,
|
|
125
|
+
Result<<Fut::Output as ResultExt>::Ok, Report<<Fut::Output as ResultExt>::Context>>
|
|
126
126
|
);
|
|
127
127
|
|
|
128
128
|
implement_future_adaptor!(
|
|
129
129
|
FutureWithContext,
|
|
130
130
|
change_context,
|
|
131
|
-
|
|
132
|
-
Result<<Fut::Output as ResultExt>::Ok, T
|
|
131
|
+
Error + Send + Sync + 'static,
|
|
132
|
+
Result<<Fut::Output as ResultExt>::Ok, Report<T>>
|
|
133
133
|
);
|
|
134
134
|
|
|
135
135
|
implement_lazy_future_adaptor!(
|
|
136
136
|
FutureWithLazyContext,
|
|
137
137
|
change_context_lazy,
|
|
138
|
-
|
|
139
|
-
Result<<Fut::Output as ResultExt>::Ok, T
|
|
138
|
+
Error + Send + Sync + 'static,
|
|
139
|
+
Result<<Fut::Output as ResultExt>::Ok, Report<T>>
|
|
140
140
|
);
|
|
141
141
|
|
|
142
142
|
/// Extension trait for [`Future`] to provide contextual information on [`Report`]s.
|
|
143
143
|
///
|
|
144
144
|
/// [`Report`]: crate::Report
|
|
145
145
|
pub trait FutureExt: Future + Sized {
|
|
146
|
-
/// Adds a new attachment to the [`Report`] inside the [`Result`] when [`poll`]ing the
|
|
146
|
+
/// Adds a new printable attachment to the [`Report`] inside the [`Result`] when [`poll`]ing the
|
|
147
147
|
/// [`Future`].
|
|
148
148
|
///
|
|
149
|
-
/// Applies [`Report::attach`] on the [`Err`] variant, refer to it for more
|
|
149
|
+
/// Applies [`Report::attach`] on the [`Err`] variant, refer to it for more
|
|
150
|
+
/// information.
|
|
150
151
|
///
|
|
151
152
|
/// [`Report`]: crate::Report
|
|
152
153
|
/// [`Report::attach`]: crate::Report::attach
|
|
@@ -154,55 +155,51 @@ pub trait FutureExt: Future + Sized {
|
|
|
154
155
|
#[track_caller]
|
|
155
156
|
fn attach<A>(self, attachment: A) -> FutureWithAttachment<Self, A>
|
|
156
157
|
where
|
|
157
|
-
A:
|
|
158
|
+
A: Attachment;
|
|
158
159
|
|
|
159
|
-
/// Lazily adds a new attachment to the [`Report`] inside the [`Result`] when
|
|
160
|
-
/// [`Future`].
|
|
160
|
+
/// Lazily adds a new printable attachment to the [`Report`] inside the [`Result`] when
|
|
161
|
+
/// [`poll`]ing the [`Future`].
|
|
161
162
|
///
|
|
162
|
-
/// Applies [`Report::attach`] on the [`Err`] variant, refer to it for more
|
|
163
|
+
/// Applies [`Report::attach`] on the [`Err`] variant, refer to it for more
|
|
164
|
+
/// information.
|
|
163
165
|
///
|
|
164
166
|
/// [`Report`]: crate::Report
|
|
165
167
|
/// [`Report::attach`]: crate::Report::attach
|
|
166
168
|
/// [`poll`]: Future::poll
|
|
167
169
|
#[track_caller]
|
|
168
|
-
fn
|
|
170
|
+
fn attach_with<A, F>(self, attachment: F) -> FutureWithLazyAttachment<Self, F>
|
|
169
171
|
where
|
|
170
|
-
A:
|
|
172
|
+
A: Attachment,
|
|
171
173
|
F: FnOnce() -> A;
|
|
172
174
|
|
|
173
|
-
/// Adds a new
|
|
175
|
+
/// Adds a new attachment to the [`Report`] inside the [`Result`] when [`poll`]ing the
|
|
174
176
|
/// [`Future`].
|
|
175
177
|
///
|
|
176
|
-
/// Applies [`Report::
|
|
177
|
-
/// information.
|
|
178
|
+
/// Applies [`Report::attach_opaque`] on the [`Err`] variant, refer to it for more information.
|
|
178
179
|
///
|
|
179
180
|
/// [`Report`]: crate::Report
|
|
180
|
-
/// [`Report::
|
|
181
|
+
/// [`Report::attach_opaque`]: crate::Report::attach_opaque
|
|
181
182
|
/// [`poll`]: Future::poll
|
|
182
183
|
#[track_caller]
|
|
183
|
-
fn
|
|
184
|
+
fn attach_opaque<A>(self, attachment: A) -> FutureWithOpaqueAttachment<Self, A>
|
|
184
185
|
where
|
|
185
|
-
A:
|
|
186
|
+
A: OpaqueAttachment;
|
|
186
187
|
|
|
187
|
-
/// Lazily adds a new
|
|
188
|
-
/// [`
|
|
188
|
+
/// Lazily adds a new attachment to the [`Report`] inside the [`Result`] when [`poll`]ing the
|
|
189
|
+
/// [`Future`].
|
|
189
190
|
///
|
|
190
|
-
/// Applies [`Report::
|
|
191
|
-
/// information.
|
|
191
|
+
/// Applies [`Report::attach_opaque`] on the [`Err`] variant, refer to it for more information.
|
|
192
192
|
///
|
|
193
193
|
/// [`Report`]: crate::Report
|
|
194
|
-
/// [`Report::
|
|
194
|
+
/// [`Report::attach_opaque`]: crate::Report::attach_opaque
|
|
195
195
|
/// [`poll`]: Future::poll
|
|
196
196
|
#[track_caller]
|
|
197
|
-
fn
|
|
198
|
-
self,
|
|
199
|
-
attachment: F,
|
|
200
|
-
) -> FutureWithLazyPrintableAttachment<Self, F>
|
|
197
|
+
fn attach_opaque_with<A, F>(self, attachment: F) -> FutureWithLazyOpaqueAttachment<Self, F>
|
|
201
198
|
where
|
|
202
|
-
A:
|
|
199
|
+
A: OpaqueAttachment,
|
|
203
200
|
F: FnOnce() -> A;
|
|
204
201
|
|
|
205
|
-
/// Changes the [`
|
|
202
|
+
/// Changes the [`Error`] context of the [`Report`] inside the [`Result`] when [`poll`]ing the
|
|
206
203
|
/// [`Future`].
|
|
207
204
|
///
|
|
208
205
|
/// Applies [`Report::change_context`] on the [`Err`] variant, refer to it for more information.
|
|
@@ -213,10 +210,10 @@ pub trait FutureExt: Future + Sized {
|
|
|
213
210
|
#[track_caller]
|
|
214
211
|
fn change_context<C>(self, context: C) -> FutureWithContext<Self, C>
|
|
215
212
|
where
|
|
216
|
-
C:
|
|
213
|
+
C: Error + Send + Sync + 'static;
|
|
217
214
|
|
|
218
|
-
/// Lazily changes the [`
|
|
219
|
-
/// [`Future`].
|
|
215
|
+
/// Lazily changes the [`Error`] context of the [`Report`] inside the [`Result`] when
|
|
216
|
+
/// [`poll`]ing the [`Future`].
|
|
220
217
|
///
|
|
221
218
|
/// Applies [`Report::change_context`] on the [`Err`] variant, refer to it for more information.
|
|
222
219
|
///
|
|
@@ -226,7 +223,7 @@ pub trait FutureExt: Future + Sized {
|
|
|
226
223
|
#[track_caller]
|
|
227
224
|
fn change_context_lazy<C, F>(self, context: F) -> FutureWithLazyContext<Self, F>
|
|
228
225
|
where
|
|
229
|
-
C:
|
|
226
|
+
C: Error + Send + Sync + 'static,
|
|
230
227
|
F: FnOnce() -> C;
|
|
231
228
|
}
|
|
232
229
|
|
|
@@ -234,9 +231,10 @@ impl<Fut: Future> FutureExt for Fut
|
|
|
234
231
|
where
|
|
235
232
|
Fut::Output: ResultExt,
|
|
236
233
|
{
|
|
234
|
+
#[track_caller]
|
|
237
235
|
fn attach<A>(self, attachment: A) -> FutureWithAttachment<Self, A>
|
|
238
236
|
where
|
|
239
|
-
A:
|
|
237
|
+
A: Attachment,
|
|
240
238
|
{
|
|
241
239
|
FutureWithAttachment {
|
|
242
240
|
future: self,
|
|
@@ -245,9 +243,9 @@ where
|
|
|
245
243
|
}
|
|
246
244
|
|
|
247
245
|
#[track_caller]
|
|
248
|
-
fn
|
|
246
|
+
fn attach_with<A, F>(self, attachment: F) -> FutureWithLazyAttachment<Self, F>
|
|
249
247
|
where
|
|
250
|
-
A:
|
|
248
|
+
A: Attachment,
|
|
251
249
|
F: FnOnce() -> A,
|
|
252
250
|
{
|
|
253
251
|
FutureWithLazyAttachment {
|
|
@@ -256,27 +254,23 @@ where
|
|
|
256
254
|
}
|
|
257
255
|
}
|
|
258
256
|
|
|
259
|
-
|
|
260
|
-
fn attach_printable<A>(self, attachment: A) -> FutureWithPrintableAttachment<Self, A>
|
|
257
|
+
fn attach_opaque<A>(self, attachment: A) -> FutureWithOpaqueAttachment<Self, A>
|
|
261
258
|
where
|
|
262
|
-
A:
|
|
259
|
+
A: OpaqueAttachment,
|
|
263
260
|
{
|
|
264
|
-
|
|
261
|
+
FutureWithOpaqueAttachment {
|
|
265
262
|
future: self,
|
|
266
263
|
inner: Some(attachment),
|
|
267
264
|
}
|
|
268
265
|
}
|
|
269
266
|
|
|
270
267
|
#[track_caller]
|
|
271
|
-
fn
|
|
272
|
-
self,
|
|
273
|
-
attachment: F,
|
|
274
|
-
) -> FutureWithLazyPrintableAttachment<Self, F>
|
|
268
|
+
fn attach_opaque_with<A, F>(self, attachment: F) -> FutureWithLazyOpaqueAttachment<Self, F>
|
|
275
269
|
where
|
|
276
|
-
A:
|
|
270
|
+
A: OpaqueAttachment,
|
|
277
271
|
F: FnOnce() -> A,
|
|
278
272
|
{
|
|
279
|
-
|
|
273
|
+
FutureWithLazyOpaqueAttachment {
|
|
280
274
|
future: self,
|
|
281
275
|
inner: Some(attachment),
|
|
282
276
|
}
|
|
@@ -285,7 +279,7 @@ where
|
|
|
285
279
|
#[track_caller]
|
|
286
280
|
fn change_context<C>(self, context: C) -> FutureWithContext<Self, C>
|
|
287
281
|
where
|
|
288
|
-
C:
|
|
282
|
+
C: Error + Send + Sync + 'static,
|
|
289
283
|
{
|
|
290
284
|
FutureWithContext {
|
|
291
285
|
future: self,
|
|
@@ -296,7 +290,7 @@ where
|
|
|
296
290
|
#[track_caller]
|
|
297
291
|
fn change_context_lazy<C, F>(self, context: F) -> FutureWithLazyContext<Self, F>
|
|
298
292
|
where
|
|
299
|
-
C:
|
|
293
|
+
C: Error + Send + Sync + 'static,
|
|
300
294
|
F: FnOnce() -> C,
|
|
301
295
|
{
|
|
302
296
|
FutureWithLazyContext {
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
use alloc::boxed::Box;
|
|
3
|
-
use alloc::collections::BTreeMap;
|
|
1
|
+
use alloc::{boxed::Box, collections::BTreeMap};
|
|
4
2
|
use core::any::{Any, TypeId};
|
|
5
3
|
|
|
6
4
|
pub(crate) type Storage = BTreeMap<TypeId, BTreeMap<TypeId, Box<dyn Any>>>;
|
|
@@ -19,11 +17,11 @@ impl Counter {
|
|
|
19
17
|
self.0
|
|
20
18
|
}
|
|
21
19
|
|
|
22
|
-
pub(crate) fn increment(&mut self) {
|
|
20
|
+
pub(crate) const fn increment(&mut self) {
|
|
23
21
|
self.0 += 1;
|
|
24
22
|
}
|
|
25
23
|
|
|
26
|
-
pub(crate) fn decrement(&mut self) {
|
|
24
|
+
pub(crate) const fn decrement(&mut self) {
|
|
27
25
|
self.0 -= 1;
|
|
28
26
|
}
|
|
29
27
|
}
|
|
@@ -34,7 +32,7 @@ pub(crate) struct Inner<T> {
|
|
|
34
32
|
}
|
|
35
33
|
|
|
36
34
|
impl<T> Inner<T> {
|
|
37
|
-
pub(crate) fn new(extra: T) -> Self {
|
|
35
|
+
pub(crate) const fn new(extra: T) -> Self {
|
|
38
36
|
Self {
|
|
39
37
|
storage: Storage::new(),
|
|
40
38
|
extra,
|
|
@@ -47,7 +45,7 @@ impl<T> Inner<T> {
|
|
|
47
45
|
&self.storage
|
|
48
46
|
}
|
|
49
47
|
|
|
50
|
-
pub(crate) fn storage_mut(&mut self) -> &mut Storage {
|
|
48
|
+
pub(crate) const fn storage_mut(&mut self) -> &mut Storage {
|
|
51
49
|
&mut self.storage
|
|
52
50
|
}
|
|
53
51
|
|
|
@@ -55,7 +53,7 @@ impl<T> Inner<T> {
|
|
|
55
53
|
&self.extra
|
|
56
54
|
}
|
|
57
55
|
|
|
58
|
-
pub(crate) fn extra_mut(&mut self) -> &mut T {
|
|
56
|
+
pub(crate) const fn extra_mut(&mut self) -> &mut T {
|
|
59
57
|
&mut self.extra
|
|
60
58
|
}
|
|
61
59
|
}
|
|
@@ -75,7 +73,7 @@ $vis struct HookContext<T> {
|
|
|
75
73
|
}
|
|
76
74
|
|
|
77
75
|
impl HookContext<()> {
|
|
78
|
-
pub(crate) fn new(extra: $extra) -> Self {
|
|
76
|
+
pub(crate) const fn new(extra: $extra) -> Self {
|
|
79
77
|
Self {
|
|
80
78
|
inner: $crate::hook::context::Inner::new(extra),
|
|
81
79
|
_marker: core::marker::PhantomData,
|
|
@@ -88,15 +86,15 @@ impl<T> HookContext<T> {
|
|
|
88
86
|
&self.inner
|
|
89
87
|
}
|
|
90
88
|
|
|
91
|
-
pub(crate) fn inner_mut(&mut self) -> &mut $crate::hook::context::Inner<$extra> {
|
|
89
|
+
pub(crate) const fn inner_mut(&mut self) -> &mut $crate::hook::context::Inner<$extra> {
|
|
92
90
|
&mut self.inner
|
|
93
91
|
}
|
|
94
92
|
|
|
95
|
-
fn storage(&self) -> &$crate::hook::context::Storage {
|
|
93
|
+
const fn storage(&self) -> &$crate::hook::context::Storage {
|
|
96
94
|
self.inner().storage()
|
|
97
95
|
}
|
|
98
96
|
|
|
99
|
-
fn storage_mut(&mut self) -> &mut $crate::hook::context::Storage {
|
|
97
|
+
const fn storage_mut(&mut self) -> &mut $crate::hook::context::Storage {
|
|
100
98
|
self.inner_mut().storage_mut()
|
|
101
99
|
}
|
|
102
100
|
}
|
|
@@ -140,9 +138,9 @@ impl<T> HookContext<T> {
|
|
|
140
138
|
/// });
|
|
141
139
|
///
|
|
142
140
|
/// let report = Report::new(std::io::Error::from(ErrorKind::InvalidInput))
|
|
143
|
-
/// .
|
|
144
|
-
/// .
|
|
145
|
-
/// .
|
|
141
|
+
/// .attach_opaque(Error("unable to reach remote host"))
|
|
142
|
+
/// .attach_opaque(Warning("disk nearly full"))
|
|
143
|
+
/// .attach_opaque(Error("cannot resolve example.com: unknown host"));
|
|
146
144
|
///
|
|
147
145
|
/// # Report::set_color_mode(error_stack::fmt::ColorMode::Emphasis);
|
|
148
146
|
/// # fn render(value: String) -> String {
|
|
@@ -168,7 +166,7 @@ impl<T> HookContext<T> {
|
|
|
168
166
|
pub fn cast<U>(&mut self) -> &mut HookContext<U> {
|
|
169
167
|
// SAFETY: `HookContext` is marked as repr(transparent) and the changed generic is only used
|
|
170
168
|
// inside of the `PhantomData`
|
|
171
|
-
unsafe { &mut *(self
|
|
169
|
+
unsafe { &mut *core::ptr::from_mut(self).cast::<HookContext<U>>() }
|
|
172
170
|
}
|
|
173
171
|
}
|
|
174
172
|
|
|
@@ -251,8 +249,8 @@ impl<T: 'static> HookContext<T> {
|
|
|
251
249
|
/// });
|
|
252
250
|
///
|
|
253
251
|
/// let report = Report::new(std::io::Error::from(ErrorKind::InvalidInput))
|
|
254
|
-
/// .
|
|
255
|
-
/// .
|
|
252
|
+
/// .attach_opaque(Suggestion("use a file you can read next time!"))
|
|
253
|
+
/// .attach_opaque(Suggestion("don't press any random keys!"));
|
|
256
254
|
///
|
|
257
255
|
/// # Report::set_color_mode(error_stack::fmt::ColorMode::Emphasis);
|
|
258
256
|
/// # fn render(value: String) -> String {
|
|
@@ -316,8 +314,8 @@ impl<T: 'static> HookContext<T> {
|
|
|
316
314
|
/// });
|
|
317
315
|
///
|
|
318
316
|
/// let report = Report::new(std::io::Error::from(ErrorKind::InvalidInput))
|
|
319
|
-
/// .
|
|
320
|
-
/// .
|
|
317
|
+
/// .attach_opaque(Suggestion("use a file you can read next time!"))
|
|
318
|
+
/// .attach_opaque(Suggestion("don't press any random keys!"));
|
|
321
319
|
///
|
|
322
320
|
/// # Report::set_color_mode(error_stack::fmt::ColorMode::Emphasis);
|
|
323
321
|
/// # fn render(value: String) -> String {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
pub(crate) mod context;
|
|
2
2
|
|
|
3
|
-
#[cfg_attr(feature = "std", allow(unused_imports))]
|
|
4
3
|
use alloc::vec::Vec;
|
|
5
4
|
|
|
6
5
|
use crate::{
|
|
7
|
-
fmt::{install_builtin_hooks, Hooks},
|
|
8
6
|
Report,
|
|
7
|
+
fmt::{Hooks, install_builtin_hooks},
|
|
9
8
|
};
|
|
10
9
|
|
|
11
10
|
#[cfg(feature = "std")]
|
|
@@ -34,7 +33,7 @@ impl Report<()> {
|
|
|
34
33
|
/// use std::io::{Error, ErrorKind};
|
|
35
34
|
///
|
|
36
35
|
/// use error_stack::{
|
|
37
|
-
///
|
|
36
|
+
/// Report, IntoReport,
|
|
38
37
|
/// };
|
|
39
38
|
///
|
|
40
39
|
/// struct Suggestion(&'static str);
|
|
@@ -44,7 +43,7 @@ impl Report<()> {
|
|
|
44
43
|
/// });
|
|
45
44
|
///
|
|
46
45
|
/// let report =
|
|
47
|
-
///
|
|
46
|
+
/// Error::from(ErrorKind::InvalidInput).into_report().attach_opaque(Suggestion("oh no, try again"));
|
|
48
47
|
///
|
|
49
48
|
/// # Report::set_color_mode(error_stack::fmt::ColorMode::Emphasis);
|
|
50
49
|
/// # fn render(value: String) -> String {
|
|
@@ -66,7 +65,7 @@ impl Report<()> {
|
|
|
66
65
|
/// Which will result in something like:
|
|
67
66
|
///
|
|
68
67
|
/// <pre>
|
|
69
|
-
#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/tests/snapshots/doc/hook__debug_hook.snap"))]
|
|
68
|
+
#[cfg_attr(doc, doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/tests/snapshots/doc/hook__debug_hook.snap")))]
|
|
70
69
|
/// </pre>
|
|
71
70
|
///
|
|
72
71
|
/// This example showcases the ability of hooks to be invoked for values provided via the
|
|
@@ -83,8 +82,8 @@ impl Report<()> {
|
|
|
83
82
|
/// # #[cfg(nightly)]
|
|
84
83
|
/// # mod nightly {
|
|
85
84
|
/// use core::error::{Request, Error};
|
|
86
|
-
/// use core::fmt
|
|
87
|
-
/// use error_stack::{Report,
|
|
85
|
+
/// use core::fmt;
|
|
86
|
+
/// use error_stack::{Report, IntoReport};
|
|
88
87
|
///
|
|
89
88
|
/// struct Suggestion(&'static str);
|
|
90
89
|
///
|
|
@@ -97,9 +96,9 @@ impl Report<()> {
|
|
|
97
96
|
/// code: ErrorCode
|
|
98
97
|
/// }
|
|
99
98
|
///
|
|
100
|
-
/// impl Display for UserError {
|
|
101
|
-
/// fn fmt(&self,
|
|
102
|
-
///
|
|
99
|
+
/// impl fmt::Display for UserError {
|
|
100
|
+
/// fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
101
|
+
/// fmt.write_str("invalid user input")
|
|
103
102
|
/// }
|
|
104
103
|
/// }
|
|
105
104
|
///
|
|
@@ -118,7 +117,7 @@ impl Report<()> {
|
|
|
118
117
|
/// context.push_body(format!("error code: {value}"));
|
|
119
118
|
/// });
|
|
120
119
|
///
|
|
121
|
-
/// let report =
|
|
120
|
+
/// let report = UserError {code: ErrorCode(420)}.into_report();
|
|
122
121
|
///
|
|
123
122
|
/// # Report::set_color_mode(error_stack::fmt::ColorMode::Emphasis);
|
|
124
123
|
/// # fn render(value: String) -> String {
|
|
@@ -145,7 +144,7 @@ impl Report<()> {
|
|
|
145
144
|
/// Which will result in something like:
|
|
146
145
|
///
|
|
147
146
|
/// <pre>
|
|
148
|
-
#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/tests/snapshots/doc/hook__debug_hook_provide.snap"))]
|
|
147
|
+
#[cfg_attr(doc, doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/tests/snapshots/doc/hook__debug_hook_provide.snap")))]
|
|
149
148
|
/// </pre>
|
|
150
149
|
///
|
|
151
150
|
/// `error-stack` comes with some built-in hooks which can be overwritten. This is useful if you
|
|
@@ -161,11 +160,13 @@ impl Report<()> {
|
|
|
161
160
|
/// panic::Location,
|
|
162
161
|
/// };
|
|
163
162
|
///
|
|
163
|
+
/// use error_stack::IntoReport;
|
|
164
|
+
///
|
|
164
165
|
/// error_stack::Report::install_debug_hook::<Location>(|_location, _context| {
|
|
165
166
|
/// // Intentionally left empty so nothing will be printed
|
|
166
167
|
/// });
|
|
167
168
|
///
|
|
168
|
-
/// let report =
|
|
169
|
+
/// let report = Error::from(ErrorKind::InvalidInput).into_report();
|
|
169
170
|
///
|
|
170
171
|
/// # error_stack::Report::set_color_mode(error_stack::fmt::ColorMode::Emphasis);
|
|
171
172
|
/// # fn render(value: String) -> String {
|
|
@@ -187,7 +188,7 @@ impl Report<()> {
|
|
|
187
188
|
/// Which will result in something like:
|
|
188
189
|
///
|
|
189
190
|
/// <pre>
|
|
190
|
-
#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/tests/snapshots/doc/hook__location_hook.snap"))]
|
|
191
|
+
#[cfg_attr(doc, doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/tests/snapshots/doc/hook__location_hook.snap")))]
|
|
191
192
|
/// </pre>
|
|
192
193
|
///
|
|
193
194
|
/// [`Location`]: std::panic::Location
|
|
@@ -214,7 +215,7 @@ impl Report<()> {
|
|
|
214
215
|
lock.insert(hook);
|
|
215
216
|
}
|
|
216
217
|
|
|
217
|
-
/// Returns the hook that was previously set by [`install_debug_hook`]
|
|
218
|
+
/// Returns the hook that was previously set by [`install_debug_hook`].
|
|
218
219
|
///
|
|
219
220
|
/// [`install_debug_hook`]: Self::install_debug_hook
|
|
220
221
|
#[cfg(any(feature = "std", feature = "hooks"))]
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
//! Iterators over [`Frame`]s.
|
|
2
2
|
|
|
3
|
-
#[cfg_attr(feature = "std", allow(unused_imports))]
|
|
4
3
|
use alloc::{vec, vec::Vec};
|
|
5
4
|
#[cfg(nightly)]
|
|
6
5
|
use core::marker::PhantomData;
|
|
7
|
-
use core::{
|
|
8
|
-
fmt,
|
|
9
|
-
iter::FusedIterator,
|
|
10
|
-
slice::{Iter, IterMut},
|
|
11
|
-
};
|
|
6
|
+
use core::{fmt, iter::FusedIterator, slice::Iter};
|
|
12
7
|
|
|
13
8
|
use crate::Frame;
|
|
14
9
|
|
|
15
|
-
/// Helper function, which is used in both [`Frames`] and
|
|
10
|
+
/// Helper function, which is used in both [`Frames`] and the mutable frame traversals on
|
|
11
|
+
/// [`Report`].
|
|
12
|
+
///
|
|
13
|
+
/// [`Report`]: crate::Report
|
|
16
14
|
///
|
|
17
15
|
/// To traverse the frames, the following algorithm is used:
|
|
18
16
|
/// Given a list of iterators, take the last iterator, and use items from it until the iterator has
|
|
@@ -32,7 +30,7 @@ use crate::Frame;
|
|
|
32
30
|
/// 7) Out: G Stack: [H]
|
|
33
31
|
/// 8) Out: H Stack: -
|
|
34
32
|
/// ```
|
|
35
|
-
fn next<I: Iterator<Item = T>, T>(iter: &mut Vec<I>) -> Option<T> {
|
|
33
|
+
pub(crate) fn next<I: Iterator<Item = T>, T>(iter: &mut Vec<I>) -> Option<T> {
|
|
36
34
|
let out;
|
|
37
35
|
loop {
|
|
38
36
|
let last = iter.last_mut()?;
|
|
@@ -101,7 +99,7 @@ impl<'r> Iterator for Frames<'r> {
|
|
|
101
99
|
}
|
|
102
100
|
}
|
|
103
101
|
|
|
104
|
-
impl
|
|
102
|
+
impl FusedIterator for Frames<'_> {}
|
|
105
103
|
|
|
106
104
|
impl fmt::Debug for Frames<'_> {
|
|
107
105
|
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
@@ -109,49 +107,6 @@ impl fmt::Debug for Frames<'_> {
|
|
|
109
107
|
}
|
|
110
108
|
}
|
|
111
109
|
|
|
112
|
-
/// Iterator over the mutable [`Frame`] stack of a [`Report`].
|
|
113
|
-
///
|
|
114
|
-
/// Use [`Report::frames_mut()`] to create this iterator.
|
|
115
|
-
///
|
|
116
|
-
/// [`Report`]: crate::Report
|
|
117
|
-
/// [`Report::frames_mut()`]: crate::Report::frames_mut
|
|
118
|
-
#[must_use]
|
|
119
|
-
pub struct FramesMut<'r> {
|
|
120
|
-
stack: Vec<IterMut<'r, Frame>>,
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
impl<'r> FramesMut<'r> {
|
|
124
|
-
pub(crate) fn new(frames: &'r mut [Frame]) -> Self {
|
|
125
|
-
Self {
|
|
126
|
-
stack: vec![frames.iter_mut()],
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
impl<'r> Iterator for FramesMut<'r> {
|
|
132
|
-
type Item = &'r mut Frame;
|
|
133
|
-
|
|
134
|
-
fn next(&mut self) -> Option<Self::Item> {
|
|
135
|
-
let frame = next(&mut self.stack)?;
|
|
136
|
-
let frame: *mut Frame = frame;
|
|
137
|
-
|
|
138
|
-
// SAFETY:
|
|
139
|
-
// We require both mutable access to the frame for all sources (as a mutable iterator) and
|
|
140
|
-
// we need to return the mutable frame itself. We will never access the same value twice,
|
|
141
|
-
// and only store their mutable iterator until the next `next()` call. This function acts
|
|
142
|
-
// like a dynamic chain of multiple `IterMut`. The borrow checker is unable to prove that
|
|
143
|
-
// subsequent calls to `next()` won't access the same data.
|
|
144
|
-
// NB: It's almost never possible to implement a mutable iterator without `unsafe`.
|
|
145
|
-
unsafe {
|
|
146
|
-
self.stack.push((*frame).sources_mut().iter_mut());
|
|
147
|
-
|
|
148
|
-
Some(&mut *frame)
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
impl<'r> FusedIterator for FramesMut<'r> {}
|
|
154
|
-
|
|
155
110
|
/// Iterator over requested references in the [`Frame`] stack of a [`Report`].
|
|
156
111
|
///
|
|
157
112
|
/// Use [`Report::request_ref()`] to create this iterator.
|
|
@@ -188,7 +143,7 @@ where
|
|
|
188
143
|
}
|
|
189
144
|
|
|
190
145
|
#[cfg(nightly)]
|
|
191
|
-
impl<
|
|
146
|
+
impl<T> FusedIterator for RequestRef<'_, T> where T: ?Sized + 'static {}
|
|
192
147
|
|
|
193
148
|
#[cfg(nightly)]
|
|
194
149
|
impl<T: ?Sized> Clone for RequestRef<'_, T> {
|
|
@@ -201,7 +156,7 @@ impl<T: ?Sized> Clone for RequestRef<'_, T> {
|
|
|
201
156
|
}
|
|
202
157
|
|
|
203
158
|
#[cfg(nightly)]
|
|
204
|
-
impl<
|
|
159
|
+
impl<T> fmt::Debug for RequestRef<'_, T>
|
|
205
160
|
where
|
|
206
161
|
T: ?Sized + fmt::Debug + 'static,
|
|
207
162
|
{
|
|
@@ -234,7 +189,7 @@ impl<'r, T> RequestValue<'r, T> {
|
|
|
234
189
|
}
|
|
235
190
|
|
|
236
191
|
#[cfg(nightly)]
|
|
237
|
-
impl<
|
|
192
|
+
impl<T> Iterator for RequestValue<'_, T>
|
|
238
193
|
where
|
|
239
194
|
T: 'static,
|
|
240
195
|
{
|
|
@@ -246,7 +201,7 @@ where
|
|
|
246
201
|
}
|
|
247
202
|
|
|
248
203
|
#[cfg(nightly)]
|
|
249
|
-
impl<
|
|
204
|
+
impl<T> FusedIterator for RequestValue<'_, T> where T: 'static {}
|
|
250
205
|
|
|
251
206
|
#[cfg(nightly)]
|
|
252
207
|
impl<T> Clone for RequestValue<'_, T> {
|
|
@@ -259,7 +214,7 @@ impl<T> Clone for RequestValue<'_, T> {
|
|
|
259
214
|
}
|
|
260
215
|
|
|
261
216
|
#[cfg(nightly)]
|
|
262
|
-
impl<
|
|
217
|
+
impl<T> fmt::Debug for RequestValue<'_, T>
|
|
263
218
|
where
|
|
264
219
|
T: fmt::Debug + 'static,
|
|
265
220
|
{
|