Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • rust
  • kernel
  • error.rs
Find file BlameHistoryPermalink
  • Gary Guo's avatar
    rust: error: `impl Debug` for `Error` with `errname()` integration · d2e3115d
    Gary Guo authored May 31, 2023
    
    
    Integrate the `Error` type with `errname()` by providing a new
    `name()` method.
    
    Then, implement `Debug` for the type using the new method.
    
    [ Miguel: under `CONFIG_SYMBOLIC_ERRNAME=n`, `errname()` is a
      `static inline`, so added a helper to support that case,
      like we had in the `rust` branch. Also moved `#include` up
      and reworded commit message for clarity. ]
    
    Co-developed-by: default avatarWedson Almeida Filho <walmeida@microsoft.com>
    Signed-off-by: default avatarWedson Almeida Filho <walmeida@microsoft.com>
    Co-developed-by: default avatarSven Van Asbroeck <thesven73@gmail.com>
    Signed-off-by: default avatarSven Van Asbroeck <thesven73@gmail.com>
    Signed-off-by: default avatarGary Guo <gary@garyguo.net>
    Signed-off-by: default avatarAlice Ryhl <aliceryhl@google.com>
    Reviewed-by: default avatarMartin Rodriguez Reboredo <yakoyoku@gmail.com>
    Link: https://lore.kernel.org/r/20230531174450.3733220-1-aliceryhl@google.com
    
    
    Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
    d2e3115d
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7