Skip to content

regression: the parameter type impl InferencePredicate may not live long enough #130577

@BoxyUwU

Description

@BoxyUwU
Member
[INFO] [stdout] error[E0309]: the parameter type `impl InferencePredicate` may not live long enough
[INFO] [stdout]   --> src/inference/engine/mod.rs:82:9
[INFO] [stdout]    |
[INFO] [stdout] 66 |   pub trait TagDefinition<'cfg, _Bound = &'cfg Self>:
[INFO] [stdout]    |                           ---- the parameter type `impl InferencePredicate` must be valid for the lifetime `'cfg` as defined here...
[INFO] [stdout] ...
[INFO] [stdout] 82 | /         self.append(InferenceDefinitionPair {
[INFO] [stdout] 83 | |             pred,
[INFO] [stdout] 84 | |             value: TagFn(move |element: &mut Element<'cfg>| element.apply_tags(tags.clone())),
[INFO] [stdout] 85 | |             next: EmptyInferenceDefinition {},
[INFO] [stdout] 86 | |         })
[INFO] [stdout]    | |__________^ ...so that the type `impl InferencePredicate` will meet its required lifetime bounds

note: if the relevant team already accepted this breakage then the issue can be closed

Activity

added
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-typesRelevant to the types team, which will review and decide on the PR/issue.
on Sep 19, 2024
added
I-prioritizeIssue: Indicates that prioritization has been requested for this issue.
needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.
on Sep 19, 2024
compiler-errors

compiler-errors commented on Sep 19, 2024

@compiler-errors
Member

This was a regression in #124336, which was not caught by the crater run.

removed
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
on Sep 19, 2024
removed
needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.
on Sep 19, 2024
removed
I-prioritizeIssue: Indicates that prioritization has been requested for this issue.
on Sep 24, 2024
apiraino

apiraino commented on Oct 7, 2024

@apiraino
Contributor

#124336 is merged and IIUC regressions accepted, so this could be probably be closed around the new stable 1.82 release

added this to the 1.82.0 milestone on Oct 11, 2024
added
regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.
and removed on Nov 22, 2024
added
I-prioritizeIssue: Indicates that prioritization has been requested for this issue.
on Nov 22, 2024

3 remaining items

Loading
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

    T-typesRelevant to the types team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    No projects

    Development

    No branches or pull requests

      Participants

      @compiler-errors@Mark-Simulacrum@apiraino@saethlin@BoxyUwU

      Issue actions

        regression: the parameter type `impl InferencePredicate` may not live long enough · Issue #130577 · rust-lang/rust