Matthias Krüger
53580da72d
Rollup merge of #113857 - GuillaumeGomez:document-hidden-items-test, r=notriddle
...
Add tests for `--document-hidden-items` option
Since `--document-hidden-items` was greatly fixed/improved in https://github.com/rust-lang/rust/pull/113574 , thought it might be worth adding some more tests for it to prevent new regressions.
As for the first commit, it allows to go from:
```
Traceback (most recent call last):
File "/home/imperio/rust/rust/src/etc/htmldocck.py", line 706, in <module>
check(sys.argv[1], get_commands(rust_test_path))
File "/home/imperio/rust/rust/src/etc/htmldocck.py", line 689, in check
for c in commands:
File "/home/imperio/rust/rust/src/etc/htmldocck.py", line 274, in get_commands
args = shlex.split(args)
File "/usr/lib/python3.10/shlex.py", line 315, in split
return list(lex)
File "/usr/lib/python3.10/shlex.py", line 300, in __next__
token = self.get_token()
File "/usr/lib/python3.10/shlex.py", line 109, in get_token
raw = self.read_token()
File "/usr/lib/python3.10/shlex.py", line 191, in read_token
raise ValueError("No closing quotation")
ValueError: No closing quotation
```
to:
```
Traceback (most recent call last):
File "/home/imperio/rust/rust/src/etc/htmldocck.py", line 708, in <module>
check(sys.argv[1], get_commands(rust_test_path))
File "/home/imperio/rust/rust/src/etc/htmldocck.py", line 691, in check
for c in commands:
File "/home/imperio/rust/rust/src/etc/htmldocck.py", line 278, in get_commands
raise Exception("line {}: {}".format(lineno + 1, exc)) from None
Exception: line 57: No closing quotation
```
Having the line where the error occurred is quite useful.
r? `@notriddle`
2023-07-20 07:08:43 +02:00
..
2023-06-21 13:45:00 +02:00
2023-02-09 23:18:34 +05:30
2023-04-28 13:16:10 -07:00
2023-01-28 17:18:56 -07:00
2023-06-21 21:53:55 +02:00
2023-06-26 23:16:16 +09:00
2023-06-01 11:09:42 +05:30
2023-03-30 22:56:52 +02:00
2023-03-30 22:56:52 +02:00
2023-01-28 17:18:56 -07:00
2023-06-21 13:45:00 +02:00
2023-06-21 15:34:42 +02:00
2023-07-14 16:38:01 -07:00
2023-07-14 16:38:01 -07:00
2023-07-14 16:38:01 -07:00
2023-07-14 16:38:01 -07:00
2023-07-14 16:38:01 -07:00
2023-04-29 15:36:03 -04:00
2023-07-14 16:38:01 -07:00
2023-03-09 18:08:22 +01:00
2023-01-30 11:06:18 -07:00
2023-06-07 13:29:36 +02:00
2023-01-30 11:06:18 -07:00
2023-01-30 11:06:18 -07:00
2023-04-04 14:03:50 +00:00
2023-02-07 11:23:25 -07:00
2023-01-30 11:06:18 -07:00
2023-01-30 11:06:18 -07:00
2023-03-30 22:56:52 +02:00
2023-02-07 19:00:42 -07:00
2023-07-12 16:50:43 +02:00
2023-01-27 09:04:39 -07:00
2023-04-13 20:35:05 +02:00
2023-01-30 11:06:18 -07:00
2023-01-30 11:06:18 -07:00
2023-01-30 11:06:18 -07:00
2023-06-24 23:39:35 +02:00
2023-06-24 23:39:35 +02:00
2023-02-07 11:23:25 -07:00
2023-01-30 11:06:18 -07:00
2023-03-20 05:21:51 +00:00
2023-02-11 16:10:28 -07:00
2023-07-19 14:34:06 +02:00
2023-01-28 17:18:56 -07:00
2023-02-07 19:00:42 -07:00
2023-01-30 19:04:59 +00:00
2023-06-02 13:51:01 +02:00
2023-02-03 17:58:26 -07:00
2023-02-07 19:00:42 -07:00
2023-01-28 17:18:56 -07:00
2023-01-28 17:18:56 -07:00
2023-01-28 17:18:56 -07:00
2023-01-28 17:18:56 -07:00
2023-07-14 16:38:01 -07:00
2023-06-23 15:12:48 +02:00
2023-06-23 15:12:48 +02:00
2023-01-30 11:06:18 -07:00
2023-03-19 18:02:52 +01:00
2023-02-07 19:00:42 -07:00
2023-02-07 19:00:42 -07:00
2023-01-27 20:33:42 +01:00
2023-04-16 11:38:52 +00:00
2023-05-10 22:49:05 +00:00
2023-01-27 14:41:33 +01:00
2023-01-28 17:18:56 -07:00
2023-05-04 16:59:11 +02:00
2023-02-04 19:10:04 +01:00
2023-06-01 18:35:00 +02:00
2023-02-07 19:00:42 -07:00
2023-03-28 17:31:39 +04:00
2023-03-30 22:56:52 +02:00
2023-01-30 11:06:18 -07:00
2023-01-30 11:06:18 -07:00
2023-01-30 11:06:18 -07:00
2023-01-30 11:06:18 -07:00
2023-01-30 11:06:18 -07:00
2023-01-28 17:18:56 -07:00
2023-01-30 11:06:18 -07:00
2023-03-30 22:56:52 +02:00
2023-04-05 15:59:29 +00:00
2023-02-07 19:00:42 -07:00
2023-01-30 11:06:18 -07:00
2023-02-07 11:23:25 -07:00
2023-01-28 17:18:56 -07:00
2023-02-07 19:00:42 -07:00
2023-04-20 17:49:13 +02:00
2023-01-28 17:18:56 -07:00
2023-01-28 17:18:56 -07:00
2023-01-28 17:18:56 -07:00
2023-01-28 17:18:56 -07:00
2023-01-28 17:18:56 -07:00
2023-02-07 19:00:42 -07:00
2023-01-28 17:18:56 -07:00
2023-04-24 13:12:24 +02:00
2023-01-28 17:18:56 -07:00
2023-01-28 17:18:56 -07:00
2023-01-28 17:18:56 -07:00
2023-02-04 19:10:04 +01:00
2023-04-19 11:32:50 +02:00
2023-02-07 19:00:42 -07:00
2023-01-30 11:06:18 -07:00
2023-07-18 10:41:16 +02:00
2023-07-18 10:41:16 +02:00
2023-04-27 16:25:05 +08:00
2023-01-27 12:11:01 +01:00
2023-02-18 23:24:58 +01:00
2023-02-20 20:19:21 +01:00
2023-02-21 16:26:06 +01:00
2023-03-07 21:20:21 +01:00
2023-03-27 18:58:07 +00:00
2023-03-09 18:08:22 +01:00
2023-03-17 17:04:23 +01:00
2023-06-05 10:48:34 +02:00
2023-03-29 16:17:48 +02:00
2023-04-17 20:27:34 +02:00
2023-04-29 16:53:02 -07:00
2023-06-23 15:12:48 +02:00
2023-05-05 21:33:44 +02:00
2023-06-23 15:12:48 +02:00
2023-06-12 11:35:19 +02:00
2023-02-23 13:53:27 -07:00
2023-02-23 13:53:27 -07:00
2023-07-12 16:50:43 +02:00
2023-01-30 11:06:18 -07:00
2023-01-30 11:06:18 -07:00
2023-04-13 20:35:05 +02:00
2023-01-30 11:06:18 -07:00
2023-01-30 11:06:18 -07:00
2023-01-28 17:18:56 -07:00
2023-05-16 14:35:46 +02:00
2023-03-28 16:50:49 +00:00
2023-03-05 14:41:35 +03:00
2023-04-25 17:20:58 +03:00
2023-03-30 22:56:52 +02:00
2023-03-30 22:56:52 +02:00
2023-03-30 22:56:52 +02:00
2023-02-03 17:58:26 -07:00
2023-03-30 22:56:52 +02:00
2023-01-30 11:06:18 -07:00
2023-01-30 11:06:18 -07:00
2023-06-21 15:21:32 +02:00
2023-06-03 19:57:17 +02:00
2023-02-07 19:00:42 -07:00
2023-01-30 11:06:18 -07:00
2023-06-26 16:38:14 +02:00
2023-05-26 17:31:54 +02:00
2023-05-27 00:25:37 +02:00
2023-02-10 18:37:32 +01:00
2023-05-27 00:25:37 +02:00
2023-02-22 17:49:22 +01:00
2023-02-07 11:23:25 -07:00
2023-01-30 11:06:18 -07:00
2023-04-16 11:38:52 +00:00
2023-01-30 11:06:18 -07:00
2023-02-07 19:00:42 -07:00
2023-02-07 19:00:42 -07:00
2023-03-30 22:56:52 +02:00
2023-02-03 17:58:26 -07:00
2023-01-30 11:06:18 -07:00
2023-07-14 16:54:14 -07:00
2023-07-14 16:38:01 -07:00
2023-07-14 16:54:14 -07:00
2023-01-30 11:06:18 -07:00
2023-03-30 22:56:52 +02:00
2023-01-30 11:06:18 -07:00
2023-05-25 13:27:29 +00:00
2023-03-30 22:56:52 +02:00
2023-01-30 11:06:18 -07:00
2023-01-30 11:06:18 -07:00
2023-01-30 11:06:18 -07:00
2023-01-30 11:06:18 -07:00
2023-03-04 12:07:29 +00:00
2023-01-28 17:18:56 -07:00
2023-06-21 17:42:53 +02:00
2023-01-30 11:06:18 -07:00
2023-04-29 16:19:57 -04:00
2023-02-03 17:58:26 -07:00
2023-01-30 11:06:18 -07:00
2023-06-22 17:39:23 +02:00
2023-06-22 17:39:23 +02:00
2023-06-22 17:39:23 +02:00
2023-06-22 17:39:23 +02:00
2023-06-22 17:39:23 +02:00
2023-06-22 17:39:23 +02:00
2023-06-22 17:39:23 +02:00
2023-02-07 11:23:25 -07:00
2023-02-03 08:15:44 -07:00
2023-02-07 11:23:25 -07:00
2023-01-30 11:06:18 -07:00
2023-02-03 08:15:44 -07:00
2023-02-07 11:23:25 -07:00
2023-02-04 19:10:04 +01:00
2023-02-07 11:23:25 -07:00
2023-02-03 08:15:44 -07:00
2023-02-07 11:23:25 -07:00
2023-01-30 11:06:18 -07:00