Skip to content

Commit b609f04

Browse files
committed
feat: remove advanced_errs
1 parent 4bebdb5 commit b609f04

File tree

3 files changed

+0
-352
lines changed

3 files changed

+0
-352
lines changed

exercises/advanced_errors/advanced_errs1.rs

Lines changed: 0 additions & 98 deletions
This file was deleted.

exercises/advanced_errors/advanced_errs2.rs

Lines changed: 0 additions & 202 deletions
This file was deleted.

info.toml

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,55 +1061,3 @@ path = "exercises/conversions/as_ref_mut.rs"
10611061
mode = "test"
10621062
hint = """
10631063
Add AsRef<str> as a trait bound to the functions."""
1064-
1065-
# ADVANCED ERRORS
1066-
1067-
[[exercises]]
1068-
name = "advanced_errs1"
1069-
path = "exercises/advanced_errors/advanced_errs1.rs"
1070-
mode = "test"
1071-
hint = """
1072-
This exercise uses an updated version of the code in errors6. The parsing
1073-
code is now in an implementation of the `FromStr` trait. Note that the
1074-
parsing code uses `?` directly, without any calls to `map_err()`. There is
1075-
one partial implementation of the `From` trait example that you should
1076-
complete.
1077-
1078-
Details: The `?` operator calls `From::from()` on the error type to convert
1079-
it to the error type of the return type of the surrounding function.
1080-
1081-
Hint: You will need to write another implementation of `From` that has a
1082-
different input type.
1083-
"""
1084-
1085-
[[exercises]]
1086-
name = "advanced_errs2"
1087-
path = "exercises/advanced_errors/advanced_errs2.rs"
1088-
mode = "test"
1089-
hint = """
1090-
This exercise demonstrates a few traits that are useful for custom error
1091-
types to implement. These traits make it easier for other code to consume
1092-
the custom error type.
1093-
1094-
Follow the steps in the comment near the top of the file. You will have to
1095-
supply a missing trait implementation, and complete a few incomplete ones.
1096-
1097-
You may find these pages to be helpful references:
1098-
https://doc.rust-lang.org/stable/rust-by-example/error/multiple_error_types/define_error_type.html
1099-
https://doc.rust-lang.org/stable/rust-by-example/error/multiple_error_types/boxing_errors.html
1100-
https://doc.rust-lang.org/stable/rust-by-example/error/multiple_error_types/wrap_error.html
1101-
1102-
Hint: What trait must our error type have for `main()` to return the return
1103-
type that it returns?
1104-
1105-
Another hint: It's not necessary to implement any methods inside the missing
1106-
trait. (Some methods have default implementations that are supplied by the
1107-
trait.)
1108-
1109-
Another hint: Consult the tests to determine which error variants (and which
1110-
error message text) to produce for certain error conditions.
1111-
1112-
Challenge: There is one test that is marked `#[ignore]`. Can you supply the
1113-
missing code that will make it pass? You may want to consult the standard
1114-
library documentation for a certain trait for more hints.
1115-
"""

0 commit comments

Comments
 (0)