Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
brson opened this issue May 6, 2017 · 7 comments
Closed

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

brson opened this issue May 6, 2017 · 7 comments
Labels
A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) P-medium Medium priority regression-from-stable-to-stable Performance or correctness regression from one stable version to another. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@brson
Copy link
Contributor

brson commented May 6, 2017

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 <ty@pre-alpha.com>
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

@brson brson added the regression-from-stable-to-stable Performance or correctness regression from one stable version to another. label May 6, 2017
@TyOverby
Copy link
Contributor

TyOverby commented May 7, 2017

weird, looks like this never should have compiled

@arielb1 arielb1 added I-nominated T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 18, 2017
@nagisa
Copy link
Member

nagisa commented May 18, 2017

cc @jseyfried

@jseyfried
Copy link
Contributor

This looks like it was caused by #39419, specifically fixing #39404.

@nikomatsakis
Copy link
Contributor

@jseyfried so is this a bug fix? If so, can we close?

@nikomatsakis
Copy link
Contributor

Sure looks like a bug fix to me :)

@nikomatsakis
Copy link
Contributor

triage: P-medium

But probably this can be closed.

@rust-highfive rust-highfive added P-medium Medium priority and removed I-nominated labels May 25, 2017
@jseyfried
Copy link
Contributor

@nikomatsakis Yeah, this is a bug fix and I think we can close. The alternative would be a warning cycle, which is doable but probably not worth it.

@brson brson added the A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) label Jun 1, 2017
@brson brson closed this as completed Jun 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-macros Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..) P-medium Medium priority regression-from-stable-to-stable Performance or correctness regression from one stable version to another. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

7 participants