Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
D
drivers
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 6
    • Merge Requests 6
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • redox-os
  • drivers
  • Issues
  • #24

Closed
Open
Opened Jan 29, 2018 by Jeremy Soller@jackpot51Owner

pcid failed

Created by: BearzRobotics

So upon trying to build again, I ran into another error. It seems in the last push there is a block of code the compiler is suggesting needs to be in an unsafe function or block.

repo - building drivers cook - drivers build Compiling pcid v0.1.0 (file:///home/ubuntu/redox/cookbook/recipes/drivers/build/pcid) error: borrow of packed field requires unsafe function or block (error E0133) --> pcid/src/main.rs:131:60 | 131 | match PciBar::from(header.bars[i]) { | ^^^^^^^^^^^ note: lint level defined here --> pcid/src/main.rs:1:9 | 1 | #![deny(warnings)] | ^^^^^^^^ = note: #[deny(safe_packed_borrows)] implied by #[deny(warnings)] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #46043 https://github.com/rust-lang/rust/issues/46043

error: aborting due to previous error error: Could not compile pcid.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: redox-os/drivers#24