about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-10-29 05:41:05 -0700
committerGitHub <noreply@github.com>2016-10-29 05:41:05 -0700
commit75a87c54d0d6a2fa0d5a576a2fa6e03ff23e5f03 (patch)
tree7e925323526d1a3c01e51d56aeba905442e1d553 /src/tools
parent5db21c3af66ccd6d3c48d420a036c65e6f7711ed (diff)
parent4ca11ce196d07206852a265d6a0546569de88912 (diff)
downloadrust-75a87c54d0d6a2fa0d5a576a2fa6e03ff23e5f03.tar.gz
rust-75a87c54d0d6a2fa0d5a576a2fa6e03ff23e5f03.zip
Auto merge of #37378 - petrochenkov:nopat, r=eddyb
Prohibit patterns in trait methods without bodies

They are not properly type checked
```rust
trait Tr {
    fn f(&a: u8); // <- This compiles
}
```
, mostly rejected by the parser already and generally don't make much sense.
This PR is kind of a missing part of https://github.com/rust-lang/rust/pull/35015.

Given the [statistics from crater](https://github.com/rust-lang/rust/pull/37378#issuecomment-256154994), the effect of this PR is mostly equivalent to improving `unused_mut` lint.

cc https://github.com/rust-lang/rust/issues/35078#issuecomment-255707355 https://github.com/rust-lang/rust/pull/35015 https://github.com/rust-lang/rfcs/pull/1685 https://github.com/rust-lang/rust/issues/35203
r? @eddyb
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/cargotest/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/cargotest/main.rs b/src/tools/cargotest/main.rs
index 978e991d508..800186a926d 100644
--- a/src/tools/cargotest/main.rs
+++ b/src/tools/cargotest/main.rs
@@ -24,7 +24,7 @@ struct Test {
 const TEST_REPOS: &'static [Test] = &[Test {
                                           name: "cargo",
                                           repo: "https://github.com/rust-lang/cargo",
-                                          sha: "d3bad1ab29efae414e9b4c24534b2d02b3a59782",
+                                          sha: "806e3c368a15f618244a3b4e918bf77f9c403fd0",
                                           lock: None,
                                       },
                                       Test {