Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • R redoxfs
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • 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
  • redoxfs
  • Merge requests
  • !53

Make unaligned-reference-avoidance more concise

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open coolreader18 requested to merge coolreader18/redoxfs:unaligned-refs into master Aug 09, 2021
  • Overview 1
  • Commits 1
  • Pipelines 3
  • Changes 2

Doing &{ self.x } has the packed field be copied out and then the reference created to a temporary, as opposed to creating a reference directly to the unaligned field. (let x = self.x; &x vs &self.x basically)

This resolves most of the warnings that pop up when you run make, which makes it less whiplash-y whenever building

Edited Aug 29, 2022 by coolreader18
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: unaligned-refs