Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Tor Tor
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 832
    • Issues 832
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 36
    • Merge requests 36
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The Tor Project
  • Core
  • TorTor
  • Issues
  • #24761

Closed
Open
Created Dec 29, 2017 by teor@teor

rust: protover.rs needs retain_hash_collection to build with older rustc versions

I was using rustc 1.19.0-nightly on master and received the following warning:

   Compiling protover v0.0.1 (file:///Users/twilsonb/tor/tor-rust/src/rust/protover)
error: use of unstable library feature 'retain_hash_collection' (see issue #36648)
   --> protover/protover.rs:259:10
    |
259 |     vers.retain(|x| !supported_versions.contains(x));
    |          ^^^^^^
    |
    = help: add #![feature(retain_hash_collection)] to the crate attributes to enable

When I added the feature declaration, everything worked fine and the tests passed.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking