about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
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/test/incremental/thinlto
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/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions