Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upProhibit patterns in trait methods without bodies #37378
Conversation
rust-highfive
assigned
eddyb
Oct 24, 2016
This comment has been minimized.
This comment has been minimized.
|
Started crater run. |
This comment has been minimized.
This comment has been minimized.
|
Crater run looks pretty bad (177 root regressions). |
petrochenkov
force-pushed the
petrochenkov:nopat
branch
from
f4cc508
to
e41f9c9
Oct 24, 2016
This comment has been minimized.
This comment has been minimized.
|
Something is wrong with root/non-root partitioning in crater. Anyway, it looks like we can't make this an error in the nearest future, but I still hope to proceed with a warn-by-default lint. |
This comment has been minimized.
This comment has been minimized.
|
@petrochenkov Maybe they don't show themselves? They might be broken or missing? EDIT: started a second run, only on the "after" half. |
bluss
referenced this pull request
Oct 24, 2016
Merged
traits: Remove pattern in trait's method signature #238
homu
added a commit
to rust-num/num
that referenced
this pull request
Oct 24, 2016
This comment has been minimized.
This comment has been minimized.
|
Second crater report shows only 22 root regressions. |
petrochenkov
referenced this pull request
Oct 25, 2016
Open
Tracking issue for patterns in functions without body #35203
petrochenkov
force-pushed the
petrochenkov:nopat
branch
from
e41f9c9
to
82d4200
Oct 25, 2016
This comment has been minimized.
This comment has been minimized.
|
I've updated the PR with warning-by-default and tracking issue number. |
This comment has been minimized.
This comment has been minimized.
|
@bors r+ |
This comment has been minimized.
This comment has been minimized.
|
|
Manishearth
added a commit
to Manishearth/rust
that referenced
this pull request
Oct 26, 2016
Manishearth
added a commit
to Manishearth/rust
that referenced
this pull request
Oct 26, 2016
This comment has been minimized.
This comment has been minimized.
|
Fails tidy, d230a7e |
This comment has been minimized.
This comment has been minimized.
|
The used error code ( |
Manishearth
reviewed
Oct 26, 2016
| @@ -228,4 +228,5 @@ pub impl Foo for Bar { | |||
| register_diagnostics! { | |||
| E0472, // asm! is unsupported on this target | |||
| E0561, // patterns aren't allowed in function pointer types | |||
| E0570, // patterns aren't allowed in methods without bodies | |||
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Oct 26, 2016
This comment has been minimized.
This comment has been minimized.
|
I believe this caused #37416 to fail https://buildbot.rust-lang.org/builders/auto-win-msvc-64-cargotest/builds/2155
|
bors
added a commit
to rust-lang/cargo
that referenced
this pull request
Oct 26, 2016
petrochenkov
force-pushed the
petrochenkov:nopat
branch
from
82d4200
to
811a2b9
Oct 26, 2016
This comment has been minimized.
This comment has been minimized.
|
@bors r=eddyb |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Oct 29, 2016
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
This probably needs to update the sha at https://github.com/rust-lang/rust/blob/master/src/tools/cargotest/main.rs#L27 to at least rust-lang/cargo@806e3c3 |
This comment has been minimized.
This comment has been minimized.
|
@bors r=eddyb |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Oct 29, 2016
This comment has been minimized.
This comment has been minimized.
bors
merged commit 4ca11ce
into
rust-lang:master
Oct 29, 2016
bors
referenced this pull request
Oct 29, 2016
Merged
detect extra region requirements in impls #37167
This comment has been minimized.
This comment has been minimized.
WaDelma
commented
Nov 14, 2016
•
|
@petrochenkov Edit. Ah the first one was broken already from rustc-serialize and num-traits and didn't reveal that the crate would fail to build even without them... (And this is why I would really like central place to check crater runs...) |
This comment has been minimized.
This comment has been minimized.
|
@WaDelma
, anonymous parameters
are not reported (yet, waiting for rust-lang/rfcs#1685). |
This comment has been minimized.
This comment has been minimized.
WaDelma
commented
Nov 14, 2016
|
Ah okay. That was the part I was missing. :D |
petrochenkov commentedOct 24, 2016
•
edited
They are not properly type checked
, mostly rejected by the parser already and generally don't make much sense.
This PR is kind of a missing part of #35015.
Given the statistics from crater, the effect of this PR is mostly equivalent to improving
unused_mutlint.cc #35078 (comment) #35015 rust-lang/rfcs#1685 #35203
r? @eddyb