error unreachable code typify-impl-0.3.0/src/defaults.rs:617
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 32/100
Research direction
Reproduce the failure using src/pdl/pdl-schema.json, then inspect typify_impl::defaults::all_props at defaults.rs:617 and its callers validate_default_struct_props and TypeEntry::validate_value. Trace why this schema reaches unreachable code; done means the conversion handles the schema without panicking, with coverage for the failing case.
Written by the indexing model from the issue text.
Description
Failure on this file: https://github.com/IBM/prompt-declaration-language/blob/main/src/pdl/pdl-schema.json
Yields:
The application panicked (crashed).
Message: internal error: entered unreachable code
Location: .../typify-impl-0.3.0/src/defaults.rs:617
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⋮ 9 frames hidden ⋮
10: core::panicking::panic::h86f2c7562f835270
at <unknown source file>:<unknown line>
11: typify_impl::defaults::all_props::h647a2c987b6b5099
at <unknown source file>:<unknown line>
12: core::iter::traits::iterator::Iterator::partition::h76bae029f532694b
at <unknown source file>:<unknown line>
13: typify_impl::defaults::validate_default_struct_props::h5fa16b5309cab98b
at <unknown source file>:<unknown line>
14: typify_impl::defaults::<impl typify_impl::type_entry::TypeEntry>::validate_value::h10dd1ce96836d6af
at <unknown source file>:<unknown line>
15: typify_impl::type_entry::TypeEntry::finalize::hb5d061af738489d4
at <unknown source file>:<unknown line>
16: typify_impl::TypeSpace::add_root_schema::h7ae0c8a65c639579
at <unknown source file>:<unknown line>
17: cargo_typify::convert::h2d67cc9632085cad
at <unknown source file>:<unknown line>
18: cargo_typify::main::h23a9931923f86f5a
at <unknown source file>:<unknown line>
19: std::sys::backtrace::__rust_begin_short_backtrace::hd696147650c8a01b
at <unknown source file>:<unknown line>
20: std::rt::lang_start::{{closure}}::h11e36174c128a59c
at <unknown source file>:<unknown line>
21: std::rt::lang_start_internal::h5f91760815528aa2
at <unknown source file>:<unknown line>
22: _main<unknown>
at <unknown source file>:<unknown line>
- Dominant language
- Rust
- Stars
- 898
- Forks
- 114
- Avg merge
- 4h 18m
- Merged PRs (30d)
- 14
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from oxidecomputer/typify
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
oxidecomputer/typify#1077 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
oxidecomputer/typify#1075 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 50/100
oxidecomputer/typify#1060 ·
-
Difficulty 5/5 Over a week Newbie friendliness 48/100
oxidecomputer/typify#1059 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
oxidecomputer/typify#1022 · 1 comment ·
All issues in oxidecomputer/typify
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ontola/atomic-server#1625 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
VirusTotal/yara-x#777 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
stratum-mining/stratum#2404 ·
-
bug ci good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100