Skip to content

Rust 1.17 regression - chipmunk-0.0.2, invalid fragment specifier #41795

Closed
@brson

Description

@brson

I don't see this already reported but it feels familiar. Looks weird.

https://github.com/TyOverby/chipmunk

brian@ip-10-145-43-250:~/dev/chipmunk⟫ git log -1
commit 8328f04a4cebaaee540aeee7a598a5db675e38b1
Author: Ty Overby <[email protected]>
Date:   Tue Aug 11 19:06:55 2015 -0700

    bump version number
brian@ip-10-145-43-250:/mnt2/dev⟫ rustc +stable -Vv
rustc 1.17.0 (56124baa9 2017-04-24)
binary: rustc
commit-hash: 56124baa9e73f28c0709e59e74783cf234a978cf
commit-date: 2017-04-24
host: x86_64-unknown-linux-gnu
release: 1.17.0
LLVM version: 3.9
brian@ip-10-145-43-250:~/dev/chipmunk⟫ cargo +stable test
   Compiling libc v0.2.22
   Compiling gcc v0.3.45
   Compiling void v1.0.2
   Compiling chipmunk-sys v0.0.4
   Compiling chipmunk v0.0.2 (file:///mnt2/dev/chipmunk)
error: invalid fragment specifier `type`
 --> src/lib.rs:6:21
  |
6 |     ($name:ident <$($typearg:type),*> (&self, $($arg:ident : $typ:ty),*) -> $ret:ty, $(#[$doc:meta])*) => {
  |                     ^^^^^^^^^^^^^
error: invalid fragment specifier `type`
 --> src/lib.rs:6:21
  |
6 |     ($name:ident <$($typearg:type),*> (&self, $($arg:ident : $typ:ty),*) -> $ret:ty, $(#[$doc:meta])*) => {
  |                     ^^^^^^^^^^^^^
  |
  |
  = help: valid fragment specifiers are `ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `path`, `meta`, `tt` and `item`
  = help: valid fragment specifiers are `ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `path`, `meta`, `tt` and `item`


error: invalid fragment specifier `type`
  --> src/lib.rs:34:21
   |
34 |     ($name:ident <$($typearg:type),*> (&mut self, $($arg:ident : $typ:ty),*) -> $ret:ty, $(#[$doc:meta])*) => {
   |                     ^^^^^^^^^^^^^
   |
error: invalid fragment specifier `type`
  --> src/lib.rs:34:21
   |
34 |     ($name:ident <$($typearg:type),*> (&mut self, $($arg:ident : $typ:ty),*) -> $ret:ty, $(#[$doc:meta])*) => {
   |                     ^^^^^^^^^^^^^
   = help: valid fragment specifiers are `ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `path`, `meta`, `tt` and `item`

   |
   = help: valid fragment specifiers are `ident`, `block`, `stmt`, `expr`, `pat`, `ty`, `path`, `meta`, `tt` and `item`

error: aborting due to 2 previous errors

error: aborting due to 2 previous errors

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

cc @TyOverby @jseyfried

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)P-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions