Commit graph

19 commits

Author SHA1 Message Date
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