@@ -21,9 +21,9 @@ note: inside `path_builder::check_path_is_valid`
2121 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the failure occurred here
2222
2323note: erroneous constant encountered
24- --> tests/it/api/ui/invalid-path.rs:191 :13
24+ --> tests/it/api/ui/invalid-path.rs:146 :13
2525 |
26- 191 | let _ = invalid_char_single_path::Request::PATH_BUILDER;
26+ 146 | let _ = invalid_char_single_path::Request::PATH_BUILDER;
2727 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2828
2929error[E0080]: evaluation panicked: path contains invalid (non-ascii or whitespace) characters
@@ -50,9 +50,9 @@ note: inside `path_builder::check_path_is_valid`
5050 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the failure occurred here
5151
5252note: erroneous constant encountered
53- --> tests/it/api/ui/invalid-path.rs:192 :13
53+ --> tests/it/api/ui/invalid-path.rs:147 :13
5454 |
55- 192 | let _ = invalid_char_version_history::Request::PATH_BUILDER;
55+ 147 | let _ = invalid_char_version_history::Request::PATH_BUILDER;
5656 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5757
5858error[E0080]: evaluation panicked: path contains invalid (non-ascii or whitespace) characters
@@ -78,9 +78,9 @@ note: inside `path_builder::check_path_is_valid`
7878 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the failure occurred here
7979
8080note: erroneous constant encountered
81- --> tests/it/api/ui/invalid-path.rs:194 :13
81+ --> tests/it/api/ui/invalid-path.rs:149 :13
8282 |
83- 194 | let _ = whitespace_single_path::Request::PATH_BUILDER;
83+ 149 | let _ = whitespace_single_path::Request::PATH_BUILDER;
8484 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8585
8686error[E0080]: evaluation panicked: path contains invalid (non-ascii or whitespace) characters
@@ -107,9 +107,9 @@ note: inside `path_builder::check_path_is_valid`
107107 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the failure occurred here
108108
109109note: erroneous constant encountered
110- --> tests/it/api/ui/invalid-path.rs:195 :13
110+ --> tests/it/api/ui/invalid-path.rs:150 :13
111111 |
112- 195 | let _ = whitespace_version_history::Request::PATH_BUILDER;
112+ 150 | let _ = whitespace_version_history::Request::PATH_BUILDER;
113113 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
114114
115115error[E0080]: evaluation panicked: endpoint paths syntax has changed and segment variables must be wrapped by `{}`
@@ -135,9 +135,9 @@ note: inside `extract_endpoint_path_segment_variable`
135135 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the failure occurred here
136136
137137note: erroneous constant encountered
138- --> tests/it/api/ui/invalid-path.rs:197 :13
138+ --> tests/it/api/ui/invalid-path.rs:152 :13
139139 |
140- 197 | let _ = old_variable_syntax_single_path::Request::PATH_BUILDER;
140+ 152 | let _ = old_variable_syntax_single_path::Request::PATH_BUILDER;
141141 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
142142
143143error[E0080]: evaluation panicked: endpoint paths syntax has changed and segment variables must be wrapped by `{}`
@@ -169,9 +169,9 @@ note: inside `extract_endpoint_path_segment_variable`
169169 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the failure occurred here
170170
171171note: erroneous constant encountered
172- --> tests/it/api/ui/invalid-path.rs:198 :13
172+ --> tests/it/api/ui/invalid-path.rs:153 :13
173173 |
174- 198 | let _ = old_variable_syntax_version_history::Request::PATH_BUILDER;
174+ 153 | let _ = old_variable_syntax_version_history::Request::PATH_BUILDER;
175175 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
176176
177177error[E0080]: evaluation panicked: endpoint path segment variable braces mismatch: missing ending `}`
@@ -200,9 +200,9 @@ note: inside `extract_endpoint_path_segment_variable`
200200 = note: this error originates in the macro `$crate::metadata` which comes from the expansion of the macro `metadata` (in Nightly builds, run with -Z macro-backtrace for more info)
201201
202202note: erroneous constant encountered
203- --> tests/it/api/ui/invalid-path.rs:200 :13
203+ --> tests/it/api/ui/invalid-path.rs:155 :13
204204 |
205- 200 | let _ = missing_variable_closing_single_path::Request::PATH_BUILDER;
205+ 155 | let _ = missing_variable_closing_single_path::Request::PATH_BUILDER;
206206 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
207207
208208error[E0080]: evaluation panicked: endpoint path segment variable braces mismatch: missing ending `}`
@@ -237,9 +237,9 @@ note: inside `extract_endpoint_path_segment_variable`
237237 = note: this error originates in the macro `$crate::metadata` which comes from the expansion of the macro `metadata` (in Nightly builds, run with -Z macro-backtrace for more info)
238238
239239note: erroneous constant encountered
240- --> tests/it/api/ui/invalid-path.rs:201 :13
240+ --> tests/it/api/ui/invalid-path.rs:156 :13
241241 |
242- 201 | let _ = missing_variable_closing_version_history::Request::PATH_BUILDER;
242+ 156 | let _ = missing_variable_closing_version_history::Request::PATH_BUILDER;
243243 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
244244
245245error[E0080]: evaluation panicked: endpoint path segment variable braces mismatch: missing starting `{`
@@ -265,9 +265,9 @@ note: inside `extract_endpoint_path_segment_variable`
265265 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the failure occurred here
266266
267267note: erroneous constant encountered
268- --> tests/it/api/ui/invalid-path.rs:203 :13
268+ --> tests/it/api/ui/invalid-path.rs:158 :13
269269 |
270- 203 | let _ = missing_variable_opening_single_path::Request::PATH_BUILDER;
270+ 158 | let _ = missing_variable_opening_single_path::Request::PATH_BUILDER;
271271 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
272272
273273error[E0080]: evaluation panicked: endpoint path segment variable braces mismatch: missing starting `{`
@@ -299,88 +299,7 @@ note: inside `extract_endpoint_path_segment_variable`
299299 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the failure occurred here
300300
301301note: erroneous constant encountered
302- --> tests/it/api/ui/invalid-path.rs:204 :13
302+ --> tests/it/api/ui/invalid-path.rs:159 :13
303303 |
304- 204 | let _ = missing_variable_opening_version_history::Request::PATH_BUILDER;
304+ 159 | let _ = missing_variable_opening_version_history::Request::PATH_BUILDER;
305305 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
306-
307- error[E0080]: evaluation panicked: no endpoint paths supplied
308- --> tests/it/api/ui/invalid-path.rs:148:5
309- |
310- 148 | / metadata! {
311- 149 | | method: GET,
312- 150 | | rate_limited: false,
313- 151 | | authentication: NoAuthentication,
314- 152 | | history: {},
315- 153 | | }
316- | |_____^ evaluation of `<no_paths_version_history::Request as ruma_common::api::Metadata>::PATH_BUILDER` failed inside this call
317- |
318- note: inside `VersionHistory::new`
319- --> src/api/path_builder.rs
320- |
321- | panic!("no endpoint paths supplied")
322- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the failure occurred here
323-
324- note: erroneous constant encountered
325- --> tests/it/api/ui/invalid-path.rs:206:13
326- |
327- 206 | let _ = no_paths_version_history::Request::PATH_BUILDER;
328- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
329-
330- error[E0080]: evaluation panicked: counts of endpoint path segment variables do not match
331- --> tests/it/api/ui/invalid-path.rs:161:5
332- |
333- 161 | / metadata! {
334- 162 | | method: GET,
335- 163 | | rate_limited: false,
336- 164 | | authentication: NoAuthentication,
337- ... |
338- 168 | | },
339- 169 | | }
340- | |_____^ evaluation of `<variable_count_mismatch_version_history::Request as ruma_common::api::Metadata>::PATH_BUILDER` failed inside this call
341- |
342- note: inside `VersionHistory::new`
343- --> src/api/path_builder.rs
344- |
345- | check_path_args_equal(ref_path, version_path.1);
346- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
347- note: inside `VersionHistory::new::check_path_args_equal`
348- --> src/api/path_builder.rs
349- |
350- | panic!("counts of endpoint path segment variables do not match");
351- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the failure occurred here
352-
353- note: erroneous constant encountered
354- --> tests/it/api/ui/invalid-path.rs:207:13
355- |
356- 207 | let _ = variable_count_mismatch_version_history::Request::PATH_BUILDER;
357- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
358-
359- error[E0080]: evaluation panicked: names of endpoint path segment variables do not match
360- --> tests/it/api/ui/invalid-path.rs:177:5
361- |
362- 177 | / metadata! {
363- 178 | | method: GET,
364- 179 | | rate_limited: false,
365- 180 | | authentication: NoAuthentication,
366- ... |
367- 184 | | },
368- 185 | | }
369- | |_____^ evaluation of `<variable_name_mismatch_version_history::Request as ruma_common::api::Metadata>::PATH_BUILDER` failed inside this call
370- |
371- note: inside `VersionHistory::new`
372- --> src/api/path_builder.rs
373- |
374- | check_path_args_equal(ref_path, version_path.1);
375- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
376- note: inside `VersionHistory::new::check_path_args_equal`
377- --> src/api/path_builder.rs
378- |
379- | ... panic!("names of endpoint path segment variables do not match");
380- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the failure occurred here
381-
382- note: erroneous constant encountered
383- --> tests/it/api/ui/invalid-path.rs:208:13
384- |
385- 208 | let _ = variable_name_mismatch_version_history::Request::PATH_BUILDER;
386- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
0 commit comments