Skip to content

Rust 1.18 regression, rustasm6502 0.1.2, no rules expected token 'main' #41803

Closed

Description

@brson

https://github.com/jonas-schievink/rustasm6502

brian@ip-10-145-43-250:~/dev/rustasm6502⟫ git log -1
commit e2e2d558b251e728232273f8019f5a37eb2e112e
Author: Jonas Schievink <jonasschievink@gmail.com>
Date:   Wed Aug 10 23:04:27 2016 +0200

    Update my email
brian@ip-10-145-43-250:/mnt2/dev⟫ rustc +beta -Vv
rustc 1.18.0-beta.1 (4dce67253 2017-04-25)
binary: rustc
commit-hash: 4dce67253d67785c74c8d270c38d774edd0deed8
commit-date: 2017-04-25
host: x86_64-unknown-linux-gnu
release: 1.18.0-beta.1
LLVM version: 3.9

brian@ip-10-145-43-250:~/dev/rustasm6502⟫ cargo +beta test
   Compiling rustasm6502 v0.1.1 (file:///mnt2/dev/rustasm6502)
error: no rules expected the token `main`
    --> src/lib.rs:1083:24
     |
1083 |     assert_eq!(my_map!(main), 0);
     |                --------^^^^- in this macro invocation

error: Could not compile `rustasm6502`.
Build failed, waiting for other jobs to finish...
error: build failed

cc @jonas-schievink @jseyfried

Activity

  1. changed the title [-]Rust 1.18 regression, rustasm6502 0.1.2[/-] [+]Rust 1.18 regression, rustasm6502 0.1.2, no rules expected token 'main'[/+] on May 7, 2017
  2. jonas-schievink commented on May 7, 2017

    @jonas-schievink
    Contributor

    I've turned on nightly Travis builds so I get notified when something breaks in the future. This crate seems like a good candidate for finding regressions in macros earlier.

  3. Mark-Simulacrum commented on May 8, 2017

    @Mark-Simulacrum
    Member

    Introduced by fe15119 -- #40597, cc @jseyfried

  4. self-assigned this
    on May 8, 2017
  5. added
    P-highHigh priority
    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
    on May 8, 2017
  6. nikomatsakis commented on May 11, 2017

    @nikomatsakis
    Contributor

    @jseyfried -- any progress? should somebody else take a look?

  7. self-assigned this
    on May 11, 2017
  8. jseyfried commented on May 15, 2017

    @jseyfried
    Contributor

    Fixed in #42005.

  9. added 2 commits that reference this issue on May 16, 2017
    747f7d2
    6b4f3a7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P-highHigh priorityT-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

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions