Skip to content

regression: visibility qualifiers are not permitted #121607

Closed

Description

@Mark-Simulacrum
[INFO] [stdout] error[E0449]: visibility qualifiers are not permitted here
[INFO] [stdout]    --> src/par_stream.rs:647:16
[INFO] [stdout]     |
[INFO] [stdout] 647 |                   pool.spawn(FnOnce!(move |pool: &P::ThreadPool| {
[INFO] [stdout]     |  ____________________________^
[INFO] [stdout] 648 | |                     let mut process_tasks = tasks.into_iter();
[INFO] [stdout] 649 | |
[INFO] [stdout] 650 | |                     let mut tasks = (0..pool.threads()).map(|_| Vec::new()).collect::<Vec<_>>();
[INFO] [stdout] ...   |
[INFO] [stdout] 719 | |                     }
[INFO] [stdout] 720 | |                 }))
[INFO] [stdout]     | |__________________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: trait items always share the visibility of their trait
[INFO] [stdout]     = note: this error originates in the macro `FnOnce` (in Nightly builds, run with -Z macro-backtrace for more info)

Activity

  1. added
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    E-needs-bisectionCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc
    E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
    on Feb 25, 2024
  2. added this to the 1.77.0 milestone on Feb 25, 2024
  3. added
    I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Feb 25, 2024
  4. lukas-code commented on Feb 25, 2024

    @lukas-code
    Contributor

    minimized: (playground)

    trait Foo {
        fn foo() {
            pub struct Bar;
            impl Bar {
                pub fn bar() {}
            }
        }
    }

    bisects to #119505 cc @fmease

    @rustbot label -E-needs-bisection -E-needs-mcve S-has-mcve A-visibility

  5. added
    A-visibilityArea: Visibility / privacy
    S-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issue
    and removed
    E-needs-bisectionCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc
    E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
    on Feb 25, 2024
  6. removed
    needs-triageThis issue may need triage. Remove when done. See docs forge.rust-lang.org/release/issue-triaging
    on Feb 26, 2024
  7. self-assigned this
    on Feb 26, 2024
  8. fmease commented on Feb 26, 2024

    @fmease
    Member

    I already have a PR fixing this, namely #120698. I'd like to improve the approach though, that's why it's waiting on author atm.

    I've been aware of this regression (cc #119924) but I should definitely prioritize the PR then.

  9. apiraino commented on Feb 26, 2024

    @apiraino
    Contributor

    WG-prioritization assigning priority (Zulip discussion)

    Thanks @fmease and @compiler-errors for jumping on this!

    @rustbot label -I-prioritize +P-critical

  10. added and removed
    I-prioritizeIssue needs a team member to assess the impact. Will be replaced by P-{low,medium,high,critical}
    on Feb 26, 2024
  11. fmease commented on Feb 29, 2024

    @fmease
    Member

    Downgrading the priority as discussed here.

  12. added
    P-highHigh priority
    and removed on Feb 29, 2024
  13. added a commit that references this issue on Mar 7, 2024
  14. added a commit that references this issue on Mar 8, 2024
  15. fmease commented on Mar 15, 2024

    @fmease
    Member

    Fixed by #122004.
    Backported in #122524.
    Closing as completed.

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

Metadata

Metadata

Assignees

Labels

A-visibilityArea: Visibility / privacyP-highHigh priorityS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueT-compilerRelevant to the compiler 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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions