code_ownership 2.1.4 → 2.2.1
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 +36 -86
- data/bin/codeownership +1 -0
- data/ext/cargo-vendor/bindgen-0.72.1/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/bindgen-0.72.1/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/bindgen-0.72.1/Cargo.lock +485 -0
- data/ext/cargo-vendor/bindgen-0.72.1/Cargo.toml +189 -0
- data/ext/cargo-vendor/bindgen-0.72.1/Cargo.toml.orig +72 -0
- data/ext/cargo-vendor/bindgen-0.72.1/README.md +89 -0
- data/ext/cargo-vendor/bindgen-0.72.1/build.rs +29 -0
- data/ext/cargo-vendor/bindgen-0.72.1/callbacks.rs +317 -0
- data/ext/cargo-vendor/bindgen-0.72.1/clang.rs +2448 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/bitfield_unit.rs +112 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/bitfield_unit_raw_ref_macros.rs +191 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/bitfield_unit_tests.rs +260 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/dyngen.rs +258 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/error.rs +52 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/helpers.rs +395 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/impl_debug.rs +243 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/impl_partialeq.rs +142 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/mod.rs +5991 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/postprocessing/merge_extern_blocks.rs +72 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/postprocessing/sort_semantically.rs +46 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/serialize.rs +443 -0
- data/ext/cargo-vendor/bindgen-0.72.1/codegen/struct_layout.rs +458 -0
- data/ext/cargo-vendor/bindgen-0.72.1/deps.rs +61 -0
- data/ext/cargo-vendor/bindgen-0.72.1/diagnostics.rs +146 -0
- data/ext/cargo-vendor/bindgen-0.72.1/extra_assertions.rs +17 -0
- data/ext/cargo-vendor/bindgen-0.72.1/features.rs +570 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/analysis/derive.rs +726 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/analysis/has_destructor.rs +175 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/analysis/has_float.rs +248 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/analysis/has_type_param_in_array.rs +242 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/analysis/has_vtable.rs +235 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/analysis/mod.rs +395 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/analysis/sizedness.rs +353 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/analysis/template_params.rs +601 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/annotations.rs +259 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/comment.rs +100 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/comp.rs +1921 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/context.rs +3107 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/derive.rs +130 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/dot.rs +85 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/enum_ty.rs +321 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/function.rs +838 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/int.rs +128 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/item.rs +1994 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/item_kind.rs +135 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/layout.rs +126 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/module.rs +96 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/objc.rs +343 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/template.rs +335 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/traversal.rs +478 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/ty.rs +1256 -0
- data/ext/cargo-vendor/bindgen-0.72.1/ir/var.rs +523 -0
- data/ext/cargo-vendor/bindgen-0.72.1/lib.rs +1422 -0
- data/ext/cargo-vendor/bindgen-0.72.1/log_stubs.rs +38 -0
- data/ext/cargo-vendor/bindgen-0.72.1/options/as_args.rs +52 -0
- data/ext/cargo-vendor/bindgen-0.72.1/options/cli.rs +1151 -0
- data/ext/cargo-vendor/bindgen-0.72.1/options/mod.rs +2286 -0
- data/ext/cargo-vendor/bindgen-0.72.1/regex_set.rs +199 -0
- data/ext/cargo-vendor/bindgen-0.72.1/time.rs +52 -0
- 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.5.0/.github/workflows/ci.yml +180 -0
- data/ext/cargo-vendor/codeowners-0.5.0/.github/workflows/codeql.yml +21 -0
- data/ext/cargo-vendor/codeowners-0.5.0/Cargo.lock +1176 -0
- data/ext/cargo-vendor/codeowners-0.5.0/Cargo.toml +173 -0
- 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.5.0/rust-toolchain.toml +4 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/bin/codeowners-perf.rs +719 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/cache/file.rs +179 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/cache/mod.rs +29 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/cache/noop.rs +26 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/cli.rs +138 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/main.rs +43 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/ownership/file_owner_resolver.rs +829 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/ownership/validator.rs +378 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/ownership.rs +243 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/project.rs +232 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/project_builder.rs +430 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/project_file_builder.rs +113 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/runner/api.rs +145 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/runner/types.rs +37 -0
- data/ext/cargo-vendor/codeowners-0.5.0/src/runner.rs +493 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/annotation_in_unowned_team_glob_test.rs +64 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/common/mod.rs +180 -0
- 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/executable_name_config_test.rs +88 -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/custom_codeowners_path/docs/CODEOWNERS +14 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/custom_codeowners_path/expected/CODEOWNERS +14 -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/fixtures/valid_project/.github/CODEOWNERS +41 -0
- data/ext/cargo-vendor/codeowners-0.5.0/tests/fixtures/valid_project_with_overrides/.github/CODEOWNERS +53 -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.5.0/tests/invalid_project_test.rs +174 -0
- 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/codeowners-0.5.0/tests/valid_project_test.rs +348 -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.8.0/CHANGELOG.md +158 -0
- data/ext/cargo-vendor/error-stack-0.8.0/Cargo.lock +733 -0
- data/ext/cargo-vendor/error-stack-0.8.0/Cargo.toml +389 -0
- data/ext/cargo-vendor/error-stack-0.8.0/Cargo.toml.orig +109 -0
- data/ext/cargo-vendor/error-stack-0.8.0/README.md +149 -0
- data/ext/cargo-vendor/error-stack-0.8.0/build.rs +28 -0
- data/ext/cargo-vendor/error-stack-0.8.0/examples/demo.rs +117 -0
- data/ext/cargo-vendor/error-stack-0.8.0/examples/detect.rs +68 -0
- data/ext/cargo-vendor/error-stack-0.8.0/examples/exit_code.rs +25 -0
- data/ext/cargo-vendor/error-stack-0.8.0/examples/parse_config.rs +51 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/compat/anyhow.rs +34 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/compat/eyre.rs +32 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/compat/mod.rs +34 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/context.rs +52 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/error.rs +40 -0
- 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.8.0/src/fmt/charset.rs +114 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/fmt/color.rs +330 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/fmt/config.rs +67 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/fmt/hook.rs +544 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/fmt/location.rs +33 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/fmt/mod.rs +1187 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/frame/frame_impl.rs +259 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/frame/kind.rs +38 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/frame/mod.rs +120 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/future.rs +301 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/hook/context.rs +363 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/hook/mod.rs +240 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/iter.rs +224 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/lib.rs +557 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/macros.rs +212 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/report.rs +1058 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/result.rs +137 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/serde.rs +169 -0
- data/ext/cargo-vendor/error-stack-0.8.0/src/sink.rs +672 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/common.rs +354 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/compiletest.rs +22 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__charset_ascii.snap +9 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__charset_utf8.snap +9 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__diagnostics_add.snap +10 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__doc.snap +12 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__emit.snap +16 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__emit_alt.snap +28 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__hookcontext_cast.snap +11 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__hookcontext_decrement.snap +10 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__hookcontext_emit.snap +16 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__hookcontext_increment.snap +10 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__hookcontext_storage.snap +10 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__preference_color.snap +9 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__preference_emphasis.snap +9 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt__preference_none.snap +9 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/fmt_doc_alt.snap +15 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/hook__debug_hook.snap +9 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/hook__debug_hook_provide.snap +10 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/lib__suggestion.snap +13 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/doc/report_debug__doc.snap +14 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_debug__full__complex.snap +49 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_debug__full__hook_location.snap +15 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_debug__full__linear.snap +27 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_debug__full__linear_ext.snap +27 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_debug__full__multiline_context.snap +25 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_debug__full__sources.snap +48 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_debug__full__sources_transparent.snap +50 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_debug__sources_nested.snap +78 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_debug__sources_nested@spantrace-backtrace.snap +128 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_debug__sources_nested_alternate.snap +78 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_debug__sources_nested_alternate@spantrace-backtrace.snap +128 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_serialize__attachment.snap +13 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_serialize__context.snap +19 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_serialize__multiple_sources.snap +30 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/snapshots/test_serialize__multiple_sources_at_root.snap +20 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_attach.rs +94 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_attach_printable.rs +73 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_backtrace.rs +61 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_change_context.rs +90 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_compatibility.rs +224 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_conversion.rs +134 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_debug.rs +628 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_display.rs +31 -0
- 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.8.0/tests/test_macros.rs +68 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_provision.rs +52 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_serialize.rs +70 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/test_span_trace.rs +91 -0
- 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.8.0/tests/ui/must_use.rs +20 -0
- data/ext/cargo-vendor/error-stack-0.8.0/tests/ui/must_use.stderr +15 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/Cargo.lock +385 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/Cargo.toml +71 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/Cargo.toml.orig +58 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/build/main.rs +292 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/build/stable_api_config.rs +179 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/build/version.rs +58 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/bindings.rs +22 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/macros.rs +701 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/memory.rs +64 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/stable_api/compiled.c +338 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/stable_api/compiled.rs +452 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/stable_api/ruby_2_7.rs +770 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/stable_api/ruby_3_0.rs +773 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/stable_api/ruby_3_1.rs +766 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/stable_api/ruby_3_2.rs +764 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/stable_api/ruby_3_3.rs +777 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/stable_api/ruby_3_4.rs +788 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/stable_api/ruby_4_0.rs +784 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/stable_api.rs +465 -0
- data/ext/cargo-vendor/rb-sys-0.9.130/src/utils.rs +94 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/Cargo.lock +286 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/Cargo.toml +76 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/Cargo.toml.orig +33 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/src/bindings/gc_stress.rs +303 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/src/bindings/stable_api.rs +297 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/src/bindings.rs +292 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/src/cc.rs +421 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/src/rb_config.rs +1060 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/tests/fixtures/rubyopt_stdout.rb +1 -0
- data/ext/cargo-vendor/rb-sys-build-0.9.130/tests/rubyopt.rs +17 -0
- data/ext/cargo-vendor/rb-sys-env-0.2.3/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/rb-sys-env-0.2.3/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/rb-sys-env-0.2.3/Cargo.lock +7 -0
- data/ext/cargo-vendor/rb-sys-env-0.2.3/Cargo.toml +33 -0
- data/ext/cargo-vendor/rb-sys-env-0.2.3/Cargo.toml.orig +14 -0
- data/ext/cargo-vendor/rb-sys-env-0.2.3/readme.md +117 -0
- data/ext/cargo-vendor/rb-sys-env-0.2.3/src/ruby_version.rs +165 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/.github/workflows/rust.yml +73 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/CHANGELOG.md +41 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/CODE_OF_CONDUCT.md +3 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/Cargo.lock +90 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/Cargo.toml +50 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/Cargo.toml.orig +20 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/LICENSE-APACHE +176 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/LICENSE-MIT +23 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/README.md +42 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/src/lib.rs +472 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/src/random_state.rs +101 -0
- data/ext/cargo-vendor/rustc-hash-2.1.3/src/seeded_state.rs +76 -0
- data/ext/cargo-vendor/serde-1.0.229/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/serde-1.0.229/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/serde-1.0.229/Cargo.lock +66 -0
- data/ext/cargo-vendor/serde-1.0.229/Cargo.toml +84 -0
- data/ext/cargo-vendor/serde-1.0.229/Cargo.toml.orig +62 -0
- data/ext/cargo-vendor/serde-1.0.229/README.md +114 -0
- data/ext/cargo-vendor/serde-1.0.229/build.rs +69 -0
- data/ext/cargo-vendor/serde-1.0.229/src/core/de/impls.rs +3173 -0
- data/ext/cargo-vendor/serde-1.0.229/src/core/lib.rs +121 -0
- data/ext/cargo-vendor/serde-1.0.229/src/lib.rs +285 -0
- data/ext/cargo-vendor/serde_core-1.0.229/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/serde_core-1.0.229/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/serde_core-1.0.229/Cargo.lock +63 -0
- data/ext/cargo-vendor/serde_core-1.0.229/Cargo.toml +87 -0
- data/ext/cargo-vendor/serde_core-1.0.229/Cargo.toml.orig +70 -0
- data/ext/cargo-vendor/serde_core-1.0.229/build.rs +113 -0
- data/ext/cargo-vendor/serde_core-1.0.229/src/de/impls.rs +3173 -0
- data/ext/cargo-vendor/serde_core-1.0.229/src/lib.rs +121 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/Cargo.lock +88 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/Cargo.toml +87 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/Cargo.toml.orig +42 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/README.md +114 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/src/bound.rs +431 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/src/de/enum_adjacently.rs +324 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/src/de/enum_externally.rs +213 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/src/de.rs +976 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/src/internals/ast.rs +225 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/src/internals/attr.rs +1818 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/src/internals/ctxt.rs +67 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/src/internals/receiver.rs +293 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/src/lib.rs +127 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/src/pretend.rs +188 -0
- data/ext/cargo-vendor/serde_derive-1.0.229/src/ser.rs +1369 -0
- data/ext/cargo-vendor/serde_magnus-0.11.0/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/serde_magnus-0.11.0/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/serde_magnus-0.11.0/Cargo.lock +385 -0
- data/ext/cargo-vendor/serde_magnus-0.11.0/Cargo.toml +162 -0
- data/ext/cargo-vendor/serde_magnus-0.11.0/Cargo.toml.orig +28 -0
- data/ext/cargo-vendor/serde_magnus-0.11.0/README.md +121 -0
- data/ext/cargo-vendor/serde_magnus-0.11.0/src/de/deserializer.rs +185 -0
- data/ext/cargo-vendor/syn-3.0.9/.cargo-checksum.json +1 -0
- data/ext/cargo-vendor/syn-3.0.9/.cargo_vcs_info.json +6 -0
- data/ext/cargo-vendor/syn-3.0.9/Cargo.lock +1948 -0
- data/ext/cargo-vendor/syn-3.0.9/Cargo.toml +268 -0
- data/ext/cargo-vendor/syn-3.0.9/Cargo.toml.orig +95 -0
- data/ext/cargo-vendor/syn-3.0.9/LICENSE-APACHE +176 -0
- data/ext/cargo-vendor/syn-3.0.9/README.md +297 -0
- data/ext/cargo-vendor/syn-3.0.9/benches/file.rs +59 -0
- data/ext/cargo-vendor/syn-3.0.9/benches/rust.rs +189 -0
- data/ext/cargo-vendor/syn-3.0.9/src/attr.rs +841 -0
- data/ext/cargo-vendor/syn-3.0.9/src/bigint.rs +68 -0
- data/ext/cargo-vendor/syn-3.0.9/src/buffer.rs +462 -0
- data/ext/cargo-vendor/syn-3.0.9/src/classify.rs +311 -0
- data/ext/cargo-vendor/syn-3.0.9/src/custom_keyword.rs +260 -0
- data/ext/cargo-vendor/syn-3.0.9/src/custom_punctuation.rs +305 -0
- data/ext/cargo-vendor/syn-3.0.9/src/data.rs +489 -0
- data/ext/cargo-vendor/syn-3.0.9/src/derive.rs +260 -0
- data/ext/cargo-vendor/syn-3.0.9/src/discouraged.rs +233 -0
- data/ext/cargo-vendor/syn-3.0.9/src/drops.rs +58 -0
- data/ext/cargo-vendor/syn-3.0.9/src/error.rs +552 -0
- data/ext/cargo-vendor/syn-3.0.9/src/export.rs +73 -0
- data/ext/cargo-vendor/syn-3.0.9/src/expr.rs +4249 -0
- data/ext/cargo-vendor/syn-3.0.9/src/ext.rs +180 -0
- data/ext/cargo-vendor/syn-3.0.9/src/file.rs +136 -0
- data/ext/cargo-vendor/syn-3.0.9/src/fixup.rs +773 -0
- data/ext/cargo-vendor/syn-3.0.9/src/gen/clone.rs +2394 -0
- data/ext/cargo-vendor/syn-3.0.9/src/gen/debug.rs +3399 -0
- data/ext/cargo-vendor/syn-3.0.9/src/gen/eq.rs +2459 -0
- data/ext/cargo-vendor/syn-3.0.9/src/gen/fold.rs +3934 -0
- data/ext/cargo-vendor/syn-3.0.9/src/gen/hash.rs +3040 -0
- data/ext/cargo-vendor/syn-3.0.9/src/gen/token.css +744 -0
- data/ext/cargo-vendor/syn-3.0.9/src/gen/visit.rs +4037 -0
- data/ext/cargo-vendor/syn-3.0.9/src/gen/visit_mut.rs +3824 -0
- data/ext/cargo-vendor/syn-3.0.9/src/generics.rs +1490 -0
- data/ext/cargo-vendor/syn-3.0.9/src/group.rs +294 -0
- data/ext/cargo-vendor/syn-3.0.9/src/ident.rs +109 -0
- data/ext/cargo-vendor/syn-3.0.9/src/item.rs +3923 -0
- data/ext/cargo-vendor/syn-3.0.9/src/lib.rs +1132 -0
- data/ext/cargo-vendor/syn-3.0.9/src/lifetime.rs +193 -0
- data/ext/cargo-vendor/syn-3.0.9/src/lit.rs +1881 -0
- data/ext/cargo-vendor/syn-3.0.9/src/lookahead.rs +350 -0
- data/ext/cargo-vendor/syn-3.0.9/src/mac.rs +225 -0
- data/ext/cargo-vendor/syn-3.0.9/src/macros.rs +151 -0
- data/ext/cargo-vendor/syn-3.0.9/src/meta.rs +427 -0
- data/ext/cargo-vendor/syn-3.0.9/src/op.rs +219 -0
- data/ext/cargo-vendor/syn-3.0.9/src/parse.rs +1420 -0
- data/ext/cargo-vendor/syn-3.0.9/src/parse_macro_input.rs +128 -0
- data/ext/cargo-vendor/syn-3.0.9/src/parse_quote.rs +261 -0
- data/ext/cargo-vendor/syn-3.0.9/src/pat.rs +994 -0
- data/ext/cargo-vendor/syn-3.0.9/src/path.rs +972 -0
- data/ext/cargo-vendor/syn-3.0.9/src/precedence.rs +210 -0
- data/ext/cargo-vendor/syn-3.0.9/src/print.rs +16 -0
- data/ext/cargo-vendor/syn-3.0.9/src/punctuated.rs +1200 -0
- data/ext/cargo-vendor/syn-3.0.9/src/restriction.rs +160 -0
- data/ext/cargo-vendor/syn-3.0.9/src/scan_expr.rs +270 -0
- data/ext/cargo-vendor/syn-3.0.9/src/sealed.rs +4 -0
- data/ext/cargo-vendor/syn-3.0.9/src/span.rs +63 -0
- data/ext/cargo-vendor/syn-3.0.9/src/spanned.rs +118 -0
- data/ext/cargo-vendor/syn-3.0.9/src/stmt.rs +536 -0
- data/ext/cargo-vendor/syn-3.0.9/src/thread.rs +60 -0
- data/ext/cargo-vendor/syn-3.0.9/src/token.rs +1103 -0
- data/ext/cargo-vendor/syn-3.0.9/src/tt.rs +97 -0
- data/ext/cargo-vendor/syn-3.0.9/src/ty.rs +1347 -0
- data/ext/cargo-vendor/syn-3.0.9/src/verbatim.rs +32 -0
- data/ext/cargo-vendor/syn-3.0.9/src/whitespace.rs +65 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/common/eq.rs +939 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/common/mod.rs +6 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/common/parse.rs +51 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/common/visit.rs +119 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/debug/gen.rs +5394 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/debug/mod.rs +147 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/macros/mod.rs +7 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/regression/issue1108.rs +5 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/regression/issue1235.rs +32 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/regression.rs +5 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/repo/mod.rs +789 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/repo/progress.rs +37 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/snapshot/mod.rs +68 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_attribute.rs +231 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_derive_input.rs +801 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_expr.rs +1721 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_generics.rs +363 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_grouping.rs +59 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_ident.rs +87 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_item.rs +374 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_lit.rs +335 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_meta.rs +180 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_parse_buffer.rs +104 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_parse_quote.rs +175 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_parse_stream.rs +187 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_pat.rs +158 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_path.rs +117 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_precedence.rs +560 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_punctuated.rs +92 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_receiver.rs +275 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_round_trip.rs +226 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_shebang.rs +77 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_size.rs +54 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_stmt.rs +378 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_token_trees.rs +38 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_ty.rs +479 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_unparenthesize.rs +71 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/test_visibility.rs +193 -0
- data/ext/cargo-vendor/syn-3.0.9/tests/zzz_stable.rs +33 -0
- data/ext/code_ownership/Cargo.toml +2 -2
- data/ext/code_ownership/src/lib.rs +15 -3
- data/lib/code_ownership/version.rb +1 -1
- data/lib/code_ownership.rb +4 -1
- metadata +739 -723
- 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/bindgen-0.69.5/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/bindgen-0.69.5/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/bindgen-0.69.5/Cargo.toml +0 -155
- data/ext/cargo-vendor/bindgen-0.69.5/Cargo.toml.orig +0 -74
- data/ext/cargo-vendor/bindgen-0.69.5/README.md +0 -89
- data/ext/cargo-vendor/bindgen-0.69.5/build.rs +0 -29
- data/ext/cargo-vendor/bindgen-0.69.5/callbacks.rs +0 -213
- data/ext/cargo-vendor/bindgen-0.69.5/clang.rs +0 -2347
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/bitfield_unit.rs +0 -102
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/bitfield_unit_tests.rs +0 -260
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/dyngen.rs +0 -201
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/error.rs +0 -53
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/helpers.rs +0 -355
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/impl_debug.rs +0 -245
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/impl_partialeq.rs +0 -142
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/mod.rs +0 -5473
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/postprocessing/merge_extern_blocks.rs +0 -72
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/postprocessing/sort_semantically.rs +0 -46
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/serialize.rs +0 -444
- data/ext/cargo-vendor/bindgen-0.69.5/codegen/struct_layout.rs +0 -451
- data/ext/cargo-vendor/bindgen-0.69.5/deps.rs +0 -61
- data/ext/cargo-vendor/bindgen-0.69.5/diagnostics.rs +0 -189
- data/ext/cargo-vendor/bindgen-0.69.5/extra_assertions.rs +0 -17
- data/ext/cargo-vendor/bindgen-0.69.5/features.rs +0 -296
- data/ext/cargo-vendor/bindgen-0.69.5/ir/analysis/derive.rs +0 -732
- data/ext/cargo-vendor/bindgen-0.69.5/ir/analysis/has_destructor.rs +0 -176
- data/ext/cargo-vendor/bindgen-0.69.5/ir/analysis/has_float.rs +0 -252
- data/ext/cargo-vendor/bindgen-0.69.5/ir/analysis/has_type_param_in_array.rs +0 -252
- data/ext/cargo-vendor/bindgen-0.69.5/ir/analysis/has_vtable.rs +0 -240
- data/ext/cargo-vendor/bindgen-0.69.5/ir/analysis/mod.rs +0 -400
- data/ext/cargo-vendor/bindgen-0.69.5/ir/analysis/sizedness.rs +0 -361
- data/ext/cargo-vendor/bindgen-0.69.5/ir/analysis/template_params.rs +0 -607
- data/ext/cargo-vendor/bindgen-0.69.5/ir/annotations.rs +0 -256
- data/ext/cargo-vendor/bindgen-0.69.5/ir/comment.rs +0 -100
- data/ext/cargo-vendor/bindgen-0.69.5/ir/comp.rs +0 -1896
- data/ext/cargo-vendor/bindgen-0.69.5/ir/context.rs +0 -3038
- data/ext/cargo-vendor/bindgen-0.69.5/ir/derive.rs +0 -135
- data/ext/cargo-vendor/bindgen-0.69.5/ir/dot.rs +0 -86
- data/ext/cargo-vendor/bindgen-0.69.5/ir/enum_ty.rs +0 -323
- data/ext/cargo-vendor/bindgen-0.69.5/ir/function.rs +0 -839
- data/ext/cargo-vendor/bindgen-0.69.5/ir/int.rs +0 -127
- data/ext/cargo-vendor/bindgen-0.69.5/ir/item.rs +0 -2034
- data/ext/cargo-vendor/bindgen-0.69.5/ir/item_kind.rs +0 -135
- data/ext/cargo-vendor/bindgen-0.69.5/ir/layout.rs +0 -138
- data/ext/cargo-vendor/bindgen-0.69.5/ir/module.rs +0 -96
- data/ext/cargo-vendor/bindgen-0.69.5/ir/objc.rs +0 -354
- data/ext/cargo-vendor/bindgen-0.69.5/ir/template.rs +0 -342
- data/ext/cargo-vendor/bindgen-0.69.5/ir/traversal.rs +0 -479
- data/ext/cargo-vendor/bindgen-0.69.5/ir/ty.rs +0 -1281
- data/ext/cargo-vendor/bindgen-0.69.5/ir/var.rs +0 -488
- data/ext/cargo-vendor/bindgen-0.69.5/lib.rs +0 -1380
- data/ext/cargo-vendor/bindgen-0.69.5/log_stubs.rs +0 -32
- data/ext/cargo-vendor/bindgen-0.69.5/options/as_args.rs +0 -52
- data/ext/cargo-vendor/bindgen-0.69.5/options/mod.rs +0 -2079
- data/ext/cargo-vendor/bindgen-0.69.5/regex_set.rs +0 -204
- data/ext/cargo-vendor/bindgen-0.69.5/time.rs +0 -52
- 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/.github/workflows/ci.yml +0 -169
- data/ext/cargo-vendor/codeowners-0.3.3/Cargo.lock +0 -1264
- data/ext/cargo-vendor/codeowners-0.3.3/Cargo.toml +0 -132
- data/ext/cargo-vendor/codeowners-0.3.3/rust-toolchain.toml +0 -4
- data/ext/cargo-vendor/codeowners-0.3.3/src/cache/file.rs +0 -179
- data/ext/cargo-vendor/codeowners-0.3.3/src/cache/mod.rs +0 -29
- data/ext/cargo-vendor/codeowners-0.3.3/src/cache/noop.rs +0 -26
- data/ext/cargo-vendor/codeowners-0.3.3/src/cli.rs +0 -138
- data/ext/cargo-vendor/codeowners-0.3.3/src/main.rs +0 -43
- data/ext/cargo-vendor/codeowners-0.3.3/src/ownership/file_owner_resolver.rs +0 -416
- data/ext/cargo-vendor/codeowners-0.3.3/src/ownership/validator.rs +0 -285
- data/ext/cargo-vendor/codeowners-0.3.3/src/ownership.rs +0 -224
- data/ext/cargo-vendor/codeowners-0.3.3/src/project.rs +0 -232
- data/ext/cargo-vendor/codeowners-0.3.3/src/project_builder.rs +0 -404
- data/ext/cargo-vendor/codeowners-0.3.3/src/project_file_builder.rs +0 -113
- data/ext/cargo-vendor/codeowners-0.3.3/src/runner/api.rs +0 -142
- data/ext/cargo-vendor/codeowners-0.3.3/src/runner/types.rs +0 -38
- data/ext/cargo-vendor/codeowners-0.3.3/src/runner.rs +0 -483
- data/ext/cargo-vendor/codeowners-0.3.3/tests/common/mod.rs +0 -180
- data/ext/cargo-vendor/codeowners-0.3.3/tests/executable_name_config_test.rs +0 -88
- data/ext/cargo-vendor/codeowners-0.3.3/tests/fixtures/custom_codeowners_path/docs/CODEOWNERS +0 -14
- data/ext/cargo-vendor/codeowners-0.3.3/tests/fixtures/custom_codeowners_path/expected/CODEOWNERS +0 -14
- data/ext/cargo-vendor/codeowners-0.3.3/tests/fixtures/valid_project/.github/CODEOWNERS +0 -41
- data/ext/cargo-vendor/codeowners-0.3.3/tests/fixtures/valid_project_with_overrides/.github/CODEOWNERS +0 -53
- data/ext/cargo-vendor/codeowners-0.3.3/tests/invalid_project_test.rs +0 -174
- data/ext/cargo-vendor/codeowners-0.3.3/tests/valid_project_test.rs +0 -348
- 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/CHANGELOG.md +0 -109
- data/ext/cargo-vendor/error-stack-0.5.0/Cargo.lock +0 -790
- data/ext/cargo-vendor/error-stack-0.5.0/Cargo.toml +0 -334
- data/ext/cargo-vendor/error-stack-0.5.0/Cargo.toml.orig +0 -87
- data/ext/cargo-vendor/error-stack-0.5.0/README.md +0 -151
- data/ext/cargo-vendor/error-stack-0.5.0/build.rs +0 -29
- data/ext/cargo-vendor/error-stack-0.5.0/examples/demo.rs +0 -115
- data/ext/cargo-vendor/error-stack-0.5.0/examples/detect.rs +0 -68
- data/ext/cargo-vendor/error-stack-0.5.0/examples/exit_code.rs +0 -24
- data/ext/cargo-vendor/error-stack-0.5.0/examples/parse_config.rs +0 -51
- data/ext/cargo-vendor/error-stack-0.5.0/rust-toolchain.toml +0 -4
- data/ext/cargo-vendor/error-stack-0.5.0/src/compat/anyhow.rs +0 -34
- data/ext/cargo-vendor/error-stack-0.5.0/src/compat/eyre.rs +0 -31
- data/ext/cargo-vendor/error-stack-0.5.0/src/compat/mod.rs +0 -36
- data/ext/cargo-vendor/error-stack-0.5.0/src/context.rs +0 -132
- data/ext/cargo-vendor/error-stack-0.5.0/src/error.rs +0 -47
- data/ext/cargo-vendor/error-stack-0.5.0/src/fmt/charset.rs +0 -114
- data/ext/cargo-vendor/error-stack-0.5.0/src/fmt/color.rs +0 -330
- data/ext/cargo-vendor/error-stack-0.5.0/src/fmt/config.rs +0 -67
- data/ext/cargo-vendor/error-stack-0.5.0/src/fmt/hook.rs +0 -545
- data/ext/cargo-vendor/error-stack-0.5.0/src/fmt/location.rs +0 -33
- data/ext/cargo-vendor/error-stack-0.5.0/src/fmt/mod.rs +0 -1177
- data/ext/cargo-vendor/error-stack-0.5.0/src/frame/frame_impl.rs +0 -262
- data/ext/cargo-vendor/error-stack-0.5.0/src/frame/kind.rs +0 -37
- data/ext/cargo-vendor/error-stack-0.5.0/src/frame/mod.rs +0 -122
- data/ext/cargo-vendor/error-stack-0.5.0/src/future.rs +0 -307
- data/ext/cargo-vendor/error-stack-0.5.0/src/hook/context.rs +0 -365
- data/ext/cargo-vendor/error-stack-0.5.0/src/hook/mod.rs +0 -239
- data/ext/cargo-vendor/error-stack-0.5.0/src/iter.rs +0 -269
- data/ext/cargo-vendor/error-stack-0.5.0/src/lib.rs +0 -545
- data/ext/cargo-vendor/error-stack-0.5.0/src/macros.rs +0 -253
- data/ext/cargo-vendor/error-stack-0.5.0/src/report.rs +0 -740
- data/ext/cargo-vendor/error-stack-0.5.0/src/result.rs +0 -267
- data/ext/cargo-vendor/error-stack-0.5.0/src/serde.rs +0 -154
- data/ext/cargo-vendor/error-stack-0.5.0/tests/common.rs +0 -342
- 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/doc/fmt__charset_ascii.snap +0 -9
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__charset_utf8.snap +0 -9
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__diagnostics_add.snap +0 -10
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__doc.snap +0 -12
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__emit.snap +0 -16
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__emit_alt.snap +0 -28
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__hookcontext_cast.snap +0 -11
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__hookcontext_decrement.snap +0 -10
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__hookcontext_emit.snap +0 -16
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__hookcontext_increment.snap +0 -10
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__hookcontext_storage.snap +0 -10
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__preference_color.snap +0 -9
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__preference_emphasis.snap +0 -9
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt__preference_none.snap +0 -9
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/fmt_doc_alt.snap +0 -15
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/hook__debug_hook.snap +0 -9
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/hook__debug_hook_provide.snap +0 -10
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/lib__suggestion.snap +0 -13
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/doc/report_debug__doc.snap +0 -14
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__full__complex.snap +0 -49
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__full__hook_location.snap +0 -15
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__full__linear.snap +0 -27
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__full__linear_ext.snap +0 -27
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__full__multiline_context.snap +0 -25
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__full__sources.snap +0 -48
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__full__sources_transparent.snap +0 -50
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_debug__sources_nested.snap +0 -78
- 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-backtrace.snap +0 -128
- 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.snap +0 -78
- 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-backtrace.snap +0 -128
- 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/snapshots/test_serialize__attachment.snap +0 -13
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_serialize__context.snap +0 -19
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_serialize__multiple_sources.snap +0 -30
- data/ext/cargo-vendor/error-stack-0.5.0/tests/snapshots/test_serialize__multiple_sources_at_root.snap +0 -20
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_attach.rs +0 -68
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_attach_printable.rs +0 -74
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_backtrace.rs +0 -62
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_change_context.rs +0 -68
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_compatibility.rs +0 -233
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_conversion.rs +0 -112
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_debug.rs +0 -628
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_display.rs +0 -32
- 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/test_macros.rs +0 -94
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_provision.rs +0 -51
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_serialize.rs +0 -70
- data/ext/cargo-vendor/error-stack-0.5.0/tests/test_span_trace.rs +0 -92
- 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/error-stack-0.5.0/tests/ui/must_use.rs +0 -20
- data/ext/cargo-vendor/error-stack-0.5.0/tests/ui/must_use.stderr +0 -15
- 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/lazycell-1.3.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/lazycell-1.3.0/.cargo_vcs_info.json +0 -5
- data/ext/cargo-vendor/lazycell-1.3.0/CHANGELOG.md +0 -197
- data/ext/cargo-vendor/lazycell-1.3.0/Cargo.toml +0 -34
- data/ext/cargo-vendor/lazycell-1.3.0/Cargo.toml.orig +0 -27
- data/ext/cargo-vendor/lazycell-1.3.0/LICENSE-APACHE +0 -201
- data/ext/cargo-vendor/lazycell-1.3.0/LICENSE-MIT +0 -26
- data/ext/cargo-vendor/lazycell-1.3.0/README.md +0 -73
- data/ext/cargo-vendor/lazycell-1.3.0/src/lib.rs +0 -680
- data/ext/cargo-vendor/lazycell-1.3.0/src/serde_impl.rs +0 -86
- 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/rb-sys-0.9.117/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/rb-sys-0.9.117/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/rb-sys-0.9.117/Cargo.lock +0 -393
- data/ext/cargo-vendor/rb-sys-0.9.117/Cargo.toml +0 -70
- data/ext/cargo-vendor/rb-sys-0.9.117/Cargo.toml.orig +0 -57
- data/ext/cargo-vendor/rb-sys-0.9.117/build/main.rs +0 -286
- data/ext/cargo-vendor/rb-sys-0.9.117/build/stable_api_config.rs +0 -155
- data/ext/cargo-vendor/rb-sys-0.9.117/build/version.rs +0 -50
- data/ext/cargo-vendor/rb-sys-0.9.117/src/bindings.rs +0 -21
- data/ext/cargo-vendor/rb-sys-0.9.117/src/macros.rs +0 -371
- data/ext/cargo-vendor/rb-sys-0.9.117/src/memory.rs +0 -53
- data/ext/cargo-vendor/rb-sys-0.9.117/src/stable_api/compiled.c +0 -179
- data/ext/cargo-vendor/rb-sys-0.9.117/src/stable_api/compiled.rs +0 -257
- data/ext/cargo-vendor/rb-sys-0.9.117/src/stable_api/ruby_2_6.rs +0 -324
- data/ext/cargo-vendor/rb-sys-0.9.117/src/stable_api/ruby_2_7.rs +0 -324
- data/ext/cargo-vendor/rb-sys-0.9.117/src/stable_api/ruby_3_0.rs +0 -332
- data/ext/cargo-vendor/rb-sys-0.9.117/src/stable_api/ruby_3_1.rs +0 -325
- data/ext/cargo-vendor/rb-sys-0.9.117/src/stable_api/ruby_3_2.rs +0 -323
- data/ext/cargo-vendor/rb-sys-0.9.117/src/stable_api/ruby_3_3.rs +0 -339
- data/ext/cargo-vendor/rb-sys-0.9.117/src/stable_api/ruby_3_4.rs +0 -339
- data/ext/cargo-vendor/rb-sys-0.9.117/src/stable_api.rs +0 -261
- data/ext/cargo-vendor/rb-sys-0.9.117/src/utils.rs +0 -89
- data/ext/cargo-vendor/rb-sys-build-0.9.117/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/rb-sys-build-0.9.117/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/rb-sys-build-0.9.117/Cargo.lock +0 -294
- data/ext/cargo-vendor/rb-sys-build-0.9.117/Cargo.toml +0 -71
- data/ext/cargo-vendor/rb-sys-build-0.9.117/Cargo.toml.orig +0 -32
- data/ext/cargo-vendor/rb-sys-build-0.9.117/src/bindings/stable_api.rs +0 -206
- data/ext/cargo-vendor/rb-sys-build-0.9.117/src/bindings.rs +0 -286
- data/ext/cargo-vendor/rb-sys-build-0.9.117/src/cc.rs +0 -421
- data/ext/cargo-vendor/rb-sys-build-0.9.117/src/rb_config.rs +0 -863
- data/ext/cargo-vendor/rb-sys-env-0.2.2/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/rb-sys-env-0.2.2/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/rb-sys-env-0.2.2/Cargo.toml +0 -33
- data/ext/cargo-vendor/rb-sys-env-0.2.2/Cargo.toml.orig +0 -14
- data/ext/cargo-vendor/rb-sys-env-0.2.2/readme.md +0 -119
- data/ext/cargo-vendor/rb-sys-env-0.2.2/src/ruby_version.rs +0 -163
- data/ext/cargo-vendor/rustc-hash-1.1.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/rustc-hash-1.1.0/.cargo_vcs_info.json +0 -5
- data/ext/cargo-vendor/rustc-hash-1.1.0/CODE_OF_CONDUCT.md +0 -40
- data/ext/cargo-vendor/rustc-hash-1.1.0/Cargo.toml +0 -25
- data/ext/cargo-vendor/rustc-hash-1.1.0/Cargo.toml.orig +0 -13
- data/ext/cargo-vendor/rustc-hash-1.1.0/LICENSE-APACHE +0 -201
- data/ext/cargo-vendor/rustc-hash-1.1.0/README.md +0 -38
- data/ext/cargo-vendor/rustc-hash-1.1.0/src/lib.rs +0 -148
- data/ext/cargo-vendor/serde-1.0.228/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/serde-1.0.228/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/serde-1.0.228/Cargo.lock +0 -66
- data/ext/cargo-vendor/serde-1.0.228/Cargo.toml +0 -84
- data/ext/cargo-vendor/serde-1.0.228/Cargo.toml.orig +0 -62
- data/ext/cargo-vendor/serde-1.0.228/README.md +0 -114
- data/ext/cargo-vendor/serde-1.0.228/build.rs +0 -69
- data/ext/cargo-vendor/serde-1.0.228/src/core/de/impls.rs +0 -3173
- data/ext/cargo-vendor/serde-1.0.228/src/core/lib.rs +0 -121
- data/ext/cargo-vendor/serde-1.0.228/src/lib.rs +0 -285
- data/ext/cargo-vendor/serde_core-1.0.228/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/serde_core-1.0.228/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/serde_core-1.0.228/Cargo.lock +0 -63
- data/ext/cargo-vendor/serde_core-1.0.228/Cargo.toml +0 -87
- data/ext/cargo-vendor/serde_core-1.0.228/Cargo.toml.orig +0 -70
- data/ext/cargo-vendor/serde_core-1.0.228/build.rs +0 -113
- data/ext/cargo-vendor/serde_core-1.0.228/src/de/impls.rs +0 -3173
- data/ext/cargo-vendor/serde_core-1.0.228/src/lib.rs +0 -121
- data/ext/cargo-vendor/serde_derive-1.0.228/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/serde_derive-1.0.228/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/serde_derive-1.0.228/Cargo.lock +0 -77
- data/ext/cargo-vendor/serde_derive-1.0.228/Cargo.toml +0 -87
- data/ext/cargo-vendor/serde_derive-1.0.228/Cargo.toml.orig +0 -42
- data/ext/cargo-vendor/serde_derive-1.0.228/README.md +0 -114
- data/ext/cargo-vendor/serde_derive-1.0.228/src/bound.rs +0 -410
- data/ext/cargo-vendor/serde_derive-1.0.228/src/de/enum_adjacently.rs +0 -323
- data/ext/cargo-vendor/serde_derive-1.0.228/src/de/enum_externally.rs +0 -212
- data/ext/cargo-vendor/serde_derive-1.0.228/src/de.rs +0 -973
- data/ext/cargo-vendor/serde_derive-1.0.228/src/internals/ast.rs +0 -218
- data/ext/cargo-vendor/serde_derive-1.0.228/src/internals/attr.rs +0 -1831
- data/ext/cargo-vendor/serde_derive-1.0.228/src/internals/ctxt.rs +0 -68
- data/ext/cargo-vendor/serde_derive-1.0.228/src/internals/receiver.rs +0 -293
- data/ext/cargo-vendor/serde_derive-1.0.228/src/lib.rs +0 -127
- data/ext/cargo-vendor/serde_derive-1.0.228/src/pretend.rs +0 -188
- data/ext/cargo-vendor/serde_derive-1.0.228/src/ser.rs +0 -1369
- data/ext/cargo-vendor/serde_magnus-0.10.0/.cargo-checksum.json +0 -1
- data/ext/cargo-vendor/serde_magnus-0.10.0/.cargo_vcs_info.json +0 -6
- data/ext/cargo-vendor/serde_magnus-0.10.0/Cargo.lock +0 -387
- data/ext/cargo-vendor/serde_magnus-0.10.0/Cargo.toml +0 -162
- data/ext/cargo-vendor/serde_magnus-0.10.0/Cargo.toml.orig +0 -28
- data/ext/cargo-vendor/serde_magnus-0.10.0/README.md +0 -121
- data/ext/cargo-vendor/serde_magnus-0.10.0/src/de/deserializer.rs +0 -185
- 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/{bindgen-0.69.5 → bindgen-0.72.1}/LICENSE +0 -0
- /data/ext/cargo-vendor/{bindgen-0.69.5 → bindgen-0.72.1}/codegen/postprocessing/mod.rs +0 -0
- /data/ext/cargo-vendor/{bindgen-0.69.5 → bindgen-0.72.1}/ir/mod.rs +0 -0
- /data/ext/cargo-vendor/{bindgen-0.69.5 → bindgen-0.72.1}/options/helpers.rs +0 -0
- /data/ext/cargo-vendor/{bindgen-0.69.5 → bindgen-0.72.1}/parse.rs +0 -0
- /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/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/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/.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/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_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
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/LICENSE-APACHE +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/LICENSE-MIT +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/bin/release.sh +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/build/features.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/readme.md +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/src/hidden.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/src/ruby_abi_version.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/src/special_consts.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/src/symbol.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/src/tracking_allocator.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-0.9.117 → rb-sys-0.9.130}/src/value_type.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-build-0.9.117 → rb-sys-build-0.9.130}/LICENSE-APACHE +0 -0
- /data/ext/cargo-vendor/{rb-sys-build-0.9.117 → rb-sys-build-0.9.130}/LICENSE-MIT +0 -0
- /data/ext/cargo-vendor/{rb-sys-build-0.9.117 → rb-sys-build-0.9.130}/src/bindings/sanitizer.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-build-0.9.117 → rb-sys-build-0.9.130}/src/bindings/wrapper.h +0 -0
- /data/ext/cargo-vendor/{rb-sys-build-0.9.117 → rb-sys-build-0.9.130}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-build-0.9.117 → rb-sys-build-0.9.130}/src/rb_config/flags.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-build-0.9.117 → rb-sys-build-0.9.130}/src/rb_config/library.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-build-0.9.117 → rb-sys-build-0.9.130}/src/rb_config/search_path.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-build-0.9.117 → rb-sys-build-0.9.130}/src/utils.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-env-0.2.2 → rb-sys-env-0.2.3}/LICENSE-APACHE +0 -0
- /data/ext/cargo-vendor/{rb-sys-env-0.2.2 → rb-sys-env-0.2.3}/LICENSE-MIT +0 -0
- /data/ext/cargo-vendor/{rb-sys-env-0.2.2 → rb-sys-env-0.2.3}/build.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-env-0.2.2 → rb-sys-env-0.2.3}/src/defines.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-env-0.2.2 → rb-sys-env-0.2.3}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-env-0.2.2 → rb-sys-env-0.2.3}/src/rb_env.rs +0 -0
- /data/ext/cargo-vendor/{rb-sys-env-0.2.2 → rb-sys-env-0.2.3}/src/utils.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/LICENSE-APACHE +0 -0
- /data/ext/cargo-vendor/{rustc-hash-1.1.0 → serde-1.0.229}/LICENSE-MIT +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/crates-io.md +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/crate_root.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/de/ignored_any.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/de/mod.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/de/value.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/format.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/macros.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/private/content.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/private/doc.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/private/mod.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/private/seed.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/private/size_hint.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/private/string.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/ser/fmt.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/ser/impls.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/ser/impossible.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/ser/mod.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/core/std_error.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/integer128.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/private/de.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/private/mod.rs +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde-1.0.229}/src/private/ser.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/LICENSE-APACHE +0 -0
- /data/ext/cargo-vendor/{serde-1.0.228 → serde_core-1.0.229}/LICENSE-MIT +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/README.md +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/crate_root.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/de/ignored_any.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/de/mod.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/de/value.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/format.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/macros.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/private/content.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/private/doc.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/private/mod.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/private/seed.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/private/size_hint.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/private/string.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/ser/fmt.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/ser/impls.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/ser/impossible.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/ser/mod.rs +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_core-1.0.229}/src/std_error.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/LICENSE-APACHE +0 -0
- /data/ext/cargo-vendor/{serde_core-1.0.228 → serde_derive-1.0.229}/LICENSE-MIT +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/crates-io.md +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/de/enum_.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/de/enum_internally.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/de/enum_untagged.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/de/identifier.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/de/struct_.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/de/tuple.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/de/unit.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/deprecated.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/dummy.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/fragment.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/internals/case.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/internals/check.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/internals/mod.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/internals/name.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/internals/respan.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/internals/symbol.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → serde_derive-1.0.229}/src/this.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/LICENSE +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/de/array_deserializer.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/de/array_enumerator.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/de/enum_deserializer.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/de/hash_deserializer.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/de/mod.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/de/variant_deserializer.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/error.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/lib.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/ser/enums.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/ser/map_serializer.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/ser/mod.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/ser/seq_serializer.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/ser/serializer.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/ser/struct_serializer.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/ser/struct_variant_serializer.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/src/ser/tuple_variant_serializer.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_arrays.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_booleans.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_enums.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_floats.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_integers.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_maps.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_options.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_results.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_strings.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_structs.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_tuples.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/deserializing_vecs.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_arrays.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_booleans.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_enums.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_floats.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_integers.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_maps.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_options.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_results.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_strings.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_structs.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_tuples.rs +0 -0
- /data/ext/cargo-vendor/{serde_magnus-0.10.0 → serde_magnus-0.11.0}/tests/serializing_vecs.rs +0 -0
- /data/ext/cargo-vendor/{serde_derive-1.0.228 → syn-3.0.9}/LICENSE-MIT +0 -0
|
@@ -0,0 +1,1490 @@
|
|
|
1
|
+
use crate::attr::Attribute;
|
|
2
|
+
#[cfg(feature = "parsing")]
|
|
3
|
+
use crate::error::Result;
|
|
4
|
+
use crate::expr::Expr;
|
|
5
|
+
use crate::ident::Ident;
|
|
6
|
+
use crate::lifetime::Lifetime;
|
|
7
|
+
use crate::path::Path;
|
|
8
|
+
use crate::punctuated::{Iter, IterMut, Punctuated};
|
|
9
|
+
use crate::token;
|
|
10
|
+
use crate::ty::Type;
|
|
11
|
+
use alloc::vec::Vec;
|
|
12
|
+
#[cfg(all(feature = "printing", feature = "extra-traits"))]
|
|
13
|
+
use core::fmt::{self, Debug};
|
|
14
|
+
#[cfg(all(feature = "printing", feature = "extra-traits"))]
|
|
15
|
+
use core::hash::{Hash, Hasher};
|
|
16
|
+
use proc_macro2::TokenStream;
|
|
17
|
+
|
|
18
|
+
ast_struct! {
|
|
19
|
+
/// Lifetimes and type parameters attached to a declaration of a function,
|
|
20
|
+
/// enum, trait, etc.
|
|
21
|
+
///
|
|
22
|
+
/// This struct represents two distinct optional syntactic elements,
|
|
23
|
+
/// [generic parameters] and [where clause]. In some locations of the
|
|
24
|
+
/// grammar, there may be other tokens in between these two things.
|
|
25
|
+
///
|
|
26
|
+
/// [generic parameters]: https://doc.rust-lang.org/stable/reference/items/generics.html#generic-parameters
|
|
27
|
+
/// [where clause]: https://doc.rust-lang.org/stable/reference/items/generics.html#where-clauses
|
|
28
|
+
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
|
|
29
|
+
pub struct Generics {
|
|
30
|
+
pub lt_token: Option<Token![<]>,
|
|
31
|
+
pub params: Punctuated<GenericParam, Token![,]>,
|
|
32
|
+
pub gt_token: Option<Token![>]>,
|
|
33
|
+
pub where_clause: Option<WhereClause>,
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
ast_enum_of_structs! {
|
|
38
|
+
/// A generic type parameter, lifetime, or const generic: `T: Into<String>`,
|
|
39
|
+
/// `'a: 'b`, `const LEN: usize`.
|
|
40
|
+
///
|
|
41
|
+
/// # Syntax tree enum
|
|
42
|
+
///
|
|
43
|
+
/// This type is a [syntax tree enum].
|
|
44
|
+
///
|
|
45
|
+
/// [syntax tree enum]: crate::expr::Expr#syntax-tree-enums
|
|
46
|
+
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
|
|
47
|
+
pub enum GenericParam {
|
|
48
|
+
/// A lifetime parameter: `'a: 'b + 'c + 'd`.
|
|
49
|
+
Lifetime(LifetimeParam),
|
|
50
|
+
|
|
51
|
+
/// A generic type parameter: `T: Into<String>`.
|
|
52
|
+
Type(TypeParam),
|
|
53
|
+
|
|
54
|
+
/// A const generic parameter: `const LENGTH: usize`.
|
|
55
|
+
Const(ConstParam),
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
ast_struct! {
|
|
60
|
+
/// A lifetime definition: `'a: 'b + 'c + 'd`.
|
|
61
|
+
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
|
|
62
|
+
pub struct LifetimeParam {
|
|
63
|
+
pub attrs: Vec<Attribute>,
|
|
64
|
+
pub lifetime: Lifetime,
|
|
65
|
+
pub colon_token: Option<Token![:]>,
|
|
66
|
+
pub bounds: Punctuated<Lifetime, Token![+]>,
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
ast_struct! {
|
|
71
|
+
/// A generic type parameter: `T: Into<String>`.
|
|
72
|
+
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
|
|
73
|
+
pub struct TypeParam {
|
|
74
|
+
pub attrs: Vec<Attribute>,
|
|
75
|
+
pub ident: Ident,
|
|
76
|
+
pub colon_token: Option<Token![:]>,
|
|
77
|
+
pub bounds: Punctuated<TypeParamBound, Token![+]>,
|
|
78
|
+
pub default: Option<(Token![=], Type)>,
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
ast_struct! {
|
|
83
|
+
/// A const generic parameter: `const LENGTH: usize`.
|
|
84
|
+
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
|
|
85
|
+
pub struct ConstParam {
|
|
86
|
+
pub attrs: Vec<Attribute>,
|
|
87
|
+
pub const_token: Token![const],
|
|
88
|
+
pub ident: Ident,
|
|
89
|
+
pub colon_token: Token![:],
|
|
90
|
+
pub ty: Type,
|
|
91
|
+
pub default: Option<(Token![=], Expr)>,
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
impl Default for Generics {
|
|
96
|
+
fn default() -> Self {
|
|
97
|
+
Generics {
|
|
98
|
+
lt_token: None,
|
|
99
|
+
params: Punctuated::new(),
|
|
100
|
+
gt_token: None,
|
|
101
|
+
where_clause: None,
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
impl Generics {
|
|
107
|
+
return_impl_trait! {
|
|
108
|
+
/// Iterator over the lifetime parameters in `self.params`.
|
|
109
|
+
pub fn lifetimes(&self) -> impl Iterator<Item = &LifetimeParam> [Lifetimes] {
|
|
110
|
+
Lifetimes(self.params.iter())
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return_impl_trait! {
|
|
115
|
+
/// Iterator over the lifetime parameters in `self.params`.
|
|
116
|
+
pub fn lifetimes_mut(&mut self) -> impl Iterator<Item = &mut LifetimeParam> [LifetimesMut] {
|
|
117
|
+
LifetimesMut(self.params.iter_mut())
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
return_impl_trait! {
|
|
122
|
+
/// Iterator over the type parameters in `self.params`.
|
|
123
|
+
pub fn type_params(&self) -> impl Iterator<Item = &TypeParam> [TypeParams] {
|
|
124
|
+
TypeParams(self.params.iter())
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
return_impl_trait! {
|
|
129
|
+
/// Iterator over the type parameters in `self.params`.
|
|
130
|
+
pub fn type_params_mut(&mut self) -> impl Iterator<Item = &mut TypeParam> [TypeParamsMut] {
|
|
131
|
+
TypeParamsMut(self.params.iter_mut())
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
return_impl_trait! {
|
|
136
|
+
/// Iterator over the constant parameters in `self.params`.
|
|
137
|
+
pub fn const_params(&self) -> impl Iterator<Item = &ConstParam> [ConstParams] {
|
|
138
|
+
ConstParams(self.params.iter())
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return_impl_trait! {
|
|
143
|
+
/// Iterator over the constant parameters in `self.params`.
|
|
144
|
+
pub fn const_params_mut(&mut self) -> impl Iterator<Item = &mut ConstParam> [ConstParamsMut] {
|
|
145
|
+
ConstParamsMut(self.params.iter_mut())
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/// Initializes an empty `where`-clause if there is not one present already.
|
|
150
|
+
pub fn make_where_clause(&mut self) -> &mut WhereClause {
|
|
151
|
+
self.where_clause.get_or_insert_with(|| WhereClause {
|
|
152
|
+
where_token: <Token![where]>::default(),
|
|
153
|
+
predicates: Punctuated::new(),
|
|
154
|
+
})
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/// Split a type's generics into the pieces required for impl'ing a trait
|
|
158
|
+
/// for that type.
|
|
159
|
+
///
|
|
160
|
+
/// ```
|
|
161
|
+
/// # use proc_macro2::{Span, Ident};
|
|
162
|
+
/// # use quote::quote;
|
|
163
|
+
/// #
|
|
164
|
+
/// # let generics: syn::Generics = Default::default();
|
|
165
|
+
/// # let name = Ident::new("MyType", Span::call_site());
|
|
166
|
+
/// #
|
|
167
|
+
/// let (impl_generics, ty_generics, where_clause) = generics.split_for_impl();
|
|
168
|
+
/// quote! {
|
|
169
|
+
/// impl #impl_generics MyTrait for #name #ty_generics #where_clause {
|
|
170
|
+
/// // ...
|
|
171
|
+
/// }
|
|
172
|
+
/// }
|
|
173
|
+
/// # ;
|
|
174
|
+
/// ```
|
|
175
|
+
#[cfg(feature = "printing")]
|
|
176
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
|
|
177
|
+
pub fn split_for_impl(&self) -> (ImplGenerics, TypeGenerics, Option<&WhereClause>) {
|
|
178
|
+
(
|
|
179
|
+
ImplGenerics(self),
|
|
180
|
+
TypeGenerics(self),
|
|
181
|
+
self.where_clause.as_ref(),
|
|
182
|
+
)
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
pub struct Lifetimes<'a>(Iter<'a, GenericParam>);
|
|
187
|
+
|
|
188
|
+
impl<'a> Iterator for Lifetimes<'a> {
|
|
189
|
+
type Item = &'a LifetimeParam;
|
|
190
|
+
|
|
191
|
+
fn next(&mut self) -> Option<Self::Item> {
|
|
192
|
+
if let GenericParam::Lifetime(lifetime) = self.0.next()? {
|
|
193
|
+
Some(lifetime)
|
|
194
|
+
} else {
|
|
195
|
+
self.next()
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
pub struct LifetimesMut<'a>(IterMut<'a, GenericParam>);
|
|
201
|
+
|
|
202
|
+
impl<'a> Iterator for LifetimesMut<'a> {
|
|
203
|
+
type Item = &'a mut LifetimeParam;
|
|
204
|
+
|
|
205
|
+
fn next(&mut self) -> Option<Self::Item> {
|
|
206
|
+
if let GenericParam::Lifetime(lifetime) = self.0.next()? {
|
|
207
|
+
Some(lifetime)
|
|
208
|
+
} else {
|
|
209
|
+
self.next()
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
pub struct TypeParams<'a>(Iter<'a, GenericParam>);
|
|
215
|
+
|
|
216
|
+
impl<'a> Iterator for TypeParams<'a> {
|
|
217
|
+
type Item = &'a TypeParam;
|
|
218
|
+
|
|
219
|
+
fn next(&mut self) -> Option<Self::Item> {
|
|
220
|
+
if let GenericParam::Type(type_param) = self.0.next()? {
|
|
221
|
+
Some(type_param)
|
|
222
|
+
} else {
|
|
223
|
+
self.next()
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
pub struct TypeParamsMut<'a>(IterMut<'a, GenericParam>);
|
|
229
|
+
|
|
230
|
+
impl<'a> Iterator for TypeParamsMut<'a> {
|
|
231
|
+
type Item = &'a mut TypeParam;
|
|
232
|
+
|
|
233
|
+
fn next(&mut self) -> Option<Self::Item> {
|
|
234
|
+
if let GenericParam::Type(type_param) = self.0.next()? {
|
|
235
|
+
Some(type_param)
|
|
236
|
+
} else {
|
|
237
|
+
self.next()
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
pub struct ConstParams<'a>(Iter<'a, GenericParam>);
|
|
243
|
+
|
|
244
|
+
impl<'a> Iterator for ConstParams<'a> {
|
|
245
|
+
type Item = &'a ConstParam;
|
|
246
|
+
|
|
247
|
+
fn next(&mut self) -> Option<Self::Item> {
|
|
248
|
+
if let GenericParam::Const(const_param) = self.0.next()? {
|
|
249
|
+
Some(const_param)
|
|
250
|
+
} else {
|
|
251
|
+
self.next()
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
pub struct ConstParamsMut<'a>(IterMut<'a, GenericParam>);
|
|
257
|
+
|
|
258
|
+
impl<'a> Iterator for ConstParamsMut<'a> {
|
|
259
|
+
type Item = &'a mut ConstParam;
|
|
260
|
+
|
|
261
|
+
fn next(&mut self) -> Option<Self::Item> {
|
|
262
|
+
if let GenericParam::Const(const_param) = self.0.next()? {
|
|
263
|
+
Some(const_param)
|
|
264
|
+
} else {
|
|
265
|
+
self.next()
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/// Returned by `Generics::split_for_impl`.
|
|
271
|
+
#[cfg(feature = "printing")]
|
|
272
|
+
#[cfg_attr(
|
|
273
|
+
docsrs,
|
|
274
|
+
doc(cfg(all(any(feature = "full", feature = "derive"), feature = "printing")))
|
|
275
|
+
)]
|
|
276
|
+
pub struct ImplGenerics<'a>(&'a Generics);
|
|
277
|
+
|
|
278
|
+
/// Returned by `Generics::split_for_impl`.
|
|
279
|
+
#[cfg(feature = "printing")]
|
|
280
|
+
#[cfg_attr(
|
|
281
|
+
docsrs,
|
|
282
|
+
doc(cfg(all(any(feature = "full", feature = "derive"), feature = "printing")))
|
|
283
|
+
)]
|
|
284
|
+
pub struct TypeGenerics<'a>(&'a Generics);
|
|
285
|
+
|
|
286
|
+
/// Returned by `TypeGenerics::as_turbofish`.
|
|
287
|
+
#[cfg(feature = "printing")]
|
|
288
|
+
#[cfg_attr(
|
|
289
|
+
docsrs,
|
|
290
|
+
doc(cfg(all(any(feature = "full", feature = "derive"), feature = "printing")))
|
|
291
|
+
)]
|
|
292
|
+
pub struct Turbofish<'a>(&'a Generics);
|
|
293
|
+
|
|
294
|
+
#[cfg(feature = "printing")]
|
|
295
|
+
macro_rules! generics_wrapper_impls {
|
|
296
|
+
($ty:ident) => {
|
|
297
|
+
#[cfg(feature = "clone-impls")]
|
|
298
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "clone-impls")))]
|
|
299
|
+
impl<'a> Clone for $ty<'a> {
|
|
300
|
+
fn clone(&self) -> Self {
|
|
301
|
+
$ty(self.0)
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
#[cfg(feature = "extra-traits")]
|
|
306
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
|
|
307
|
+
impl<'a> Debug for $ty<'a> {
|
|
308
|
+
fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
|
|
309
|
+
formatter
|
|
310
|
+
.debug_tuple(stringify!($ty))
|
|
311
|
+
.field(self.0)
|
|
312
|
+
.finish()
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
#[cfg(feature = "extra-traits")]
|
|
317
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
|
|
318
|
+
impl<'a> Eq for $ty<'a> {}
|
|
319
|
+
|
|
320
|
+
#[cfg(feature = "extra-traits")]
|
|
321
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
|
|
322
|
+
impl<'a> PartialEq for $ty<'a> {
|
|
323
|
+
fn eq(&self, other: &Self) -> bool {
|
|
324
|
+
self.0 == other.0
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
#[cfg(feature = "extra-traits")]
|
|
329
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "extra-traits")))]
|
|
330
|
+
impl<'a> Hash for $ty<'a> {
|
|
331
|
+
fn hash<H: Hasher>(&self, state: &mut H) {
|
|
332
|
+
self.0.hash(state);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
#[cfg(feature = "printing")]
|
|
339
|
+
generics_wrapper_impls!(ImplGenerics);
|
|
340
|
+
#[cfg(feature = "printing")]
|
|
341
|
+
generics_wrapper_impls!(TypeGenerics);
|
|
342
|
+
#[cfg(feature = "printing")]
|
|
343
|
+
generics_wrapper_impls!(Turbofish);
|
|
344
|
+
|
|
345
|
+
#[cfg(feature = "printing")]
|
|
346
|
+
impl<'a> TypeGenerics<'a> {
|
|
347
|
+
/// Turn a type's generics like `<X, Y>` into a turbofish like `::<X, Y>`.
|
|
348
|
+
pub fn as_turbofish(&self) -> Turbofish<'a> {
|
|
349
|
+
Turbofish(self.0)
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
ast_struct! {
|
|
354
|
+
/// A set of bound lifetimes: `for<'a, 'b, 'c>`.
|
|
355
|
+
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
|
|
356
|
+
pub struct BoundLifetimes {
|
|
357
|
+
pub for_token: Token![for],
|
|
358
|
+
pub lt_token: Token![<],
|
|
359
|
+
pub lifetimes: Punctuated<GenericParam, Token![,]>,
|
|
360
|
+
pub gt_token: Token![>],
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
impl Default for BoundLifetimes {
|
|
365
|
+
fn default() -> Self {
|
|
366
|
+
BoundLifetimes {
|
|
367
|
+
for_token: Default::default(),
|
|
368
|
+
lt_token: Default::default(),
|
|
369
|
+
lifetimes: Punctuated::new(),
|
|
370
|
+
gt_token: Default::default(),
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
impl LifetimeParam {
|
|
376
|
+
pub fn new(lifetime: Lifetime) -> Self {
|
|
377
|
+
LifetimeParam {
|
|
378
|
+
attrs: Vec::new(),
|
|
379
|
+
lifetime,
|
|
380
|
+
colon_token: None,
|
|
381
|
+
bounds: Punctuated::new(),
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
impl From<Ident> for TypeParam {
|
|
387
|
+
fn from(ident: Ident) -> Self {
|
|
388
|
+
TypeParam {
|
|
389
|
+
attrs: Vec::new(),
|
|
390
|
+
ident,
|
|
391
|
+
colon_token: None,
|
|
392
|
+
bounds: Punctuated::new(),
|
|
393
|
+
default: None,
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
ast_enum_of_structs! {
|
|
399
|
+
/// A trait or lifetime used as a bound on a type parameter.
|
|
400
|
+
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
|
|
401
|
+
#[non_exhaustive]
|
|
402
|
+
pub enum TypeParamBound {
|
|
403
|
+
Trait(TraitBound),
|
|
404
|
+
Lifetime(Lifetime),
|
|
405
|
+
PreciseCapture(PreciseCapture),
|
|
406
|
+
|
|
407
|
+
/// Tokens in bound position not interpreted by Syn.
|
|
408
|
+
///
|
|
409
|
+
/// <div class="warning">
|
|
410
|
+
///
|
|
411
|
+
/// Important: see [Compatibility notes][crate#verbatim-variants].
|
|
412
|
+
///
|
|
413
|
+
/// </div>
|
|
414
|
+
Verbatim(TokenStream),
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
ast_struct! {
|
|
419
|
+
/// A trait used as a bound on a type parameter.
|
|
420
|
+
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
|
|
421
|
+
pub struct TraitBound {
|
|
422
|
+
pub paren_token: Option<token::Paren>,
|
|
423
|
+
/// The `for<'a>` in `for<'a> Foo<&'a T>`
|
|
424
|
+
pub lifetimes: Option<BoundLifetimes>,
|
|
425
|
+
/// (Non-exhaustive) Additional optional information about a trait
|
|
426
|
+
/// bound.
|
|
427
|
+
pub modifiers: TraitBoundModifiers,
|
|
428
|
+
/// The `?` in `?Sized`
|
|
429
|
+
pub maybe: Option<Token![?]>,
|
|
430
|
+
/// The `Foo<&'a T>` in `for<'a> Foo<&'a T>`
|
|
431
|
+
pub path: Path,
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
ast_struct! {
|
|
436
|
+
/// Additional optional information about a trait bound.
|
|
437
|
+
///
|
|
438
|
+
/// This data structure may grow to accommodate future Rust language
|
|
439
|
+
/// changes, including the following in-progress RFCs:
|
|
440
|
+
///
|
|
441
|
+
/// - [RFC 3668] "Async closures" (`async Fn()`)
|
|
442
|
+
/// - [RFC 3762] "Make trait methods callable in const contexts" (`const Default`)
|
|
443
|
+
///
|
|
444
|
+
/// [RFC 3668]: https://github.com/rust-lang/rust/issues/62290
|
|
445
|
+
/// [RFC 3762]: https://github.com/rust-lang/rfcs/pull/3762
|
|
446
|
+
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
|
|
447
|
+
#[non_exhaustive]
|
|
448
|
+
pub struct TraitBoundModifiers {}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
impl Default for TraitBoundModifiers {
|
|
452
|
+
fn default() -> Self {
|
|
453
|
+
TraitBoundModifiers {}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
impl TraitBoundModifiers {
|
|
458
|
+
#[cfg(feature = "parsing")]
|
|
459
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
|
|
460
|
+
pub fn require_empty(&self) -> Result<()> {
|
|
461
|
+
Ok(())
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
ast_struct! {
|
|
466
|
+
/// Precise capturing bound: the 'use<…>' in `impl Trait +
|
|
467
|
+
/// use<'a, T>`.
|
|
468
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
|
|
469
|
+
pub struct PreciseCapture #full {
|
|
470
|
+
pub use_token: Token![use],
|
|
471
|
+
pub lt_token: Token![<],
|
|
472
|
+
pub params: Punctuated<CapturedParam, Token![,]>,
|
|
473
|
+
pub gt_token: Token![>],
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
#[cfg(feature = "full")]
|
|
478
|
+
ast_enum! {
|
|
479
|
+
/// Single parameter in a precise capturing bound.
|
|
480
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "full")))]
|
|
481
|
+
#[non_exhaustive]
|
|
482
|
+
pub enum CapturedParam {
|
|
483
|
+
/// A lifetime parameter in precise capturing bound: `fn f<'a>() -> impl
|
|
484
|
+
/// Trait + use<'a>`.
|
|
485
|
+
Lifetime(Lifetime),
|
|
486
|
+
/// A type parameter or const generic parameter in precise capturing
|
|
487
|
+
/// bound: `fn f<T>() -> impl Trait + use<T>` or `fn f<const K: T>() ->
|
|
488
|
+
/// impl Trait + use<K>`.
|
|
489
|
+
Ident(Ident),
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
ast_struct! {
|
|
494
|
+
/// A `where` clause in a definition: `where T: Deserialize<'de>, D:
|
|
495
|
+
/// 'static`.
|
|
496
|
+
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
|
|
497
|
+
pub struct WhereClause {
|
|
498
|
+
pub where_token: Token![where],
|
|
499
|
+
pub predicates: Punctuated<WherePredicate, Token![,]>,
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
ast_enum_of_structs! {
|
|
504
|
+
/// A single predicate in a `where` clause: `T: Deserialize<'de>`.
|
|
505
|
+
///
|
|
506
|
+
/// # Syntax tree enum
|
|
507
|
+
///
|
|
508
|
+
/// This type is a [syntax tree enum].
|
|
509
|
+
///
|
|
510
|
+
/// [syntax tree enum]: crate::expr::Expr#syntax-tree-enums
|
|
511
|
+
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
|
|
512
|
+
#[non_exhaustive]
|
|
513
|
+
pub enum WherePredicate {
|
|
514
|
+
/// A lifetime predicate in a `where` clause: `'a: 'b + 'c`.
|
|
515
|
+
Lifetime(PredicateLifetime),
|
|
516
|
+
|
|
517
|
+
/// A type predicate in a `where` clause: `for<'c> Foo<'c>: Trait<'c>`.
|
|
518
|
+
Type(PredicateType),
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
ast_struct! {
|
|
523
|
+
/// A lifetime predicate in a `where` clause: `'a: 'b + 'c`.
|
|
524
|
+
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
|
|
525
|
+
pub struct PredicateLifetime {
|
|
526
|
+
pub attrs: Vec<Attribute>,
|
|
527
|
+
pub lifetime: Lifetime,
|
|
528
|
+
pub colon_token: Token![:],
|
|
529
|
+
pub bounds: Punctuated<Lifetime, Token![+]>,
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
ast_struct! {
|
|
534
|
+
/// A type predicate in a `where` clause: `for<'c> Foo<'c>: Trait<'c>`.
|
|
535
|
+
#[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))]
|
|
536
|
+
pub struct PredicateType {
|
|
537
|
+
pub attrs: Vec<Attribute>,
|
|
538
|
+
/// Any lifetimes from a `for` binding
|
|
539
|
+
pub lifetimes: Option<BoundLifetimes>,
|
|
540
|
+
/// The type being bounded
|
|
541
|
+
pub bounded_ty: Type,
|
|
542
|
+
pub colon_token: Token![:],
|
|
543
|
+
/// Trait and lifetime bounds (`Clone+Send+'static`)
|
|
544
|
+
pub bounds: Punctuated<TypeParamBound, Token![+]>,
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
#[cfg(feature = "parsing")]
|
|
549
|
+
pub(crate) mod parsing {
|
|
550
|
+
use crate::attr::Attribute;
|
|
551
|
+
use crate::error::{Error, Result};
|
|
552
|
+
use crate::ext::IdentExt as _;
|
|
553
|
+
use crate::generics::{
|
|
554
|
+
BoundLifetimes, ConstParam, GenericParam, Generics, LifetimeParam, PredicateLifetime,
|
|
555
|
+
PredicateType, TraitBound, TraitBoundModifiers, TypeParam, TypeParamBound, WhereClause,
|
|
556
|
+
WherePredicate,
|
|
557
|
+
};
|
|
558
|
+
#[cfg(feature = "full")]
|
|
559
|
+
use crate::generics::{CapturedParam, PreciseCapture};
|
|
560
|
+
use crate::ident::Ident;
|
|
561
|
+
use crate::lifetime::Lifetime;
|
|
562
|
+
use crate::parse::{Parse, ParseStream};
|
|
563
|
+
use crate::path::{self, ParenthesizedGenericArguments, Path, PathArguments};
|
|
564
|
+
use crate::punctuated::Punctuated;
|
|
565
|
+
use crate::token;
|
|
566
|
+
use crate::ty::Type;
|
|
567
|
+
use crate::verbatim;
|
|
568
|
+
|
|
569
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
|
|
570
|
+
impl Parse for Generics {
|
|
571
|
+
fn parse(input: ParseStream) -> Result<Self> {
|
|
572
|
+
if !input.peek(Token![<]) {
|
|
573
|
+
return Ok(Generics::default());
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
let lt_token: Token![<] = input.parse()?;
|
|
577
|
+
|
|
578
|
+
let mut params = Punctuated::new();
|
|
579
|
+
loop {
|
|
580
|
+
if input.peek(Token![>]) {
|
|
581
|
+
break;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
let attrs = input.call(Attribute::parse_outer)?;
|
|
585
|
+
let lookahead = input.lookahead1();
|
|
586
|
+
if lookahead.peek(Lifetime) {
|
|
587
|
+
params.push_value(GenericParam::Lifetime(LifetimeParam {
|
|
588
|
+
attrs,
|
|
589
|
+
..input.parse()?
|
|
590
|
+
}));
|
|
591
|
+
} else if lookahead.peek(Ident) {
|
|
592
|
+
params.push_value(GenericParam::Type(TypeParam {
|
|
593
|
+
attrs,
|
|
594
|
+
..input.parse()?
|
|
595
|
+
}));
|
|
596
|
+
} else if lookahead.peek(Token![const]) {
|
|
597
|
+
params.push_value(GenericParam::Const(ConstParam {
|
|
598
|
+
attrs,
|
|
599
|
+
..input.parse()?
|
|
600
|
+
}));
|
|
601
|
+
} else if input.peek(Token![_]) {
|
|
602
|
+
params.push_value(GenericParam::Type(TypeParam {
|
|
603
|
+
attrs,
|
|
604
|
+
ident: input.call(Ident::parse_any)?,
|
|
605
|
+
colon_token: None,
|
|
606
|
+
bounds: Punctuated::new(),
|
|
607
|
+
default: None,
|
|
608
|
+
}));
|
|
609
|
+
} else {
|
|
610
|
+
return Err(lookahead.error());
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
if input.peek(Token![>]) {
|
|
614
|
+
break;
|
|
615
|
+
}
|
|
616
|
+
let punct = input.parse()?;
|
|
617
|
+
params.push_punct(punct);
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
let gt_token: Token![>] = input.parse()?;
|
|
621
|
+
|
|
622
|
+
Ok(Generics {
|
|
623
|
+
lt_token: Some(lt_token),
|
|
624
|
+
params,
|
|
625
|
+
gt_token: Some(gt_token),
|
|
626
|
+
where_clause: None,
|
|
627
|
+
})
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
|
|
632
|
+
impl Parse for GenericParam {
|
|
633
|
+
fn parse(input: ParseStream) -> Result<Self> {
|
|
634
|
+
let attrs = input.call(Attribute::parse_outer)?;
|
|
635
|
+
|
|
636
|
+
let lookahead = input.lookahead1();
|
|
637
|
+
if lookahead.peek(Ident) {
|
|
638
|
+
Ok(GenericParam::Type(TypeParam {
|
|
639
|
+
attrs,
|
|
640
|
+
..input.parse()?
|
|
641
|
+
}))
|
|
642
|
+
} else if lookahead.peek(Lifetime) {
|
|
643
|
+
Ok(GenericParam::Lifetime(LifetimeParam {
|
|
644
|
+
attrs,
|
|
645
|
+
..input.parse()?
|
|
646
|
+
}))
|
|
647
|
+
} else if lookahead.peek(Token![const]) {
|
|
648
|
+
Ok(GenericParam::Const(ConstParam {
|
|
649
|
+
attrs,
|
|
650
|
+
..input.parse()?
|
|
651
|
+
}))
|
|
652
|
+
} else {
|
|
653
|
+
Err(lookahead.error())
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
|
|
659
|
+
impl Parse for LifetimeParam {
|
|
660
|
+
fn parse(input: ParseStream) -> Result<Self> {
|
|
661
|
+
let has_colon;
|
|
662
|
+
Ok(LifetimeParam {
|
|
663
|
+
attrs: input.call(Attribute::parse_outer)?,
|
|
664
|
+
lifetime: Lifetime::parse_any(input)?,
|
|
665
|
+
colon_token: {
|
|
666
|
+
if input.peek(Token![:]) {
|
|
667
|
+
has_colon = true;
|
|
668
|
+
Some(input.parse()?)
|
|
669
|
+
} else {
|
|
670
|
+
has_colon = false;
|
|
671
|
+
None
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
bounds: {
|
|
675
|
+
let mut bounds = Punctuated::new();
|
|
676
|
+
if has_colon {
|
|
677
|
+
loop {
|
|
678
|
+
if input.is_empty() || input.peek(Token![,]) || input.peek(Token![>]) {
|
|
679
|
+
break;
|
|
680
|
+
}
|
|
681
|
+
let value = Lifetime::parse_any(input)?;
|
|
682
|
+
bounds.push_value(value);
|
|
683
|
+
if !input.peek(Token![+]) {
|
|
684
|
+
break;
|
|
685
|
+
}
|
|
686
|
+
let punct = input.parse()?;
|
|
687
|
+
bounds.push_punct(punct);
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
bounds
|
|
691
|
+
},
|
|
692
|
+
})
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
|
|
697
|
+
impl Parse for BoundLifetimes {
|
|
698
|
+
fn parse(input: ParseStream) -> Result<Self> {
|
|
699
|
+
Ok(BoundLifetimes {
|
|
700
|
+
for_token: input.parse()?,
|
|
701
|
+
lt_token: input.parse()?,
|
|
702
|
+
lifetimes: {
|
|
703
|
+
let mut lifetimes = Punctuated::new();
|
|
704
|
+
while !input.peek(Token![>]) {
|
|
705
|
+
lifetimes.push_value(input.parse()?);
|
|
706
|
+
if input.peek(Token![>]) {
|
|
707
|
+
break;
|
|
708
|
+
}
|
|
709
|
+
lifetimes.push_punct(input.parse()?);
|
|
710
|
+
}
|
|
711
|
+
lifetimes
|
|
712
|
+
},
|
|
713
|
+
gt_token: input.parse()?,
|
|
714
|
+
})
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
|
|
719
|
+
impl Parse for Option<BoundLifetimes> {
|
|
720
|
+
fn parse(input: ParseStream) -> Result<Self> {
|
|
721
|
+
if input.peek(Token![for]) {
|
|
722
|
+
input.parse().map(Some)
|
|
723
|
+
} else {
|
|
724
|
+
Ok(None)
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
|
|
730
|
+
impl Parse for TypeParam {
|
|
731
|
+
fn parse(input: ParseStream) -> Result<Self> {
|
|
732
|
+
let attrs = input.call(Attribute::parse_outer)?;
|
|
733
|
+
let ident: Ident = input.parse()?;
|
|
734
|
+
let colon_token: Option<Token![:]> = input.parse()?;
|
|
735
|
+
|
|
736
|
+
let mut bounds = Punctuated::new();
|
|
737
|
+
if colon_token.is_some() {
|
|
738
|
+
loop {
|
|
739
|
+
if input.is_empty()
|
|
740
|
+
|| input.peek(Token![,])
|
|
741
|
+
|| input.peek(Token![>])
|
|
742
|
+
|| input.peek(Token![=])
|
|
743
|
+
{
|
|
744
|
+
break;
|
|
745
|
+
}
|
|
746
|
+
bounds.push_value({
|
|
747
|
+
let allow_precise_capture = false;
|
|
748
|
+
let allow_const = true;
|
|
749
|
+
TypeParamBound::parse_single(input, allow_precise_capture, allow_const)?
|
|
750
|
+
});
|
|
751
|
+
if !input.peek(Token![+]) {
|
|
752
|
+
break;
|
|
753
|
+
}
|
|
754
|
+
let punct: Token![+] = input.parse()?;
|
|
755
|
+
bounds.push_punct(punct);
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
let default = if let Some(eq_token) = input.parse::<Option<Token![=]>>()? {
|
|
760
|
+
Some((eq_token, input.parse::<Type>()?))
|
|
761
|
+
} else {
|
|
762
|
+
None
|
|
763
|
+
};
|
|
764
|
+
|
|
765
|
+
Ok(TypeParam {
|
|
766
|
+
attrs,
|
|
767
|
+
ident,
|
|
768
|
+
colon_token,
|
|
769
|
+
bounds,
|
|
770
|
+
default,
|
|
771
|
+
})
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
|
|
776
|
+
impl Parse for TypeParamBound {
|
|
777
|
+
fn parse(input: ParseStream) -> Result<Self> {
|
|
778
|
+
let allow_precise_capture = true;
|
|
779
|
+
let allow_const = true;
|
|
780
|
+
Self::parse_single(input, allow_precise_capture, allow_const)
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
impl TypeParamBound {
|
|
785
|
+
pub(crate) fn parse_single(
|
|
786
|
+
input: ParseStream,
|
|
787
|
+
#[cfg_attr(not(feature = "full"), allow(unused_variables))] allow_precise_capture: bool,
|
|
788
|
+
allow_const: bool,
|
|
789
|
+
) -> Result<Self> {
|
|
790
|
+
if input.peek(Lifetime) {
|
|
791
|
+
return Lifetime::parse_any(input).map(TypeParamBound::Lifetime);
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
#[cfg(feature = "full")]
|
|
795
|
+
{
|
|
796
|
+
if input.peek(Token![use]) {
|
|
797
|
+
let precise_capture_begin = input.cursor();
|
|
798
|
+
let precise_capture: PreciseCapture = input.parse()?;
|
|
799
|
+
return if allow_precise_capture {
|
|
800
|
+
Ok(TypeParamBound::PreciseCapture(precise_capture))
|
|
801
|
+
} else {
|
|
802
|
+
let msg = "`use<...>` precise capturing syntax is not allowed here";
|
|
803
|
+
Err(Error::new_range(precise_capture_begin..input.cursor(), msg))
|
|
804
|
+
};
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
let begin = input.cursor();
|
|
809
|
+
|
|
810
|
+
let content;
|
|
811
|
+
let (paren_token, content) = if input.peek(token::Paren) {
|
|
812
|
+
(Some(parenthesized!(content in input)), &content)
|
|
813
|
+
} else {
|
|
814
|
+
(None, input)
|
|
815
|
+
};
|
|
816
|
+
|
|
817
|
+
if let Some(mut bound) = TraitBound::do_parse(content, allow_const)? {
|
|
818
|
+
bound.paren_token = paren_token;
|
|
819
|
+
Ok(TypeParamBound::Trait(bound))
|
|
820
|
+
} else {
|
|
821
|
+
Ok(TypeParamBound::Verbatim(verbatim::between(
|
|
822
|
+
begin,
|
|
823
|
+
input.cursor(),
|
|
824
|
+
)))
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
pub(crate) fn parse_multiple(
|
|
829
|
+
input: ParseStream,
|
|
830
|
+
allow_plus: bool,
|
|
831
|
+
allow_precise_capture: bool,
|
|
832
|
+
allow_const: bool,
|
|
833
|
+
) -> Result<Punctuated<Self, Token![+]>> {
|
|
834
|
+
let mut bounds = Punctuated::new();
|
|
835
|
+
loop {
|
|
836
|
+
let bound = Self::parse_single(input, allow_precise_capture, allow_const)?;
|
|
837
|
+
bounds.push_value(bound);
|
|
838
|
+
if !(allow_plus && input.peek(Token![+])) {
|
|
839
|
+
break;
|
|
840
|
+
}
|
|
841
|
+
bounds.push_punct(input.parse()?);
|
|
842
|
+
if !(input.peek(Ident::peek_any)
|
|
843
|
+
|| input.peek(Token![::])
|
|
844
|
+
|| input.peek(Token![?])
|
|
845
|
+
|| input.peek(Lifetime)
|
|
846
|
+
|| input.peek(token::Paren)
|
|
847
|
+
|| (allow_const && (input.peek(token::Bracket) || input.peek(Token![const]))))
|
|
848
|
+
{
|
|
849
|
+
break;
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
Ok(bounds)
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
|
|
857
|
+
impl Parse for TraitBound {
|
|
858
|
+
fn parse(input: ParseStream) -> Result<Self> {
|
|
859
|
+
let allow_const = false;
|
|
860
|
+
Self::do_parse(input, allow_const).map(Option::unwrap)
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
impl TraitBound {
|
|
865
|
+
fn do_parse(input: ParseStream, allow_const: bool) -> Result<Option<Self>> {
|
|
866
|
+
let mut lifetimes: Option<BoundLifetimes> = input.parse()?;
|
|
867
|
+
|
|
868
|
+
let is_conditionally_const = cfg!(feature = "full") && input.peek(token::Bracket);
|
|
869
|
+
let is_unconditionally_const = cfg!(feature = "full") && input.peek(Token![const]);
|
|
870
|
+
if is_conditionally_const {
|
|
871
|
+
let conditionally_const;
|
|
872
|
+
let bracket_token = bracketed!(conditionally_const in input);
|
|
873
|
+
conditionally_const.parse::<Token![const]>()?;
|
|
874
|
+
if !allow_const {
|
|
875
|
+
let msg = "`[const]` is not allowed here";
|
|
876
|
+
return Err(Error::new(bracket_token.span.join(), msg));
|
|
877
|
+
}
|
|
878
|
+
} else if is_unconditionally_const {
|
|
879
|
+
let const_token: Token![const] = input.parse()?;
|
|
880
|
+
if !allow_const {
|
|
881
|
+
let msg = "`const` is not allowed here";
|
|
882
|
+
return Err(Error::new(const_token.span, msg));
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
let maybe: Option<Token![?]> = input.parse()?;
|
|
887
|
+
if lifetimes.is_none() && maybe.is_some() {
|
|
888
|
+
lifetimes = input.parse()?;
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
let mut path: Path = input.parse()?;
|
|
892
|
+
if path.segments.last().unwrap().arguments.is_empty()
|
|
893
|
+
&& (input.peek(token::Paren) || input.peek(Token![::]) && input.peek3(token::Paren))
|
|
894
|
+
{
|
|
895
|
+
input.parse::<Option<Token![::]>>()?;
|
|
896
|
+
let args: ParenthesizedGenericArguments = input.parse()?;
|
|
897
|
+
let parenthesized = PathArguments::Parenthesized(args);
|
|
898
|
+
path.segments.last_mut().unwrap().arguments = parenthesized;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
if lifetimes.is_some() {
|
|
902
|
+
if let Some(maybe) = maybe {
|
|
903
|
+
let msg = "`for<...>` binder not allowed with `?` trait polarity modifier";
|
|
904
|
+
return Err(Error::new(maybe.span, msg));
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
if is_conditionally_const || is_unconditionally_const {
|
|
909
|
+
Ok(None)
|
|
910
|
+
} else {
|
|
911
|
+
Ok(Some(TraitBound {
|
|
912
|
+
paren_token: None,
|
|
913
|
+
lifetimes,
|
|
914
|
+
modifiers: TraitBoundModifiers {},
|
|
915
|
+
maybe,
|
|
916
|
+
path,
|
|
917
|
+
}))
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
|
|
923
|
+
impl Parse for ConstParam {
|
|
924
|
+
fn parse(input: ParseStream) -> Result<Self> {
|
|
925
|
+
Ok(ConstParam {
|
|
926
|
+
attrs: input.call(Attribute::parse_outer)?,
|
|
927
|
+
const_token: input.parse()?,
|
|
928
|
+
ident: input.parse()?,
|
|
929
|
+
colon_token: input.parse()?,
|
|
930
|
+
ty: input.parse()?,
|
|
931
|
+
default: {
|
|
932
|
+
if input.peek(Token![=]) {
|
|
933
|
+
let eq_token = input.parse()?;
|
|
934
|
+
let default = path::parsing::const_argument(input)?;
|
|
935
|
+
Some((eq_token, default))
|
|
936
|
+
} else {
|
|
937
|
+
None
|
|
938
|
+
}
|
|
939
|
+
},
|
|
940
|
+
})
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
|
|
945
|
+
impl Parse for WhereClause {
|
|
946
|
+
fn parse(input: ParseStream) -> Result<Self> {
|
|
947
|
+
let where_token: Token![where] = input.parse()?;
|
|
948
|
+
|
|
949
|
+
if choose_generics_over_qpath(input) {
|
|
950
|
+
return Err(input
|
|
951
|
+
.error("generic parameters on `where` clauses are reserved for future use"));
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
Ok(WhereClause {
|
|
955
|
+
where_token,
|
|
956
|
+
predicates: {
|
|
957
|
+
let mut predicates = Punctuated::new();
|
|
958
|
+
loop {
|
|
959
|
+
if input.is_empty()
|
|
960
|
+
|| input.peek(token::Brace)
|
|
961
|
+
|| input.peek(Token![,])
|
|
962
|
+
|| input.peek(Token![;])
|
|
963
|
+
|| input.peek(Token![:]) && !input.peek(Token![::])
|
|
964
|
+
|| input.peek(Token![=])
|
|
965
|
+
{
|
|
966
|
+
break;
|
|
967
|
+
}
|
|
968
|
+
let value = input.parse()?;
|
|
969
|
+
predicates.push_value(value);
|
|
970
|
+
if !input.peek(Token![,]) {
|
|
971
|
+
break;
|
|
972
|
+
}
|
|
973
|
+
let punct = input.parse()?;
|
|
974
|
+
predicates.push_punct(punct);
|
|
975
|
+
}
|
|
976
|
+
predicates
|
|
977
|
+
},
|
|
978
|
+
})
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
|
|
983
|
+
impl Parse for Option<WhereClause> {
|
|
984
|
+
fn parse(input: ParseStream) -> Result<Self> {
|
|
985
|
+
if input.peek(Token![where]) {
|
|
986
|
+
input.parse().map(Some)
|
|
987
|
+
} else {
|
|
988
|
+
Ok(None)
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
|
|
994
|
+
impl Parse for WherePredicate {
|
|
995
|
+
fn parse(input: ParseStream) -> Result<Self> {
|
|
996
|
+
let attrs = input.call(Attribute::parse_outer)?;
|
|
997
|
+
if input.peek(Lifetime) && input.peek2(Token![:]) {
|
|
998
|
+
Ok(WherePredicate::Lifetime(PredicateLifetime {
|
|
999
|
+
attrs,
|
|
1000
|
+
lifetime: Lifetime::parse_any(input)?,
|
|
1001
|
+
colon_token: input.parse()?,
|
|
1002
|
+
bounds: {
|
|
1003
|
+
let mut bounds = Punctuated::new();
|
|
1004
|
+
loop {
|
|
1005
|
+
if input.is_empty()
|
|
1006
|
+
|| input.peek(token::Brace)
|
|
1007
|
+
|| input.peek(Token![,])
|
|
1008
|
+
|| input.peek(Token![;])
|
|
1009
|
+
|| input.peek(Token![:])
|
|
1010
|
+
|| input.peek(Token![=])
|
|
1011
|
+
{
|
|
1012
|
+
break;
|
|
1013
|
+
}
|
|
1014
|
+
let value = Lifetime::parse_any(input)?;
|
|
1015
|
+
bounds.push_value(value);
|
|
1016
|
+
if !input.peek(Token![+]) {
|
|
1017
|
+
break;
|
|
1018
|
+
}
|
|
1019
|
+
let punct = input.parse()?;
|
|
1020
|
+
bounds.push_punct(punct);
|
|
1021
|
+
}
|
|
1022
|
+
bounds
|
|
1023
|
+
},
|
|
1024
|
+
}))
|
|
1025
|
+
} else {
|
|
1026
|
+
Ok(WherePredicate::Type(PredicateType {
|
|
1027
|
+
attrs,
|
|
1028
|
+
lifetimes: input.parse()?,
|
|
1029
|
+
bounded_ty: input.parse()?,
|
|
1030
|
+
colon_token: input.parse()?,
|
|
1031
|
+
bounds: {
|
|
1032
|
+
let mut bounds = Punctuated::new();
|
|
1033
|
+
loop {
|
|
1034
|
+
if input.is_empty()
|
|
1035
|
+
|| input.peek(token::Brace)
|
|
1036
|
+
|| input.peek(Token![,])
|
|
1037
|
+
|| input.peek(Token![;])
|
|
1038
|
+
|| input.peek(Token![:]) && !input.peek(Token![::])
|
|
1039
|
+
|| input.peek(Token![=])
|
|
1040
|
+
{
|
|
1041
|
+
break;
|
|
1042
|
+
}
|
|
1043
|
+
bounds.push_value({
|
|
1044
|
+
let allow_precise_capture = false;
|
|
1045
|
+
let allow_const = true;
|
|
1046
|
+
TypeParamBound::parse_single(
|
|
1047
|
+
input,
|
|
1048
|
+
allow_precise_capture,
|
|
1049
|
+
allow_const,
|
|
1050
|
+
)?
|
|
1051
|
+
});
|
|
1052
|
+
if !input.peek(Token![+]) {
|
|
1053
|
+
break;
|
|
1054
|
+
}
|
|
1055
|
+
let punct = input.parse()?;
|
|
1056
|
+
bounds.push_punct(punct);
|
|
1057
|
+
}
|
|
1058
|
+
bounds
|
|
1059
|
+
},
|
|
1060
|
+
}))
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
#[cfg(feature = "full")]
|
|
1066
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
|
|
1067
|
+
impl Parse for PreciseCapture {
|
|
1068
|
+
fn parse(input: ParseStream) -> Result<Self> {
|
|
1069
|
+
let use_token: Token![use] = input.parse()?;
|
|
1070
|
+
let lt_token: Token![<] = input.parse()?;
|
|
1071
|
+
let mut params = Punctuated::new();
|
|
1072
|
+
loop {
|
|
1073
|
+
let lookahead = input.lookahead1();
|
|
1074
|
+
params.push_value(
|
|
1075
|
+
if lookahead.peek(Lifetime) || lookahead.peek(Ident) || input.peek(Token![Self])
|
|
1076
|
+
{
|
|
1077
|
+
input.parse::<CapturedParam>()?
|
|
1078
|
+
} else if lookahead.peek(Token![>]) {
|
|
1079
|
+
break;
|
|
1080
|
+
} else {
|
|
1081
|
+
return Err(lookahead.error());
|
|
1082
|
+
},
|
|
1083
|
+
);
|
|
1084
|
+
let lookahead = input.lookahead1();
|
|
1085
|
+
params.push_punct(if lookahead.peek(Token![,]) {
|
|
1086
|
+
input.parse::<Token![,]>()?
|
|
1087
|
+
} else if lookahead.peek(Token![>]) {
|
|
1088
|
+
break;
|
|
1089
|
+
} else {
|
|
1090
|
+
return Err(lookahead.error());
|
|
1091
|
+
});
|
|
1092
|
+
}
|
|
1093
|
+
let gt_token: Token![>] = input.parse()?;
|
|
1094
|
+
Ok(PreciseCapture {
|
|
1095
|
+
use_token,
|
|
1096
|
+
lt_token,
|
|
1097
|
+
params,
|
|
1098
|
+
gt_token,
|
|
1099
|
+
})
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
#[cfg(feature = "full")]
|
|
1104
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "parsing")))]
|
|
1105
|
+
impl Parse for CapturedParam {
|
|
1106
|
+
fn parse(input: ParseStream) -> Result<Self> {
|
|
1107
|
+
let lookahead = input.lookahead1();
|
|
1108
|
+
if lookahead.peek(Lifetime) {
|
|
1109
|
+
Lifetime::parse_any(input).map(CapturedParam::Lifetime)
|
|
1110
|
+
} else if lookahead.peek(Ident) || input.peek(Token![Self]) {
|
|
1111
|
+
input.call(Ident::parse_any).map(CapturedParam::Ident)
|
|
1112
|
+
} else {
|
|
1113
|
+
Err(lookahead.error())
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
pub(crate) fn choose_generics_over_qpath(input: ParseStream) -> bool {
|
|
1119
|
+
// Rust syntax has an ambiguity between generic parameters and qualified
|
|
1120
|
+
// paths. In `impl <T> :: Thing<T, U> {}` this may either be a generic
|
|
1121
|
+
// inherent impl `impl<T> ::Thing<T, U>` or a non-generic inherent impl
|
|
1122
|
+
// for an associated type `impl <T>::Thing<T, U>`.
|
|
1123
|
+
//
|
|
1124
|
+
// After `<` the following continuations can only begin generics, not a
|
|
1125
|
+
// qualified path:
|
|
1126
|
+
//
|
|
1127
|
+
// `<` `>` - empty generic parameters
|
|
1128
|
+
// `<` `#` - generic parameters with attribute
|
|
1129
|
+
// `<` LIFETIME `>` - single lifetime parameter
|
|
1130
|
+
// `<` (LIFETIME|IDENT) `,` - first generic parameter in a list
|
|
1131
|
+
// `<` (LIFETIME|IDENT) `:` - generic parameter with bounds
|
|
1132
|
+
// `<` (LIFETIME|IDENT) `=` - generic parameter with a default
|
|
1133
|
+
// `<` const - generic const parameter
|
|
1134
|
+
//
|
|
1135
|
+
// The only truly ambiguous case is:
|
|
1136
|
+
//
|
|
1137
|
+
// `<` IDENT `>` `::` IDENT ...
|
|
1138
|
+
//
|
|
1139
|
+
// which we disambiguate in favor of generics because this is almost
|
|
1140
|
+
// always the expected one in the context of real-world code.
|
|
1141
|
+
input.peek(Token![<])
|
|
1142
|
+
&& (input.peek2(Token![>])
|
|
1143
|
+
|| input.peek2(Token![#])
|
|
1144
|
+
|| (input.peek2(Lifetime) || input.peek2(Ident))
|
|
1145
|
+
&& (input.peek3(Token![>])
|
|
1146
|
+
|| input.peek3(Token![,])
|
|
1147
|
+
|| input.peek3(Token![:]) && !input.peek3(Token![::])
|
|
1148
|
+
|| input.peek3(Token![=]))
|
|
1149
|
+
|| input.peek2(Token![const]))
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
#[cfg(feature = "full")]
|
|
1153
|
+
pub(crate) fn choose_generics_over_qpath_after_keyword(input: ParseStream) -> bool {
|
|
1154
|
+
let input = input.fork();
|
|
1155
|
+
input.call(Ident::parse_any).unwrap(); // `impl` or `for` or `where`
|
|
1156
|
+
choose_generics_over_qpath(&input)
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
#[cfg(feature = "printing")]
|
|
1161
|
+
pub(crate) mod printing {
|
|
1162
|
+
use crate::attr::FilterAttrs;
|
|
1163
|
+
#[cfg(feature = "full")]
|
|
1164
|
+
use crate::expr;
|
|
1165
|
+
use crate::expr::Expr;
|
|
1166
|
+
#[cfg(feature = "full")]
|
|
1167
|
+
use crate::fixup::FixupContext;
|
|
1168
|
+
use crate::generics::{
|
|
1169
|
+
BoundLifetimes, ConstParam, GenericParam, Generics, ImplGenerics, LifetimeParam,
|
|
1170
|
+
PredicateLifetime, PredicateType, TraitBound, Turbofish, TypeGenerics, TypeParam,
|
|
1171
|
+
WhereClause,
|
|
1172
|
+
};
|
|
1173
|
+
#[cfg(feature = "full")]
|
|
1174
|
+
use crate::generics::{CapturedParam, PreciseCapture};
|
|
1175
|
+
use crate::print::TokensOrDefault;
|
|
1176
|
+
use crate::token;
|
|
1177
|
+
use proc_macro2::TokenStream;
|
|
1178
|
+
use quote::{ToTokens, TokenStreamExt as _};
|
|
1179
|
+
|
|
1180
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
|
|
1181
|
+
impl ToTokens for Generics {
|
|
1182
|
+
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
1183
|
+
if self.params.is_empty() {
|
|
1184
|
+
return;
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
TokensOrDefault(&self.lt_token).to_tokens(tokens);
|
|
1188
|
+
|
|
1189
|
+
// Print lifetimes before types and consts, regardless of their
|
|
1190
|
+
// order in self.params.
|
|
1191
|
+
let mut trailing_or_empty = true;
|
|
1192
|
+
for param in self.params.pairs() {
|
|
1193
|
+
if let GenericParam::Lifetime(_) = **param.value() {
|
|
1194
|
+
param.to_tokens(tokens);
|
|
1195
|
+
trailing_or_empty = param.punct().is_some();
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
for param in self.params.pairs() {
|
|
1199
|
+
match param.value() {
|
|
1200
|
+
GenericParam::Type(_) | GenericParam::Const(_) => {
|
|
1201
|
+
if !trailing_or_empty {
|
|
1202
|
+
<Token![,]>::default().to_tokens(tokens);
|
|
1203
|
+
trailing_or_empty = true;
|
|
1204
|
+
}
|
|
1205
|
+
param.to_tokens(tokens);
|
|
1206
|
+
}
|
|
1207
|
+
GenericParam::Lifetime(_) => {}
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
TokensOrDefault(&self.gt_token).to_tokens(tokens);
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
impl<'a> ToTokens for ImplGenerics<'a> {
|
|
1216
|
+
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
1217
|
+
if self.0.params.is_empty() {
|
|
1218
|
+
return;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
TokensOrDefault(&self.0.lt_token).to_tokens(tokens);
|
|
1222
|
+
|
|
1223
|
+
// Print lifetimes before types and consts, regardless of their
|
|
1224
|
+
// order in self.params.
|
|
1225
|
+
let mut trailing_or_empty = true;
|
|
1226
|
+
for param in self.0.params.pairs() {
|
|
1227
|
+
if let GenericParam::Lifetime(_) = **param.value() {
|
|
1228
|
+
param.to_tokens(tokens);
|
|
1229
|
+
trailing_or_empty = param.punct().is_some();
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
for param in self.0.params.pairs() {
|
|
1233
|
+
if let GenericParam::Lifetime(_) = **param.value() {
|
|
1234
|
+
continue;
|
|
1235
|
+
}
|
|
1236
|
+
if !trailing_or_empty {
|
|
1237
|
+
<Token![,]>::default().to_tokens(tokens);
|
|
1238
|
+
trailing_or_empty = true;
|
|
1239
|
+
}
|
|
1240
|
+
match param.value() {
|
|
1241
|
+
GenericParam::Lifetime(_) => unreachable!(),
|
|
1242
|
+
GenericParam::Type(param) => {
|
|
1243
|
+
// Leave off the type parameter defaults
|
|
1244
|
+
tokens.append_all(param.attrs.outer());
|
|
1245
|
+
param.ident.to_tokens(tokens);
|
|
1246
|
+
if !param.bounds.is_empty() {
|
|
1247
|
+
TokensOrDefault(¶m.colon_token).to_tokens(tokens);
|
|
1248
|
+
param.bounds.to_tokens(tokens);
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
GenericParam::Const(param) => {
|
|
1252
|
+
// Leave off the const parameter defaults
|
|
1253
|
+
tokens.append_all(param.attrs.outer());
|
|
1254
|
+
param.const_token.to_tokens(tokens);
|
|
1255
|
+
param.ident.to_tokens(tokens);
|
|
1256
|
+
param.colon_token.to_tokens(tokens);
|
|
1257
|
+
param.ty.to_tokens(tokens);
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
param.punct().to_tokens(tokens);
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
TokensOrDefault(&self.0.gt_token).to_tokens(tokens);
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
impl<'a> ToTokens for TypeGenerics<'a> {
|
|
1268
|
+
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
1269
|
+
if self.0.params.is_empty() {
|
|
1270
|
+
return;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
TokensOrDefault(&self.0.lt_token).to_tokens(tokens);
|
|
1274
|
+
|
|
1275
|
+
// Print lifetimes before types and consts, regardless of their
|
|
1276
|
+
// order in self.params.
|
|
1277
|
+
let mut trailing_or_empty = true;
|
|
1278
|
+
for param in self.0.params.pairs() {
|
|
1279
|
+
if let GenericParam::Lifetime(def) = *param.value() {
|
|
1280
|
+
// Leave off the lifetime bounds and attributes
|
|
1281
|
+
def.lifetime.to_tokens(tokens);
|
|
1282
|
+
param.punct().to_tokens(tokens);
|
|
1283
|
+
trailing_or_empty = param.punct().is_some();
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
for param in self.0.params.pairs() {
|
|
1287
|
+
if let GenericParam::Lifetime(_) = **param.value() {
|
|
1288
|
+
continue;
|
|
1289
|
+
}
|
|
1290
|
+
if !trailing_or_empty {
|
|
1291
|
+
<Token![,]>::default().to_tokens(tokens);
|
|
1292
|
+
trailing_or_empty = true;
|
|
1293
|
+
}
|
|
1294
|
+
match param.value() {
|
|
1295
|
+
GenericParam::Lifetime(_) => unreachable!(),
|
|
1296
|
+
GenericParam::Type(param) => {
|
|
1297
|
+
// Leave off the type parameter defaults
|
|
1298
|
+
param.ident.to_tokens(tokens);
|
|
1299
|
+
}
|
|
1300
|
+
GenericParam::Const(param) => {
|
|
1301
|
+
// Leave off the const parameter defaults
|
|
1302
|
+
param.ident.to_tokens(tokens);
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
param.punct().to_tokens(tokens);
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
TokensOrDefault(&self.0.gt_token).to_tokens(tokens);
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
impl<'a> ToTokens for Turbofish<'a> {
|
|
1313
|
+
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
1314
|
+
if !self.0.params.is_empty() {
|
|
1315
|
+
<Token![::]>::default().to_tokens(tokens);
|
|
1316
|
+
TypeGenerics(self.0).to_tokens(tokens);
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
|
|
1322
|
+
impl ToTokens for BoundLifetimes {
|
|
1323
|
+
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
1324
|
+
self.for_token.to_tokens(tokens);
|
|
1325
|
+
self.lt_token.to_tokens(tokens);
|
|
1326
|
+
self.lifetimes.to_tokens(tokens);
|
|
1327
|
+
self.gt_token.to_tokens(tokens);
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
|
|
1332
|
+
impl ToTokens for LifetimeParam {
|
|
1333
|
+
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
1334
|
+
tokens.append_all(self.attrs.outer());
|
|
1335
|
+
self.lifetime.to_tokens(tokens);
|
|
1336
|
+
if !self.bounds.is_empty() {
|
|
1337
|
+
TokensOrDefault(&self.colon_token).to_tokens(tokens);
|
|
1338
|
+
self.bounds.to_tokens(tokens);
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
|
|
1344
|
+
impl ToTokens for TypeParam {
|
|
1345
|
+
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
1346
|
+
tokens.append_all(self.attrs.outer());
|
|
1347
|
+
self.ident.to_tokens(tokens);
|
|
1348
|
+
if !self.bounds.is_empty() {
|
|
1349
|
+
TokensOrDefault(&self.colon_token).to_tokens(tokens);
|
|
1350
|
+
self.bounds.to_tokens(tokens);
|
|
1351
|
+
}
|
|
1352
|
+
if let Some((eq_token, default)) = &self.default {
|
|
1353
|
+
eq_token.to_tokens(tokens);
|
|
1354
|
+
default.to_tokens(tokens);
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
|
|
1360
|
+
impl ToTokens for TraitBound {
|
|
1361
|
+
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
1362
|
+
let to_tokens = |tokens: &mut TokenStream| {
|
|
1363
|
+
self.lifetimes.to_tokens(tokens);
|
|
1364
|
+
self.maybe.to_tokens(tokens);
|
|
1365
|
+
self.path.to_tokens(tokens);
|
|
1366
|
+
};
|
|
1367
|
+
match &self.paren_token {
|
|
1368
|
+
Some(paren) => paren.surround(tokens, to_tokens),
|
|
1369
|
+
None => to_tokens(tokens),
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
|
|
1375
|
+
impl ToTokens for ConstParam {
|
|
1376
|
+
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
1377
|
+
tokens.append_all(self.attrs.outer());
|
|
1378
|
+
self.const_token.to_tokens(tokens);
|
|
1379
|
+
self.ident.to_tokens(tokens);
|
|
1380
|
+
self.colon_token.to_tokens(tokens);
|
|
1381
|
+
self.ty.to_tokens(tokens);
|
|
1382
|
+
if let Some((eq_token, default)) = &self.default {
|
|
1383
|
+
eq_token.to_tokens(tokens);
|
|
1384
|
+
print_const_argument(default, tokens);
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
|
|
1390
|
+
impl ToTokens for WhereClause {
|
|
1391
|
+
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
1392
|
+
if !self.predicates.is_empty() {
|
|
1393
|
+
self.where_token.to_tokens(tokens);
|
|
1394
|
+
self.predicates.to_tokens(tokens);
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
|
|
1400
|
+
impl ToTokens for PredicateLifetime {
|
|
1401
|
+
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
1402
|
+
tokens.append_all(self.attrs.outer());
|
|
1403
|
+
self.lifetime.to_tokens(tokens);
|
|
1404
|
+
self.colon_token.to_tokens(tokens);
|
|
1405
|
+
self.bounds.to_tokens(tokens);
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
|
|
1410
|
+
impl ToTokens for PredicateType {
|
|
1411
|
+
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
1412
|
+
tokens.append_all(self.attrs.outer());
|
|
1413
|
+
self.lifetimes.to_tokens(tokens);
|
|
1414
|
+
self.bounded_ty.to_tokens(tokens);
|
|
1415
|
+
self.colon_token.to_tokens(tokens);
|
|
1416
|
+
self.bounds.to_tokens(tokens);
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
#[cfg(feature = "full")]
|
|
1421
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
|
|
1422
|
+
impl ToTokens for PreciseCapture {
|
|
1423
|
+
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
1424
|
+
self.use_token.to_tokens(tokens);
|
|
1425
|
+
self.lt_token.to_tokens(tokens);
|
|
1426
|
+
|
|
1427
|
+
// Print lifetimes before types and consts, regardless of their
|
|
1428
|
+
// order in self.params.
|
|
1429
|
+
let mut trailing_or_empty = true;
|
|
1430
|
+
for param in self.params.pairs() {
|
|
1431
|
+
if let CapturedParam::Lifetime(_) = **param.value() {
|
|
1432
|
+
param.to_tokens(tokens);
|
|
1433
|
+
trailing_or_empty = param.punct().is_some();
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
for param in self.params.pairs() {
|
|
1437
|
+
if let CapturedParam::Ident(_) = **param.value() {
|
|
1438
|
+
if !trailing_or_empty {
|
|
1439
|
+
<Token![,]>::default().to_tokens(tokens);
|
|
1440
|
+
trailing_or_empty = true;
|
|
1441
|
+
}
|
|
1442
|
+
param.to_tokens(tokens);
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
self.gt_token.to_tokens(tokens);
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
#[cfg(feature = "full")]
|
|
1451
|
+
#[cfg_attr(docsrs, doc(cfg(feature = "printing")))]
|
|
1452
|
+
impl ToTokens for CapturedParam {
|
|
1453
|
+
fn to_tokens(&self, tokens: &mut TokenStream) {
|
|
1454
|
+
match self {
|
|
1455
|
+
CapturedParam::Lifetime(lifetime) => lifetime.to_tokens(tokens),
|
|
1456
|
+
CapturedParam::Ident(ident) => ident.to_tokens(tokens),
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
pub(crate) fn print_const_argument(expr: &Expr, tokens: &mut TokenStream) {
|
|
1462
|
+
match expr {
|
|
1463
|
+
Expr::Lit(expr) => expr.to_tokens(tokens),
|
|
1464
|
+
|
|
1465
|
+
Expr::Path(expr)
|
|
1466
|
+
if expr.attrs.is_empty()
|
|
1467
|
+
&& expr.qself.is_none()
|
|
1468
|
+
&& expr.path.get_ident().is_some() =>
|
|
1469
|
+
{
|
|
1470
|
+
expr.to_tokens(tokens);
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
#[cfg(feature = "full")]
|
|
1474
|
+
Expr::Block(expr) => expr.to_tokens(tokens),
|
|
1475
|
+
|
|
1476
|
+
#[cfg(not(feature = "full"))]
|
|
1477
|
+
Expr::Verbatim(expr) => expr.to_tokens(tokens),
|
|
1478
|
+
|
|
1479
|
+
// ERROR CORRECTION: Add braces to make sure that the
|
|
1480
|
+
// generated code is valid.
|
|
1481
|
+
_ => token::Brace::default().surround(tokens, |tokens| {
|
|
1482
|
+
#[cfg(feature = "full")]
|
|
1483
|
+
expr::printing::print_expr(expr, tokens, FixupContext::new_stmt());
|
|
1484
|
+
|
|
1485
|
+
#[cfg(not(feature = "full"))]
|
|
1486
|
+
expr.to_tokens(tokens);
|
|
1487
|
+
}),
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
}
|