Guillaume Gomez
ec0008a915
Rollup merge of #113091 - GuillaumeGomez:prevent-cfg-merge-reexport, r=rustdoc
...
Don't merge cfg and doc(cfg) attributes for re-exports
Fixes #112881 .
## Explanations
When re-exporting things with different `cfg`s there are two things that can happen:
* The re-export uses a subset of `cfg`s, this subset is sufficient so that the item will appear exactly with the subset
* The re-export uses a non-subset of `cfg`s (e.g. like the example I posted just above where the re-export is ungated), if the non-subset `cfg`s are active (e.g. compiling that example on windows) then this will be a compile error as the item doesn't exist to re-export, if the subset `cfg`s are active it behaves like 1.
### Glob re-exports?
**This only applies to non-glob inlined re-exports.** For glob re-exports the item may or may not exist to be re-exported (potentially the `cfg`s on the path up until the glob can be removed, and only `cfg`s on the globbed item itself matter), for non-inlined re-exports see https://github.com/rust-lang/rust/issues/85043 .
cc `@Nemo157`
r? `@notriddle`
2023-12-15 11:51:23 +01:00
..
2023-11-23 14:54:19 -07:00
2023-10-31 13:58:03 +00:00
2023-10-22 15:56:14 -07:00
2023-11-23 14:56:03 -07:00
2023-11-05 00:56:54 +01:00
2023-11-23 14:54:19 -07:00
2023-10-31 13:58:03 +00:00
2023-11-30 10:43:40 -07:00
2023-09-21 15:16:44 -07:00
2023-10-22 16:51:32 -07:00
2023-07-29 19:47:15 +00:00
2023-07-29 19:47:15 +00:00
2023-10-04 13:04:45 -07:00
2023-09-27 17:22:18 -07:00
2023-10-04 13:04:45 -07:00
2023-09-27 17:22:18 -07:00
2023-11-29 13:40:07 -07:00
2023-10-13 21:01:36 +00:00
2023-10-13 21:01:36 +00:00
2023-10-16 18:01:02 -07:00
2023-09-21 15:16:44 -07:00
2023-11-29 13:40:07 -07:00
2023-11-05 00:56:54 +01:00
2023-10-12 16:14:54 +00:00
2023-10-16 18:01:02 -07:00
2023-10-08 20:17:40 -07:00
2023-10-08 20:17:53 -07:00
2023-10-08 20:17:40 -07:00
2023-09-15 21:32:28 +02:00
2023-10-31 13:58:03 +00:00
2023-10-31 13:58:03 +00:00
2023-10-04 13:04:45 -07:00
2023-10-04 13:04:45 -07:00
2023-12-05 09:18:41 +01:00
2023-09-27 17:22:18 -07:00
2023-09-27 17:22:18 -07:00
2023-09-27 17:22:18 -07:00
2023-08-18 15:19:18 +08:00
2023-10-16 18:01:02 -07:00
2023-10-16 18:01:02 -07:00
2023-09-27 17:22:18 -07:00
2023-10-16 18:01:02 -07:00
2023-09-27 17:22:18 -07:00
2023-09-27 17:22:18 -07:00
2023-12-04 12:13:24 +01:00
2023-12-04 12:13:24 +01:00
2023-11-20 11:50:25 -07:00
2023-10-11 23:44:12 +02:00
2023-10-04 13:04:45 -07:00
2023-07-26 02:11:35 +02:00
2023-11-20 11:50:25 -07:00
2023-07-28 22:23:21 +02:00
2023-09-21 15:16:44 -07:00
2023-10-16 18:01:02 -07:00
2023-10-22 15:47:34 -07:00
2023-10-31 13:58:03 +00:00
2023-09-27 17:22:18 -07:00
2023-10-24 17:34:59 -07:00
2023-10-04 13:04:45 -07:00
2023-09-27 17:22:18 -07:00
2023-10-04 13:04:45 -07:00
2023-07-26 02:11:35 +02:00
2023-10-22 15:47:34 -07:00
2023-09-27 17:22:18 -07:00
2023-10-16 18:01:02 -07:00
2023-10-23 13:04:47 -07:00
2023-09-27 17:22:18 -07:00
2023-09-27 17:22:18 -07:00
2023-08-03 02:18:52 +02:00
2023-09-27 17:22:18 -07:00
2023-09-27 17:22:18 -07:00
2023-09-27 17:22:18 -07:00
2023-09-27 17:22:18 -07:00
2023-11-29 13:40:07 -07:00
2023-11-20 11:50:25 -07:00
2023-11-29 13:40:07 -07:00
2023-09-21 15:16:44 -07:00
2023-07-24 17:07:57 +02:00
2023-07-24 17:07:57 +02:00
2023-07-24 17:07:57 +02:00
2023-07-24 17:07:57 +02:00
2023-07-24 17:07:57 +02:00
2023-09-06 11:16:05 +02:00
2023-11-29 13:40:07 -07:00
2023-11-29 13:40:07 -07:00
2023-11-29 13:40:07 -07:00
2023-11-29 13:40:07 -07:00
2023-11-29 13:40:07 -07:00
2023-07-24 16:32:06 +02:00
2023-10-15 18:09:34 +02:00
2023-11-23 16:04:10 +01:00
2023-10-16 18:01:02 -07:00
2023-10-16 18:01:02 -07:00
2023-10-16 18:01:02 -07:00
2023-10-08 20:17:53 -07:00
2023-10-08 20:17:53 -07:00
2023-10-08 20:17:53 -07:00
2023-10-04 13:04:45 -07:00
2023-09-27 17:22:18 -07:00
2023-10-04 13:04:45 -07:00
2023-09-27 17:22:18 -07:00
2023-11-29 13:40:07 -07:00
2023-10-30 16:44:52 +01:00
2023-09-27 17:22:18 -07:00
2023-09-27 17:22:18 -07:00
2023-09-27 17:22:18 -07:00
2023-09-06 13:26:56 +02:00
2023-11-20 11:50:25 -07:00
2023-07-26 15:29:45 +02:00
2023-11-29 13:40:07 -07:00
2023-11-22 17:22:29 +01:00
2023-11-22 17:22:30 +01:00
2023-11-22 17:22:30 +01:00
2023-10-16 18:01:02 -07:00
2023-09-18 19:30:10 +02:00
2023-11-30 10:43:40 -07:00
2023-10-04 13:04:45 -07:00
2023-09-01 17:22:48 -04:00
2023-08-21 12:53:39 -07:00
2023-10-29 22:57:45 +01:00
2023-09-21 15:16:44 -07:00
2023-10-24 17:34:59 -07:00
2023-10-04 13:04:45 -07:00
2023-09-21 15:16:44 -07:00
2023-11-20 11:59:29 -07:00
2023-10-16 18:01:02 -07:00
2023-10-04 13:04:45 -07:00
2023-11-23 17:20:13 -08:00
2023-10-16 18:01:02 -07:00
2023-10-04 13:04:45 -07:00
2023-10-22 15:56:14 -07:00
2023-10-22 15:56:14 -07:00
2023-10-04 13:04:45 -07:00
2023-10-16 18:01:02 -07:00
2023-10-16 18:01:02 -07:00
2023-10-08 20:17:40 -07:00
2023-11-20 11:50:25 -07:00
2023-10-29 22:57:45 +01:00
2023-11-23 14:54:19 -07:00
2023-11-30 10:43:40 -07:00
2023-11-29 13:40:07 -07:00
2023-10-24 17:34:59 -07:00
2023-10-30 16:44:52 +01:00
2023-12-01 11:35:01 +01:00
2023-11-30 10:43:40 -07:00
2023-11-30 10:43:40 -07:00
2023-11-30 10:43:40 -07:00
2023-09-06 11:16:05 +02:00
2023-11-30 10:43:40 -07:00
2023-12-01 11:35:01 +01:00
2023-10-31 13:58:03 +00:00
2023-11-30 10:43:40 -07:00
2023-10-31 13:58:03 +00:00
2023-10-31 13:58:03 +00:00
2023-11-30 10:43:40 -07:00
2023-11-30 10:43:40 -07:00
2023-12-01 11:35:01 +01:00
2023-12-01 11:35:01 +01:00