Skip to content
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

More ErrorKinds for common errnos #79965

Merged
merged 17 commits into from
Jul 3, 2021
Merged

More ErrorKinds for common errnos #79965

merged 17 commits into from
Jul 3, 2021

Commits on Jun 15, 2021

  1. Configuration menu
    Copy the full SHA
    0b37bb2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    82d3ef1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a0d11a4 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2021

  1. ErrorKind: Reformat the error string table

    * Sort alphabetically.
    * use ErrorKind::*;
    
    Signed-off-by: Ian Jackson <[email protected]>
    ijackson committed Jun 18, 2021
    Configuration menu
    Copy the full SHA
    f092501 View commit details
    Browse the repository at this point in the history
  2. ErrorKind: Reformat the mapping table (unix)

    * Sort the single matches alphabetically.
    * use ErrorKind::*;
    
    Signed-off-by: Ian Jackson <[email protected]>
    ijackson committed Jun 18, 2021
    Configuration menu
    Copy the full SHA
    5513faa View commit details
    Browse the repository at this point in the history
  3. ErrorKind: Reformat the mapping table (windows)

    use ErrorKind::*;
    
    I don't feel confident enough about Windows things to reorder this
    alphabetically
    
    Signed-off-by: Ian Jackson <[email protected]>
    ijackson committed Jun 18, 2021
    Configuration menu
    Copy the full SHA
    d59d52e View commit details
    Browse the repository at this point in the history
  4. ErrorKind: Fix a spurious space

    Signed-off-by: Ian Jackson <[email protected]>
    ijackson committed Jun 18, 2021
    Configuration menu
    Copy the full SHA
    2a38dfb View commit details
    Browse the repository at this point in the history
  5. windows errors: Change type name for ERROR_SHARING_VIOLATION

    DWORD is a type alias for u32, so this makes no difference.
    But this entry is anomalous and in my forthcoming commits I am going
    to import many errors wholesale, and I spotted that my wholesale
    import didn't match what was here.
    
    CC: Chris Denton <[email protected]>
    Signed-off-by: Ian Jackson <[email protected]>
    ijackson committed Jun 18, 2021
    Configuration menu
    Copy the full SHA
    e7fb1a7 View commit details
    Browse the repository at this point in the history
  6. Windows error codes: Move to a separate module

    We're going to add many more of these.
    
    This commit is pure code motion, plus the necessary administrivia, as
    I have veried with the following runes:
    
      $ git-diff HEAD~ | grep '^+' |sort >plus
      $ git-diff HEAD~ | grep '^-' | perl -pe 's/^-/+/' |sort >min
      $ diff -ub min plus |less
    
    The output is precisely the expected `mod` and `use` directives.
    
    Signed-off-by: Ian Jackson <[email protected]>
    ijackson committed Jun 18, 2021
    Configuration menu
    Copy the full SHA
    9580f33 View commit details
    Browse the repository at this point in the history
  7. Windows error codes: Add very very many from mingw

    Dump mingw-64's error codes into our source tree.
    
    I have verified with these runes:
    
      $ f=library/std/src/sys/windows/c/errors.rs
      $ diff -ub <(git-cat-file blob HEAD~:$f | sort) <(cat $f | perl -pe 's/WSABASEERR \+ (\d+)/10000 + $1/e' |sort) |grep ^- |less
    
    that this does not change any existing values.
    
    Signed-off-by: Ian Jackson <[email protected]>
    ijackson committed Jun 18, 2021
    Configuration menu
    Copy the full SHA
    8a4b1e4 View commit details
    Browse the repository at this point in the history
  8. Windows error codes: Add two missing ones

    For some reason these aren't in the mingw list.
    
    We'll need them shortly.
    
    Signed-off-by: Ian Jackson <[email protected]>
    ijackson committed Jun 18, 2021
    Configuration menu
    Copy the full SHA
    655053e View commit details
    Browse the repository at this point in the history
  9. ErrorKind: Provide many more ErrorKinds, motivated by Unix errnos

    Rationale for the mappings etc. is extensively discussed in the MR
      rust-lang#79965
    
    Signed-off-by: Ian Jackson <[email protected]>
    ijackson committed Jun 18, 2021
    Configuration menu
    Copy the full SHA
    1ec9454 View commit details
    Browse the repository at this point in the history
  10. ErrorKind: Windows: Fix botched rebase

    Signed-off-by: Ian Jackson <[email protected]>
    ijackson committed Jun 18, 2021
    Configuration menu
    Copy the full SHA
    58d0cec View commit details
    Browse the repository at this point in the history
  11. ErrorKind: Windows: Fix tidy

    Signed-off-by: Ian Jackson <[email protected]>
    ijackson committed Jun 18, 2021
    Configuration menu
    Copy the full SHA
    622a45d View commit details
    Browse the repository at this point in the history
  12. ErrorKind::NotSeekable: Fix reference to File::open()

    Signed-off-by: Ian Jackson <[email protected]>
    ijackson committed Jun 18, 2021
    Configuration menu
    Copy the full SHA
    c8bddf3 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2021

  1. ErrorKind::FilesystemLoop: Generalise dscription

    Signed-off-by: Ian Jackson <[email protected]>
    ijackson committed Jun 20, 2021
    Configuration menu
    Copy the full SHA
    f00975e View commit details
    Browse the repository at this point in the history
  2. ErrorKind: Add missing full stops

    Signed-off-by: Ian Jackson <[email protected]>
    ijackson committed Jun 20, 2021
    Configuration menu
    Copy the full SHA
    333d42d View commit details
    Browse the repository at this point in the history