Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • S syscall
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • redox-osredox-os
  • syscall
  • Merge requests
  • !43

Allow Mmio to work with const fn

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged 4lDO2 requested to merge 4lDO2/syscall:improved-mmio into master Feb 10, 2020
  • Overview 0
  • Commits 2
  • Pipelines 1
  • Changes 2

Allows Mmio to be initialized in const contexts, using Mmio::from. Also adds Mmio::uninit (replacement for Mmio::new), Mmio::zeroed, Mmio::from (const fn), and deprecates Mmio::new because it's unsound as Mmios can be dereferenced any time.

Allows syscall::Result to optionally take a different error parameter as well, by changing

type Result<T> = result::Result<T, Error>;

to

type Result<T, E = Error> = result::Result<T, E>;
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: improved-mmio