Skip to content

nll: incorrect unused-mut warnings #51918

Closed

Description

@nikomatsakis

There are a lot of incorrect unused_mut warnings coming up. I'm going to make this meta-bug for tracking them because it's very unclear how many underlying issues there are:

Activity

  1. added
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    NLL-completeWorking towards the "valid code works" goal
    on Jun 29, 2018
  2. matthewjasper commented on Jun 29, 2018

    @matthewjasper
    Contributor

    There are at least two different issues here it seems:

    fn foo(ref x: i32) {}
    
    fn bar() {
        let mut x = 0;
        move || {
            x = 1;
        };
    }

    I'll try to have a PR for the first one over the weekend.
    The second one requires move investigation, because the code is certainly trying to avoid linting in this case.

  3. added
    C-enhancementCategory: An issue proposing an enhancement or a PR with one.
    A-NLLArea: Non-lexical lifetimes (NLL)
    on Jul 3, 2018
  4. added a commit that references this issue on Jul 5, 2018
  5. nikomatsakis commented on Jul 6, 2018

    @nikomatsakis
    ContributorAuthor

    @matthewjasper what remains now that your PR landed?

  6. matthewjasper commented on Jul 6, 2018

    @matthewjasper
    Contributor

    I don't think there are any more bugs. I think this is just waiting for this to be on nightly a few days to be sure.

  7. nikomatsakis commented on Jul 17, 2018

    @nikomatsakis
    ContributorAuthor

    Closing as fixed then. @matthewjasper let me know if you think that's wrong!

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

Metadata

Metadata

Assignees

Labels

A-NLLArea: Non-lexical lifetimes (NLL)C-enhancementCategory: An issue proposing an enhancement or a PR with one.NLL-completeWorking towards the "valid code works" goalT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions