Skip to content

Document possible io::ErrorKinds of fs::open - #42925

Merged
bors merged 2 commits into
rust-lang:masterfrom
tbu-:pr_document_file_open_errors
Jul 1, 2017
Merged

Document possible io::ErrorKinds of fs::open#42925
bors merged 2 commits into
rust-lang:masterfrom
tbu-:pr_document_file_open_errors

Conversation

@tbu-

@tbu-tbu- commented Jun 27, 2017

Copy link
Copy Markdown
Contributor

Try to make clear that this isn't an API guarantee for now, as we likely
want to refine these errors in the future, e.g. ENOSPC "No space left
on device".

CC #40322

Try to make clear that this isn't an API guarantee for now, as we likely
want to refine these errors in the future, e.g. `ENOSPC` "No space left
on device".
CC rust-lang#40322
@tbu-

tbu- commented Jun 27, 2017

Copy link
Copy Markdown
ContributorAuthor

I'd also try the other fs function if this format is OK.

@frewsxcvfrewsxcv added A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 27, 2017
@arielb1

Copy link
Copy Markdown
Contributor

r? @GuillaumeGomez

Comment threadsrc/libstd/fs.rs Outdated
/// might change to more specific kinds in the future.
///
/// * `NotFound`: The specified file does not exist and neither `create` or
/// `create_new` is set,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should end in a period

Comment threadsrc/libstd/fs.rs Outdated
/// * Invalid combinations of open options (truncate without write access,
/// no access mode set, etc)
/// circumstances. Some of these error conditions are listed here, together
/// with their [`ErrorKind`]. The mapping to `ErrorKind`s is not part of

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing link to the second ErrorKind.

@GuillaumeGomezGuillaumeGomez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For every type/enum variant, could you add the corresponding url please?

@tbu-

tbu- commented Jun 28, 2017

Copy link
Copy Markdown
ContributorAuthor

Added the URLs.

I had to look at the HTML source in order to find the right links, should I open a rustdoc bug about that?

@GuillaumeGomez

Copy link
Copy Markdown
Member

There is a RFC incoming in order to make links easier to write.

@GuillaumeGomez

Copy link
Copy Markdown
Member

Thanks!

@bors: r+ rollup

@bors

bors commented Jun 28, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 2783d0f has been approved by GuillaumeGomez

Mark-Simulacrum added a commit to Mark-Simulacrum/rust that referenced this pull request Jun 28, 2017
…r=GuillaumeGomez
Document possible `io::ErrorKind`s of `fs::open`
Try to make clear that this isn't an API guarantee for now, as we likely
want to refine these errors in the future, e.g. `ENOSPC` "No space left
on device".
CC rust-lang#40322
@aidanhsaidanhs added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 28, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Jun 29, 2017
…r=GuillaumeGomez
Document possible `io::ErrorKind`s of `fs::open`
Try to make clear that this isn't an API guarantee for now, as we likely
want to refine these errors in the future, e.g. `ENOSPC` "No space left
on device".
CC rust-lang#40322
@frewsxcvfrewsxcv mentioned this pull request Jun 29, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Jun 29, 2017
…r=GuillaumeGomez
Document possible `io::ErrorKind`s of `fs::open`
Try to make clear that this isn't an API guarantee for now, as we likely
want to refine these errors in the future, e.g. `ENOSPC` "No space left
on device".
CC rust-lang#40322
@frewsxcvfrewsxcv mentioned this pull request Jun 29, 2017
frewsxcv added a commit to frewsxcv/rust that referenced this pull request Jun 30, 2017
…r=GuillaumeGomez
Document possible `io::ErrorKind`s of `fs::open`
Try to make clear that this isn't an API guarantee for now, as we likely
want to refine these errors in the future, e.g. `ENOSPC` "No space left
on device".
CC rust-lang#40322
@frewsxcvfrewsxcv mentioned this pull request Jun 30, 2017
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Jun 30, 2017
…r=GuillaumeGomez
Document possible `io::ErrorKind`s of `fs::open`
Try to make clear that this isn't an API guarantee for now, as we likely
want to refine these errors in the future, e.g. `ENOSPC` "No space left
on device".
CC rust-lang#40322
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Jun 30, 2017
…r=GuillaumeGomez
Document possible `io::ErrorKind`s of `fs::open`
Try to make clear that this isn't an API guarantee for now, as we likely
want to refine these errors in the future, e.g. `ENOSPC` "No space left
on device".
CC rust-lang#40322
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Jun 30, 2017
…r=GuillaumeGomez
Document possible `io::ErrorKind`s of `fs::open`
Try to make clear that this isn't an API guarantee for now, as we likely
want to refine these errors in the future, e.g. `ENOSPC` "No space left
on device".
CC rust-lang#40322
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Jun 30, 2017
…r=GuillaumeGomez
Document possible `io::ErrorKind`s of `fs::open`
Try to make clear that this isn't an API guarantee for now, as we likely
want to refine these errors in the future, e.g. `ENOSPC` "No space left
on device".
CC rust-lang#40322
bors added a commit that referenced this pull request Jun 30, 2017
Rollup of 6 pull requests
- Successful merges: #42669, #42911, #42925, #42957, #42985, #42987
- Failed merges: #42936
@bors
bors merged commit 2783d0f into rust-lang:masterJul 1, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsS-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@tbu-@arielb1@GuillaumeGomez@bors@frewsxcv@aidanhs@sfackler