Skip to content

[1.38] Placement new syntax no longer parses #62617

Closed

Description

@Mark-Simulacrum

root: mbox 0.3.1; cc @kennytm causes:

  • resin-os/healthdog-rs: start v. end; cc @willnewton

root: rayon-hash 0.2.0 cc @cuviper

  • coder543/xray: start v. end; cc @coder543

Root cause of these on our side is #60803 which removed support for parsing placement new even under #[cfg(false)] and the like. The crater run done there seems to have not found these -- not sure why. We might be testing more now than we were before.

Activity

  1. added
    A-parserArea: The lexing & parsing of Rust source code to an AST
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Jul 12, 2019
  2. kennytm commented on Jul 12, 2019

    @kennytm
    Member

    The <- support in mbox has been removed in 0.5.0.

    The mbox 0.3.1 dependency was introduced by systemd 0.1.0, but the current version is systemd 0.4.0 which doesn't depend on mbox.

    resin-os/healthdog-rs depends on systemd 0.* so a cargo update is enough to remove the broken mbox dependency.

    FYI @willnewton you may want to run cargo update to update the Cargo.lock.

  3. cuviper commented on Jul 12, 2019

    @cuviper
    Member

    root: rayon-hash 0.2.0 cc @cuviper

    • coder543/xray: start v. end; cc @coder543

    rayon-hash came up in #50832 and was fixed in 0.3.0. It's up to 0.5.0 now, and deprecated in favor of hashbrown/rayon anyway. @coder543 should update, if this xray project is at all active.

  4. coder543 commented on Jul 12, 2019

    @coder543

    @cuviper xray is unfortunately not being developed any further at this time

  5. coder543 commented on Jul 12, 2019

    @coder543

    @Mark-Simulacrum those "ccs" you tried to do to tag people don't work because you put them in code blocks, just FYI...

  6. cuviper commented on Jul 12, 2019

    @cuviper
    Member

    @coder543 would you accept a PR bumping dependencies? Otherwise, maybe we should remove this repo from crater's list.

  7. coder543 commented on Jul 12, 2019

    @coder543

    @cuviper yeah, either option would be fine!

  8. Mark-Simulacrum commented on Jul 12, 2019

    @Mark-Simulacrum
    MemberAuthor

    @Mark-Simulacrum those "ccs" you tried to do to tag people don't work because you put them in code blocks, just FYI...

    That's intentional, I try to not ping downstream users before the root cause is assessed and/or addressed by that author.

  9. coder543 commented on Jul 12, 2019

    @coder543

    Updated code has been merged

  10. nagisa commented on Jul 14, 2019

    @nagisa
    Member

    Since this syntax was never proposed for stablisation, I think it is fine to say it is an oversight/bug this unstable syntax was not gated.

    If we decide we cannot feasibly to keep unstable syntax properly gated (because it would not work with cfg, then <- parsing should be restored.

  11. nagisa commented on Jul 14, 2019

    @nagisa
    Member

    We should decide how we want to deal with unstable syntax.

    If unstable syntax like in this particular instance the <- operator, was properly gated, people would have to always use nightly if any code uses features with unstable syntax, even if such uses appeared behind #[cfg]. The current situation ended up not gating the syntax properly which is now causing problems when changing/removing it. Tagging T-lang to make them aware of it.

  12. petrochenkov commented on Jul 14, 2019

    @petrochenkov
    Contributor

    I try to ensure during reviews that new features changing the grammar are gated at parse time.

  13. Mark-Simulacrum commented on Jul 28, 2019

    @Mark-Simulacrum
    MemberAuthor

    Removing T-compiler and nominating for T-lang -- I think we should close this; the ungated syntax landed a long time ago and we're pretty good these days about ensuring that we check grammar early enough that this isn't a problem (as @petrochenkov notes).

  14. added and removed
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on Jul 28, 2019
  15. Centril commented on Aug 1, 2019

    @Centril
    Contributor

    Me, @cramertj, and @qmx agree with @Mark-Simulacrum's rationale and so we'll close this as resolved.

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-parserArea: The lexing & parsing of Rust source code to an ASTT-langRelevant to the language teamregression-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