diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-01-06 12:01:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-06 12:01:05 +0100 |
| commit | 26a90e4cd780175dd2d9dbf061eccd53eb9a2489 (patch) | |
| tree | f2c1551a88fe6e6267efc69fe7f93bd3cdf37fdc /src/test/rustdoc-ui | |
| parent | b510278278304ab961c4bad2ed7119f5d70d0d51 (diff) | |
| parent | 973cf632d37b55095d1ff47b62de43c1864c4115 (diff) | |
| download | rust-26a90e4cd780175dd2d9dbf061eccd53eb9a2489.tar.gz rust-26a90e4cd780175dd2d9dbf061eccd53eb9a2489.zip | |
Rollup merge of #92443 - mdibaiee:90703/resolve-traits-of-primitive-types, r=Manishearth
Rustdoc: resolve associated traits for non-generic primitive types Fixes #90703 This seems to work: <img width="457" alt="image" src="https://user-images.githubusercontent.com/2807772/147774059-9556ff96-4519-409e-8ed0-c33ecc436171.png"> I'm just afraid I might have missed some cases / broken previous functionality. I also have not written tests yet, I will have to take a look to see where tests are and how they are structured, but any help there is also appreciated.
Diffstat (limited to 'src/test/rustdoc-ui')
| -rw-r--r-- | src/test/rustdoc-ui/intra-doc/non-path-primitives.rs | 1 | ||||
| -rw-r--r-- | src/test/rustdoc-ui/intra-doc/non-path-primitives.stderr | 10 |
2 files changed, 2 insertions, 9 deletions
diff --git a/src/test/rustdoc-ui/intra-doc/non-path-primitives.rs b/src/test/rustdoc-ui/intra-doc/non-path-primitives.rs index 75159979e88..587cbad6848 100644 --- a/src/test/rustdoc-ui/intra-doc/non-path-primitives.rs +++ b/src/test/rustdoc-ui/intra-doc/non-path-primitives.rs @@ -28,7 +28,6 @@ //! [unit::eq] //~ ERROR unresolved //! [tuple::eq] //~ ERROR unresolved //! [fn::eq] //~ ERROR unresolved -//! [never::eq] //~ ERROR unresolved // FIXME(#78800): This breaks because it's a blanket impl // (I think? Might break for other reasons too.) diff --git a/src/test/rustdoc-ui/intra-doc/non-path-primitives.stderr b/src/test/rustdoc-ui/intra-doc/non-path-primitives.stderr index 610c8305605..4828a304463 100644 --- a/src/test/rustdoc-ui/intra-doc/non-path-primitives.stderr +++ b/src/test/rustdoc-ui/intra-doc/non-path-primitives.stderr @@ -53,17 +53,11 @@ error: unresolved link to `fn::eq` LL | //! [fn::eq] | ^^^^^^ the builtin type `fn` has no associated item named `eq` -error: unresolved link to `never::eq` - --> $DIR/non-path-primitives.rs:31:6 - | -LL | //! [never::eq] - | ^^^^^^^^^ the builtin type `never` has no associated item named `eq` - error: unresolved link to `reference::deref` - --> $DIR/non-path-primitives.rs:35:6 + --> $DIR/non-path-primitives.rs:34:6 | LL | //! [reference::deref] | ^^^^^^^^^^^^^^^^ the builtin type `reference` has no associated item named `deref` -error: aborting due to 9 previous errors +error: aborting due to 8 previous errors |
