@@ -85,76 +85,88 @@ LL | assert!(N > n);
8585 | ^^^^^^^^^^^^^^
8686
8787error: docs for function which may panic missing `# Panics` section
88- --> tests/ui/missing_panics_doc.rs:167:5
88+ --> tests/ui/missing_panics_doc.rs:172:1
89+ |
90+ LL | pub fn expect_allow_with_error(i: Option<isize>) {
91+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
92+ |
93+ note: first possible panic found here
94+ --> tests/ui/missing_panics_doc.rs:181:5
95+ |
96+ LL | i.unwrap();
97+ | ^^^^^^^^^^
98+
99+ error: docs for function which may panic missing `# Panics` section
100+ --> tests/ui/missing_panics_doc.rs:187:5
89101 |
90102LL | pub fn option_unwrap<T>(v: &[T]) -> &T {
91103 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
92104 |
93105note: first possible panic found here
94- --> tests/ui/missing_panics_doc.rs:170 :9
106+ --> tests/ui/missing_panics_doc.rs:190 :9
95107 |
96108LL | o.unwrap()
97109 | ^^^^^^^^^^
98110
99111error: docs for function which may panic missing `# Panics` section
100- --> tests/ui/missing_panics_doc.rs:173 :5
112+ --> tests/ui/missing_panics_doc.rs:193 :5
101113 |
102114LL | pub fn option_expect<T>(v: &[T]) -> &T {
103115 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
104116 |
105117note: first possible panic found here
106- --> tests/ui/missing_panics_doc.rs:176 :9
118+ --> tests/ui/missing_panics_doc.rs:196 :9
107119 |
108120LL | o.expect("passed an empty thing")
109121 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
110122
111123error: docs for function which may panic missing `# Panics` section
112- --> tests/ui/missing_panics_doc.rs:179 :5
124+ --> tests/ui/missing_panics_doc.rs:199 :5
113125 |
114126LL | pub fn result_unwrap<T>(v: &[T]) -> &T {
115127 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
116128 |
117129note: first possible panic found here
118- --> tests/ui/missing_panics_doc.rs:182 :9
130+ --> tests/ui/missing_panics_doc.rs:202 :9
119131 |
120132LL | res.unwrap()
121133 | ^^^^^^^^^^^^
122134
123135error: docs for function which may panic missing `# Panics` section
124- --> tests/ui/missing_panics_doc.rs:185 :5
136+ --> tests/ui/missing_panics_doc.rs:205 :5
125137 |
126138LL | pub fn result_expect<T>(v: &[T]) -> &T {
127139 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
128140 |
129141note: first possible panic found here
130- --> tests/ui/missing_panics_doc.rs:188 :9
142+ --> tests/ui/missing_panics_doc.rs:208 :9
131143 |
132144LL | res.expect("passed an empty thing")
133145 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
134146
135147error: docs for function which may panic missing `# Panics` section
136- --> tests/ui/missing_panics_doc.rs:191 :5
148+ --> tests/ui/missing_panics_doc.rs:211 :5
137149 |
138150LL | pub fn last_unwrap(v: &[u32]) -> u32 {
139151 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
140152 |
141153note: first possible panic found here
142- --> tests/ui/missing_panics_doc.rs:193 :10
154+ --> tests/ui/missing_panics_doc.rs:213 :10
143155 |
144156LL | *v.last().unwrap()
145157 | ^^^^^^^^^^^^^^^^^
146158
147159error: docs for function which may panic missing `# Panics` section
148- --> tests/ui/missing_panics_doc.rs:196 :5
160+ --> tests/ui/missing_panics_doc.rs:216 :5
149161 |
150162LL | pub fn last_expect(v: &[u32]) -> u32 {
151163 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
152164 |
153165note: first possible panic found here
154- --> tests/ui/missing_panics_doc.rs:198 :10
166+ --> tests/ui/missing_panics_doc.rs:218 :10
155167 |
156168LL | *v.last().expect("passed an empty thing")
157169 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
158170
159- error: aborting due to 13 previous errors
171+ error: aborting due to 14 previous errors
160172
0 commit comments