Skip to content

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

Closed
@brson

Description

@brson

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

brian@ip-10-145-43-250:~/dev/rustasm6502⟫ git log -1
commit e2e2d558b251e728232273f8019f5a37eb2e112e
Author: Jonas Schievink <[email protected]>
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

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