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
  • alloc
  • vec
  • partial_eq.rs
Find file BlameHistoryPermalink
  • Miguel Ojeda's avatar
    rust: adapt `alloc` crate to the kernel · 057b8d25
    Miguel Ojeda authored Jul 03, 2021
    
    
    This customizes the subset of the Rust standard library `alloc` that
    was just imported as-is, mainly by:
    
      - Adding SPDX license identifiers.
    
      - Skipping modules (e.g. `rc` and `sync`) via new `cfg`s.
    
      - Adding fallible (`try_*`) versions of existing infallible methods
        (i.e. returning a `Result` instead of panicking).
    
        Since the standard library requires stable/unstable attributes,
        these additions are annotated with:
    
            #[stable(feature = "kernel", since = "1.0.0")]
    
        Using "kernel" as the feature allows to have the additions
        clearly marked. The "1.0.0" version is just a placeholder.
    
        (At the moment, only one is needed, but in the future more
        fallible methods will be added).
    
    Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    Co-developed-by: default avatarAlex Gaynor <alex.gaynor@gmail.com>
    Signed-off-by: default avatarAlex Gaynor <alex.gaynor@gmail.com>
    Co-developed-by: default avatarWedson Almeida Filho <wedsonaf@google.com>
    Signed-off-by: default avatarWedson Almeida Filho <wedsonaf@google.com>
    Co-developed-by: default avatarGary Guo <gary@garyguo.net>
    Signed-off-by: default avatarGary Guo <gary@garyguo.net>
    Co-developed-by: default avatarMatthew Bakhtiari <dev@mtbk.me>
    Signed-off-by: default avatarMatthew Bakhtiari <dev@mtbk.me>
    Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
    057b8d25
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7