Commit graph

23 commits

Author SHA1 Message Date
Ed Page
293f2250d6 feat(doc): Print the generated docs links
I've wanted something like this myself.  I dislike using `--open`
because I tend to move up to re-run my `cargo doc` run but then have to
edit it to remove `--open`.
Also makes it annoying when opening docs when `cargo doc` is wrapped by
a tool like `make`.

This was previously attempted in #5592:
- Unlike the request in #5562, this aligns with #5592 in always printing
  rather than using a flag as this seems generally useful
- Unlike #5592, this prints as an alternative to "Opening" to keep
  things light
- Unlike #5592, this prints afterwards as the link is only valid then

Fixes #5562
2023-10-19 10:51:56 -05:00
Eric Huss
b1bcc9c834 Fix collision_doc_profile test error 2022-12-15 20:04:50 -08:00
Eric Huss
7eb007ddbf Add reasons to all ignored tests. 2022-08-02 12:24:00 -07:00
Scott Schafer
c239e407e7 add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
Eric Huss
5003d53c79 Fix collision doc tests randomly failing. 2021-04-29 10:42:42 -07:00
Eric Huss
e50292a153 Fix doc duplicate removal of root units. 2021-03-16 10:32:08 -07:00
Eric Huss
5ebb605c9a Fix panic with doc collision orphan. 2021-02-05 10:02:34 -08:00
Eric Huss
a58b0c589a Remove some doc collisions.
There are some cases where `cargo doc` will try to document two things
with the same crate_name. This attempts to automatically remove some of
those duplicates based on some rules:

- Prefers dependencies for the target over dependencies for the host
  (such as proc-macros).
- Prefers the "newest" version if it comes from the same source.

There are still plenty of situations where there can be collisions, but
I'm uncertain on the best way to handle those.
2021-01-14 13:12:24 -08:00
Eric Huss
f975c2e588 Don't hash executable filenames on apple platforms. 2020-06-04 16:14:17 -07:00
Eric Huss
f2c8070df5 Fix rare failure in collision_export test. 2020-03-02 09:46:39 -08:00
Eric Huss
83571aee56 Minor testsuite organization. 2019-11-24 18:42:45 -08:00
Eric Huss
5ccabc829e Re-enable some MSVC tests. 2019-10-08 10:13:24 -07:00
snf
e7c5579d3e removing hash from output files when using MSVC 2019-10-02 02:07:09 -03:00
Alex Crichton
9115b2c326 Extract support directory to its own crate
Extract out all our test support code to its own standalone crate so it
can be shared between multiple test suites if necessary.
2019-09-16 11:47:09 -07:00
Eric Huss
5d98fca89f Adjust warning for rustdoc filename collision. 2019-08-12 17:19:28 -07:00
Jethro Beekman
0e0d968825 Update #[test] attribute on all tests in the testsuite
sed -i 's/^#\[test\]/#[cargo_test]/' $(rg -l '^#\[test\]')

Manual fixes:
* proc_macro::proc_macro_doctest
2019-06-07 12:41:26 -07:00
Eric Huss
69091780d1 Catch filename output collisions in rustdoc. 2019-05-31 12:06:07 -07:00
Alexander Regueiro
f7c91ba622
Various cosmetic improvements. 2019-02-20 10:58:27 +00:00
Alex Crichton
fecb724643 Format with cargo fmt 2018-12-08 03:19:47 -08:00
Dale Wijnand
04ddd4d0fc
Upgrade to Rust 2018 2018-12-06 20:18:35 +01:00
Eric Huss
69c6363418 Fix windows failure on collision_dylib. 2018-11-13 16:31:24 -08:00
Eric Huss
a10eb01150 Change error to warning. 2018-11-13 14:31:56 -08:00
Eric Huss
fa0787aaf7 Check for duplicate output filenames. 2018-11-12 12:07:22 -08:00