diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-05-09 03:10:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-09 03:10:11 +0200 |
| commit | 966589edfc24365d3bcd2e0fff658dcb849de369 (patch) | |
| tree | a007bacdbaff934e1975f26b82ef87a81251b52d /src/test/ui/const-generics/array-size-in-generic-struct-param.rs | |
| parent | 2b3a114633c23acb96f94ed66b620e74b832c19b (diff) | |
| parent | b6d5d1fb7901b4c0fe4c9ffa2854f616fd60e541 (diff) | |
| download | rust-966589edfc24365d3bcd2e0fff658dcb849de369.tar.gz rust-966589edfc24365d3bcd2e0fff658dcb849de369.zip | |
Rollup merge of #71947 - mibac138:dead-code, r=cramertj
Dead-code pass highlights too much of impl functions
Fixes #66627.
Previous diagnostic:
```
error: method is never used: `unused_impl_fn_3`
--> src/main.rs:28:5
|
28 | / fn unused_impl_fn_3(
29 | | var: i32,
30 | | ) {
31 | | println!("bar {}", var);
32 | | }
| |_____^
```
New diagnostic:
```
error: associated function is never used: `unused_impl_fn_3`
--> $DIR/lint-dead-code-6.rs:13:8
|
LL | fn unused_impl_fn_3(
| ^^^^^^^^^^^^^^^^
```
This makes associated functions in line with free-standing functions.
Diffstat (limited to 'src/test/ui/const-generics/array-size-in-generic-struct-param.rs')
0 files changed, 0 insertions, 0 deletions
