Skip to content

1.99 beta crater regression: "type annotations needed" #161913

Description

@theemathas

This regression was found by the 1.99 crater run.

[INFO] [stdout] error[E0282]: type annotations needed for `&_`
[INFO] [stdout]    --> src/sync/mcast.rs:172:65
[INFO] [stdout]     |
[INFO] [stdout] 172 |     let reader = MpMcastReader::new(DynRef::new(queue.clone(), |q| q.as_ref()));
[INFO] [stdout]     |                                                                 ^  - type must be known at this point
[INFO] [stdout]     |
[INFO] [stdout] help: consider giving this closure parameter an explicit type, where the type for type parameter `Q` is specified
[INFO] [stdout]     |
[INFO] [stdout] 172 |     let reader = MpMcastReader::new(DynRef::new(queue.clone(), |q: &Q| q.as_ref()));
[INFO] [stdout]     |                                                                  ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0282`.

Affects the Banyc/primitive crate, and its 7 dependents, all by the same author.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-inferenceArea: Type inferenceC-bugCategory: This is a bug.P-highHigh priorityS-has-bisectionStatus: A bisection has been found for this issueS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueT-typesRelevant to the types team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions