@@ -73,76 +73,88 @@ LL | assert_ne!(x, 0);
73
73
| ^^^^^^^^^^^^^^^^
74
74
75
75
error: docs for function which may panic missing `# Panics` section
76
- --> tests/ui/missing_panics_doc.rs:157:5
76
+ --> tests/ui/missing_panics_doc.rs:154:1
77
+ |
78
+ LL | pub fn partially_const<const N: usize>(n: usize) {
79
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
80
+ |
81
+ note: first possible panic found here
82
+ --> tests/ui/missing_panics_doc.rs:161:5
83
+ |
84
+ LL | assert!(N > n);
85
+ | ^^^^^^^^^^^^^^
86
+
87
+ error: docs for function which may panic missing `# Panics` section
88
+ --> tests/ui/missing_panics_doc.rs:167:5
77
89
|
78
90
LL | pub fn option_unwrap<T>(v: &[T]) -> &T {
79
91
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
80
92
|
81
93
note: first possible panic found here
82
- --> tests/ui/missing_panics_doc.rs:160 :9
94
+ --> tests/ui/missing_panics_doc.rs:170 :9
83
95
|
84
96
LL | o.unwrap()
85
97
| ^^^^^^^^^^
86
98
87
99
error: docs for function which may panic missing `# Panics` section
88
- --> tests/ui/missing_panics_doc.rs:163 :5
100
+ --> tests/ui/missing_panics_doc.rs:173 :5
89
101
|
90
102
LL | pub fn option_expect<T>(v: &[T]) -> &T {
91
103
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
92
104
|
93
105
note: first possible panic found here
94
- --> tests/ui/missing_panics_doc.rs:166 :9
106
+ --> tests/ui/missing_panics_doc.rs:176 :9
95
107
|
96
108
LL | o.expect("passed an empty thing")
97
109
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
98
110
99
111
error: docs for function which may panic missing `# Panics` section
100
- --> tests/ui/missing_panics_doc.rs:169 :5
112
+ --> tests/ui/missing_panics_doc.rs:179 :5
101
113
|
102
114
LL | pub fn result_unwrap<T>(v: &[T]) -> &T {
103
115
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
104
116
|
105
117
note: first possible panic found here
106
- --> tests/ui/missing_panics_doc.rs:172 :9
118
+ --> tests/ui/missing_panics_doc.rs:182 :9
107
119
|
108
120
LL | res.unwrap()
109
121
| ^^^^^^^^^^^^
110
122
111
123
error: docs for function which may panic missing `# Panics` section
112
- --> tests/ui/missing_panics_doc.rs:175 :5
124
+ --> tests/ui/missing_panics_doc.rs:185 :5
113
125
|
114
126
LL | pub fn result_expect<T>(v: &[T]) -> &T {
115
127
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
116
128
|
117
129
note: first possible panic found here
118
- --> tests/ui/missing_panics_doc.rs:178 :9
130
+ --> tests/ui/missing_panics_doc.rs:188 :9
119
131
|
120
132
LL | res.expect("passed an empty thing")
121
133
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
122
134
123
135
error: docs for function which may panic missing `# Panics` section
124
- --> tests/ui/missing_panics_doc.rs:181 :5
136
+ --> tests/ui/missing_panics_doc.rs:191 :5
125
137
|
126
138
LL | pub fn last_unwrap(v: &[u32]) -> u32 {
127
139
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
128
140
|
129
141
note: first possible panic found here
130
- --> tests/ui/missing_panics_doc.rs:183 :10
142
+ --> tests/ui/missing_panics_doc.rs:193 :10
131
143
|
132
144
LL | *v.last().unwrap()
133
145
| ^^^^^^^^^^^^^^^^^
134
146
135
147
error: docs for function which may panic missing `# Panics` section
136
- --> tests/ui/missing_panics_doc.rs:186 :5
148
+ --> tests/ui/missing_panics_doc.rs:196 :5
137
149
|
138
150
LL | pub fn last_expect(v: &[u32]) -> u32 {
139
151
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
140
152
|
141
153
note: first possible panic found here
142
- --> tests/ui/missing_panics_doc.rs:188 :10
154
+ --> tests/ui/missing_panics_doc.rs:198 :10
143
155
|
144
156
LL | *v.last().expect("passed an empty thing")
145
157
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
146
158
147
- error: aborting due to 12 previous errors
159
+ error: aborting due to 13 previous errors
148
160
0 commit comments