@@ -73,76 +73,88 @@ LL | assert_ne!(x, 0);
7373 | ^^^^^^^^^^^^^^^^
7474
7575error: 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
7789 |
7890LL | pub fn option_unwrap<T>(v: &[T]) -> &T {
7991 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8092 |
8193note: first possible panic found here
82- --> tests/ui/missing_panics_doc.rs:160 :9
94+ --> tests/ui/missing_panics_doc.rs:170 :9
8395 |
8496LL | o.unwrap()
8597 | ^^^^^^^^^^
8698
8799error: 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
89101 |
90102LL | pub fn option_expect<T>(v: &[T]) -> &T {
91103 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
92104 |
93105note: first possible panic found here
94- --> tests/ui/missing_panics_doc.rs:166 :9
106+ --> tests/ui/missing_panics_doc.rs:176 :9
95107 |
96108LL | o.expect("passed an empty thing")
97109 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
98110
99111error: 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
101113 |
102114LL | pub fn result_unwrap<T>(v: &[T]) -> &T {
103115 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
104116 |
105117note: first possible panic found here
106- --> tests/ui/missing_panics_doc.rs:172 :9
118+ --> tests/ui/missing_panics_doc.rs:182 :9
107119 |
108120LL | res.unwrap()
109121 | ^^^^^^^^^^^^
110122
111123error: 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
113125 |
114126LL | pub fn result_expect<T>(v: &[T]) -> &T {
115127 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
116128 |
117129note: first possible panic found here
118- --> tests/ui/missing_panics_doc.rs:178 :9
130+ --> tests/ui/missing_panics_doc.rs:188 :9
119131 |
120132LL | res.expect("passed an empty thing")
121133 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
122134
123135error: 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
125137 |
126138LL | pub fn last_unwrap(v: &[u32]) -> u32 {
127139 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
128140 |
129141note: first possible panic found here
130- --> tests/ui/missing_panics_doc.rs:183 :10
142+ --> tests/ui/missing_panics_doc.rs:193 :10
131143 |
132144LL | *v.last().unwrap()
133145 | ^^^^^^^^^^^^^^^^^
134146
135147error: 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
137149 |
138150LL | pub fn last_expect(v: &[u32]) -> u32 {
139151 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
140152 |
141153note: first possible panic found here
142- --> tests/ui/missing_panics_doc.rs:188 :10
154+ --> tests/ui/missing_panics_doc.rs:198 :10
143155 |
144156LL | *v.last().expect("passed an empty thing")
145157 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
146158
147- error: aborting due to 12 previous errors
159+ error: aborting due to 13 previous errors
148160
0 commit comments