-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Consider using Result for FromStr, FromStrRadix and friends #15138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
cc me |
bors
added a commit
that referenced
this issue
Jul 5, 2014
See commits for info, a number of these are 'breaking', although liburl is marked experimental so I'm not sure that matters so much. First two commits will be impacted if #15138 is adopted, but it's a simple rename.
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Jan 30, 2015
This commits adds an associated type to the `FromStr` trait representing an error payload for parses which do not succeed. The previous return value, `Option<Self>` did not allow for this form of payload. After the associated type was added, the following attributes were applied: * `FromStr` is now stable * `FromStr::Err` is now stable * `FromStr::from_str` is now stable * `StrExt::parse` is now stable * `FromStr for bool` is now stable * `FromStr for $float` is now stable * `FromStr for $integral` is now stable * Errors returned from stable `FromStr` implementations are stable * Errors implement `Display` and `Error` (both impl blocks being `#[stable]`) Closes rust-lang#15138
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Jan 30, 2015
This commits adds an associated type to the `FromStr` trait representing an error payload for parses which do not succeed. The previous return value, `Option<Self>` did not allow for this form of payload. After the associated type was added, the following attributes were applied: * `FromStr` is now stable * `FromStr::Err` is now stable * `FromStr::from_str` is now stable * `StrExt::parse` is now stable * `FromStr for bool` is now stable * `FromStr for $float` is now stable * `FromStr for $integral` is now stable * Errors returned from stable `FromStr` implementations are stable * Errors implement `Display` and `Error` (both impl blocks being `#[stable]`) Closes rust-lang#15138
dlrobertson
pushed a commit
to dlrobertson/rust
that referenced
this issue
Nov 29, 2018
This commits adds an associated type to the `FromStr` trait representing an error payload for parses which do not succeed. The previous return value, `Option<Self>` did not allow for this form of payload. After the associated type was added, the following attributes were applied: * `FromStr` is now stable * `FromStr::Err` is now stable * `FromStr::from_str` is now stable * `StrExt::parse` is now stable * `FromStr for bool` is now stable * `FromStr for $float` is now stable * `FromStr for $integral` is now stable * Errors returned from stable `FromStr` implementations are stable * Errors implement `Display` and `Error` (both impl blocks being `#[stable]`) Closes rust-lang#15138
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jul 17, 2023
…Env-to-runnables-extraEnv, r=Veykril 13583 rename runnable env to runnables extra env closes rust-lang#13583
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
During https://github.com/rust-lang/rust/wiki/Meeting-API-review-2014-06-23#uint, these functions failed review because some people felt that they should be returning
Result
instead ofOption
.The text was updated successfully, but these errors were encountered: