about summary refs log tree commit diff
path: root/src/test/rustdoc-ui
AgeCommit message (Collapse)AuthorLines
2019-01-06check missing docs for reexported macros as wellGuillaume Gomez-0/+67
2019-01-02make `panictry!` private to libsyntaxAndy Russell-2/+2
This commit completely removes usage of the `panictry!` macro from outside libsyntax. The macro causes parse errors to be fatal, so using it in libsyntax_ext caused parse failures *within* a syntax extension to be fatal, which is probably not intended. Furthermore, this commit adds spans to diagnostics emitted by empty extensions if they were missing, à la #56491.
2018-12-25Remove licensesMark Rousskov-156/+47
2018-12-19Rollup merge of #56689 - QuietMisdreavus:rustdoc-lint-group, r=pnkfelixPietro Albini-0/+78
add a lint group for lints emitted by rustdoc As rustdoc adds more lints that it specifically manages, it would be nice to be able to lump them all together. This gives us a new group just for that. I deliberately didn't include `missing_docs` because this is kind of a stepping stone for moving our lints into tool lints (i.e. `#![warn(rustdoc::private_doc_tests)]`), since all of these are specifically emitted by rustdoc. If we want to move `missing_docs` out of the compiler, that's also an option, but it would create a surprising change of behavior. I also took the chance to rewrite the lint descriptions of these lints to better match the style of the other lints. `>_>`
2018-12-14Rollup merge of #56748 - kinnison:kinnison/fix-56734, r=dtolnaykennytm-2/+2
Update panic message to be clearer about env-vars Esteban Kuber requested that the panic message make it clear that `RUST_BACKTRACE=1` is an environment variable. This change makes that clear. I understand that this may simply be closed if the concept isn't accepted, and I'd be fine with that :-) Fixes #56734
2018-12-13Update panic message to be clearer about env-varsDaniel Silverstone-2/+2
Esteban Kuber requested that the panic message make it clear that `RUST_BACKTRACE=1` is an environment variable. This change makes that clear. Wording provided in part by David Tolnay.
2018-12-10fix intra-link resolution spans in block commentsAndy Russell-24/+163
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-12-10add a lint group for lints emitted by rustdocQuietMisdreavus-0/+78
2018-12-07Fixed line numbers in stderr file.Alexander Regueiro-2/+2
2018-12-04adds DocTest filename variant, refactors doctest_offset out of source_map, ↵Matthew Russo-2/+2
fixes remaining test failures
2018-12-04Update doc-ui testsOliver Scherer-5/+11
2018-11-22Auto merge of #53586 - eddyb:top-lock, r=alexcrichtonbors-2/+2
Move Cargo.{toml,lock} to the repository root directory. This should give us back `src/` in errors, panics and debuginfo, for free. r? @Mark-Simulacrum @alexcrichton cc @michaelwoerister
2018-11-22Move Cargo.{toml,lock} to the repository root directory.Eduard-Mihai Burtescu-2/+2
2018-11-22Rollup merge of #55367 - GuillaumeGomez:private-item-doc-test-lint, ↵Guillaume Gomez-0/+36
r=QuietMisdreavus lint if a private item has doctests Fixes #55333. r? @QuietMisdreavus
2018-11-16lint if a private item has doctestsGuillaume Gomez-0/+36
2018-11-14properly calculate spans for intra-doc link resolution errorsQuietMisdreavus-0/+37
2018-11-02update rustdoc-ui/failed-doctest-output testQuietMisdreavus-2/+2
2018-10-23Set RUST_BACKTRACE=0 for rustdoc-ui/failed-doctest-output.rsJosh Stone-9/+10
This UI test is sensitive to backtrace output, so it should make sure that backtraces are not enabled by the environment.
2018-10-18Auto merge of #54349 - GuillaumeGomez:no-example-lint, r=QuietMisdreavusbors-0/+46
[rustdoc] Add lint for doc without codeblocks Fixes #53805. r? @QuietMisdreavus
2018-10-17Auto merge of #54939 - ↵bors-2/+2
pnkfelix:issue-54478-dont-prefer-dynamic-in-doc-tests, r=QuietMisdreavus rustdoc: don't prefer dynamic linking in doc tests This is an attempt to address the regression in #54478 This may be a case where the cure is worse than the disease, at least in the short term... cc @alexcrichton
2018-10-12Auto merge of #53933 - GuillaumeGomez:codeblock-error-display, r=QuietMisdreavusbors-0/+27
Improve error display for codeblocks in rustdoc Part of #53919. r? @QuietMisdreavus
2018-10-09Update a rustdoc ui test whose output has changedAlex Crichton-2/+2
2018-10-09Add test for docs without examplesGuillaume Gomez-0/+46
2018-09-29Add a sentence before rustc errorsGuillaume Gomez-0/+1
2018-09-29Improve error display for codeblocks in rustdocGuillaume Gomez-0/+26
2018-09-19add -Zui-testing to rustdocQuietMisdreavus-31/+31
2018-08-01Rollup merge of #52835 - GuillaumeGomez:ice-rustdoc-links, r=eddybPietro Albini-0/+29
Fix Alias intra doc ICE Fixes #52611. cc @QuietMisdreavus r? @varkor
2018-07-31Fixup test caseMark Rousskov-2/+2
2018-07-30Fix Alias intra doc ICEGuillaume Gomez-0/+29
2018-07-20add failure-status to rustdoc doctest ui testQuietMisdreavus-9/+10
2018-07-20normalize test output so it can be run from repo rootQuietMisdreavus-10/+14
2018-07-20update stdout file with test path normalizationQuietMisdreavus-10/+10
2018-07-20report doctest compile failures correctlyQuietMisdreavus-3/+19
2018-07-20add ui test for failing doctestQuietMisdreavus-0/+40
2018-07-05Fix rustdoc run failures by shutting down definitely some lintsGuillaume Gomez-0/+24
2018-06-13Rename intra-doc lintGuillaume Gomez-4/+4
2018-06-13Update help message to escape square bracketsGuillaume Gomez-13/+13
2018-06-13Add help for intra-link lintGuillaume Gomez-0/+20
2018-06-13Fix options issuesGuillaume Gomez-10/+8
2018-06-09Add lint for intra link resolution failureGuillaume Gomez-0/+30
2018-06-06When unable to sinthesize link span, fallback to previous behaviorEsteban Küber-15/+114
2018-06-06Use spans pointing at the inside of a rustdoc attributeEsteban Küber-33/+38
2018-06-03Show which line the link is coming from.kennytm-0/+15
2018-06-03Point to the rustdoc attribute where intralink resolution failed.kennytm-1/+21
2018-05-14drop unnecessary "warning" from warning textQuietMisdreavus-2/+2
2018-05-14add ui test for rustdoc's deprecated attributesQuietMisdreavus-0/+26
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/+25