about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/intra-links-warning.rs
AgeCommit message (Collapse)AuthorLines
2020-11-28Move `src/test/rustdoc-ui` intra-doc tests into a subdirectoryJoshua Nelson-84/+0
This also changes the builder to allow using `x.py test src/test/rustdoc-ui/intra-doc`; before, it would panic that no paths were found.
2020-07-20refactor and reword intra-doc link errorsAndy Russell-19/+19
This commit refactors intra-doc link error reporting to deduplicate code and decouple error construction from the type of error. This greatly improves flexibility at each error construction site, while reducing the complexity of the diagnostic creation. This commit also rewords the diagnostics for clarity and style: - Diagnostics should not end in periods. - It's unnecessary to say "ignoring it". Since this is a warning by default, it's already clear that the link is ignored.
2020-04-19Moving all rustdoc-ui tests to check-passVal Markovic-1/+1
These were all build-pass before and don't seem to need it. Helps with #62277
2019-11-10Add warning annotations to rustdoc-ui testsTomasz Miąsko-13/+20
2019-07-03Migrate compile-pass annotations to build-passYuki Okushi-1/+1
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-10fix intra-link resolution spans in block commentsAndy Russell-0/+30
This commit improves the calculation of code spans for intra-doc resolution failures. All sugared doc comments should now have the correct spans, including those where the comment is longer than the docs. It also fixes an issue where the spans were calculated incorrectly for certain unsugared doc comments. The diagnostic will now always use the span of the attributes, as originally intended. Fixes #55964.
2018-06-06When unable to sinthesize link span, fallback to previous behaviorEsteban Küber-3/+39
2018-06-06Use spans pointing at the inside of a rustdoc attributeEsteban Küber-3/+5
2018-06-03Point to the rustdoc attribute where intralink resolution failed.kennytm-1/+3
2018-04-16Remove unwanted auto-linking and updateGuillaume Gomez-1/+1
2018-04-16Fix nitsGuillaume Gomez-2/+0
2018-04-16Add rustdoc-ui test suiteGuillaume Gomez-0/+19