12dc24f460
This commit is a response to feedback on the displayed type signatures results, by making generics act stricter. Generics are tightened by making order significant. This means `Vec<Allocator>` now matches only with a true vector of allocators, instead of matching the second type param. It also makes unboxing within generics stricter, so `Result<A, B>` only matches if `B` is in the error type and `A` is in the success type. The top level of the function search is unaffected. Find the discussion on: * <https://rust-lang.zulipchat.com/#narrow/stream/393423-t-rustdoc.2Fmeetings/topic/meeting.202024-07-08/near/449965149> * <https://github.com/rust-lang/rust/pull/124544#issuecomment-2204272265> * <https://rust-lang.zulipchat.com/#narrow/channel/266220-t-rustdoc/topic/deciding.20on.20semantics.20of.20generics.20in.20rustdoc.20search/near/476841363>
34 lines
1.4 KiB
Plaintext
34 lines
1.4 KiB
Plaintext
error[E0658]: `#[doc(keyword)]` is meant for internal use only
|
|
--> $DIR/feature-gate-rustdoc_internals.rs:1:1
|
|
|
|
|
LL | #[doc(keyword = "match")]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: see issue #90418 <https://github.com/rust-lang/rust/issues/90418> for more information
|
|
= help: add `#![feature(rustdoc_internals)]` to the crate attributes to enable
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
error[E0658]: `#[doc(fake_variadic)]` is meant for internal use only
|
|
--> $DIR/feature-gate-rustdoc_internals.rs:7:1
|
|
|
|
|
LL | #[doc(fake_variadic)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: see issue #90418 <https://github.com/rust-lang/rust/issues/90418> for more information
|
|
= help: add `#![feature(rustdoc_internals)]` to the crate attributes to enable
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
error[E0658]: `#[doc(search_unbox)]` is meant for internal use only
|
|
--> $DIR/feature-gate-rustdoc_internals.rs:10:1
|
|
|
|
|
LL | #[doc(search_unbox)]
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: see issue #90418 <https://github.com/rust-lang/rust/issues/90418> for more information
|
|
= help: add `#![feature(rustdoc_internals)]` to the crate attributes to enable
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0658`.
|