|
1 | 1 | warning: bounds on generic type parameters are ignored in type aliases
|
2 |
| - --> $DIR/param-bounds-ignored.rs:16:14 |
| 2 | + --> $DIR/param-bounds-ignored.rs:17:14 |
3 | 3 | |
|
4 |
| -16 | type SVec<T: Send+Send> = Vec<T>; |
| 4 | +17 | type SVec<T: Send+Send> = Vec<T>; |
5 | 5 | | ^^^^ ^^^^
|
6 | 6 | |
|
7 |
| - = note: #[warn(ignored_generic_bounds)] on by default |
| 7 | +note: lint level defined here |
| 8 | + --> $DIR/param-bounds-ignored.rs:13:9 |
| 9 | + | |
| 10 | +13 | #![warn(ignored_generic_bounds)] |
| 11 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
8 | 12 |
|
9 | 13 | warning: bounds on generic lifetime parameters are ignored in type aliases
|
10 |
| - --> $DIR/param-bounds-ignored.rs:18:19 |
| 14 | + --> $DIR/param-bounds-ignored.rs:19:19 |
11 | 15 | |
|
12 |
| -18 | type VVec<'b, 'a: 'b+'b> = Vec<&'a i32>; |
| 16 | +19 | type VVec<'b, 'a: 'b+'b> = Vec<&'a i32>; |
13 | 17 | | ^^ ^^
|
14 | 18 |
|
15 | 19 | warning: bounds on generic type parameters are ignored in type aliases
|
16 |
| - --> $DIR/param-bounds-ignored.rs:20:18 |
| 20 | + --> $DIR/param-bounds-ignored.rs:21:18 |
17 | 21 | |
|
18 |
| -20 | type WVec<'b, T: 'b+'b> = Vec<T>; |
| 22 | +21 | type WVec<'b, T: 'b+'b> = Vec<T>; |
19 | 23 | | ^^ ^^
|
20 | 24 |
|
21 | 25 | warning: where clauses are ignored in type aliases
|
22 |
| - --> $DIR/param-bounds-ignored.rs:22:25 |
| 26 | + --> $DIR/param-bounds-ignored.rs:23:25 |
23 | 27 | |
|
24 |
| -22 | type W2Vec<'b, T> where T: 'b, T: 'b = Vec<T>; |
| 28 | +23 | type W2Vec<'b, T> where T: 'b, T: 'b = Vec<T>; |
25 | 29 | | ^^^^^ ^^^^^
|
26 | 30 |
|
27 | 31 | warning: bounds on generic lifetime parameters are ignored in higher-ranked function types (i.e., `for`)
|
28 |
| - --> $DIR/param-bounds-ignored.rs:43:22 |
| 32 | + --> $DIR/param-bounds-ignored.rs:44:22 |
29 | 33 | |
|
30 |
| -43 | f: for<'xa, 'xb: 'xa> fn(&'xa i32, &'xb i32) -> &'xa i32) |
| 34 | +44 | f: for<'xa, 'xb: 'xa> fn(&'xa i32, &'xb i32) -> &'xa i32) |
31 | 35 | | ^^^
|
32 | 36 |
|
33 | 37 | warning: bounds on generic lifetime parameters are ignored in higher-ranked trait bounds (i.e., `for`)
|
34 |
| - --> $DIR/param-bounds-ignored.rs:51:34 |
| 38 | + --> $DIR/param-bounds-ignored.rs:52:34 |
35 | 39 | |
|
36 |
| -51 | fn bar2<'a, 'b, F: for<'xa, 'xb: 'xa> Fn(&'xa i32, &'xb i32) -> &'xa i32>( |
| 40 | +52 | fn bar2<'a, 'b, F: for<'xa, 'xb: 'xa> Fn(&'xa i32, &'xb i32) -> &'xa i32>( |
37 | 41 | | ^^^
|
38 | 42 |
|
39 | 43 | warning: bounds on generic lifetime parameters are ignored in higher-ranked trait bounds (i.e., `for`)
|
40 |
| - --> $DIR/param-bounds-ignored.rs:66:28 |
| 44 | + --> $DIR/param-bounds-ignored.rs:67:28 |
41 | 45 | |
|
42 |
| -66 | where F: for<'xa, 'xb: 'xa> Fn(&'xa i32, &'xb i32) -> &'xa i32 |
| 46 | +67 | where F: for<'xa, 'xb: 'xa> Fn(&'xa i32, &'xb i32) -> &'xa i32 |
43 | 47 | | ^^^
|
44 | 48 |
|
45 | 49 | warning: bounds on generic lifetime parameters are ignored in higher-ranked trait bounds (i.e., `for`)
|
46 |
| - --> $DIR/param-bounds-ignored.rs:78:25 |
| 50 | + --> $DIR/param-bounds-ignored.rs:79:25 |
47 | 51 | |
|
48 |
| -78 | where for<'xa, 'xb: 'xa> F: Fn(&'xa i32, &'xb i32) -> &'xa i32 |
| 52 | +79 | where for<'xa, 'xb: 'xa> F: Fn(&'xa i32, &'xb i32) -> &'xa i32 |
49 | 53 | | ^^^
|
50 | 54 |
|
51 | 55 | warning: bounds on generic lifetime parameters are ignored in higher-ranked trait bounds (i.e., `for`)
|
52 |
| - --> $DIR/param-bounds-ignored.rs:86:28 |
| 56 | + --> $DIR/param-bounds-ignored.rs:87:28 |
53 | 57 | |
|
54 |
| -86 | struct S1<F: for<'xa, 'xb: 'xa> Fn(&'xa i32, &'xb i32) -> &'xa i32>(F); |
| 58 | +87 | struct S1<F: for<'xa, 'xb: 'xa> Fn(&'xa i32, &'xb i32) -> &'xa i32>(F); |
55 | 59 | | ^^^
|
56 | 60 |
|
57 | 61 | warning: bounds on generic lifetime parameters are ignored in higher-ranked trait bounds (i.e., `for`)
|
58 |
| - --> $DIR/param-bounds-ignored.rs:88:40 |
| 62 | + --> $DIR/param-bounds-ignored.rs:89:40 |
59 | 63 | |
|
60 |
| -88 | struct S2<F>(F) where F: for<'xa, 'xb: 'xa> Fn(&'xa i32, &'xb i32) -> &'xa i32; |
| 64 | +89 | struct S2<F>(F) where F: for<'xa, 'xb: 'xa> Fn(&'xa i32, &'xb i32) -> &'xa i32; |
61 | 65 | | ^^^
|
62 | 66 |
|
63 | 67 | warning: bounds on generic lifetime parameters are ignored in higher-ranked trait bounds (i.e., `for`)
|
64 |
| - --> $DIR/param-bounds-ignored.rs:90:37 |
| 68 | + --> $DIR/param-bounds-ignored.rs:91:37 |
65 | 69 | |
|
66 |
| -90 | struct S3<F>(F) where for<'xa, 'xb: 'xa> F: Fn(&'xa i32, &'xb i32) -> &'xa i32; |
| 70 | +91 | struct S3<F>(F) where for<'xa, 'xb: 'xa> F: Fn(&'xa i32, &'xb i32) -> &'xa i32; |
67 | 71 | | ^^^
|
68 | 72 |
|
69 | 73 | warning: bounds on generic lifetime parameters are ignored in higher-ranked function types (i.e., `for`)
|
70 |
| - --> $DIR/param-bounds-ignored.rs:93:29 |
| 74 | + --> $DIR/param-bounds-ignored.rs:94:29 |
71 | 75 | |
|
72 |
| -93 | struct S_fnty(for<'xa, 'xb: 'xa> fn(&'xa i32, &'xb i32) -> &'xa i32); |
| 76 | +94 | struct S_fnty(for<'xa, 'xb: 'xa> fn(&'xa i32, &'xb i32) -> &'xa i32); |
73 | 77 | | ^^^
|
74 | 78 |
|
75 | 79 | warning: bounds on generic lifetime parameters are ignored in higher-ranked trait bounds (i.e., `for`)
|
76 |
| - --> $DIR/param-bounds-ignored.rs:96:29 |
| 80 | + --> $DIR/param-bounds-ignored.rs:97:29 |
77 | 81 | |
|
78 |
| -96 | type T1 = Box<for<'xa, 'xb: 'xa> Fn(&'xa i32, &'xb i32) -> &'xa i32>; |
| 82 | +97 | type T1 = Box<for<'xa, 'xb: 'xa> Fn(&'xa i32, &'xb i32) -> &'xa i32>; |
79 | 83 | | ^^^
|
80 | 84 |
|
81 | 85 | warning: bounds on generic lifetime parameters are ignored in higher-ranked function types (i.e., `for`)
|
82 |
| - --> $DIR/param-bounds-ignored.rs:100:34 |
| 86 | + --> $DIR/param-bounds-ignored.rs:101:34 |
83 | 87 | |
|
84 |
| -100 | let _ : Option<for<'xa, 'xb: 'xa> fn(&'xa i32, &'xb i32) -> &'xa i32> = None; |
| 88 | +101 | let _ : Option<for<'xa, 'xb: 'xa> fn(&'xa i32, &'xb i32) -> &'xa i32> = None; |
85 | 89 | | ^^^
|
86 | 90 |
|
87 | 91 | warning: bounds on generic lifetime parameters are ignored in higher-ranked trait bounds (i.e., `for`)
|
88 |
| - --> $DIR/param-bounds-ignored.rs:102:38 |
| 92 | + --> $DIR/param-bounds-ignored.rs:103:38 |
89 | 93 | |
|
90 |
| -102 | let _ : Option<Box<for<'xa, 'xb: 'xa> Fn(&'xa i32, &'xb i32) -> &'xa i32>> = None; |
| 94 | +103 | let _ : Option<Box<for<'xa, 'xb: 'xa> Fn(&'xa i32, &'xb i32) -> &'xa i32>> = None; |
91 | 95 | | ^^^
|
92 | 96 |
|
0 commit comments