/src/test/rustdoc/cross-crate-links.rs

https://gitlab.com/jianglu/rust · Rust · 71 lines · 30 code · 17 blank · 24 comment · 0 complexity · 62acfa5d98ff13ebea57d4e91f640af6 MD5 · raw file

  1. // Copyright 2018 The Rust Project Developers. See the COPYRIGHT
  2. // file at the top-level directory of this distribution and at
  3. // http://rust-lang.org/COPYRIGHT.
  4. //
  5. // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
  6. // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
  7. // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
  8. // option. This file may not be copied, modified, or distributed
  9. // except according to those terms.
  10. // aux-build:all-item-types.rs
  11. // build-aux-docs
  12. #![feature(use_extern_macros)]
  13. #![crate_name = "foo"]
  14. #[macro_use]
  15. extern crate all_item_types;
  16. // @has 'foo/index.html' '//a[@href="../all_item_types/foo_mod/index.html"]' 'foo_mod'
  17. #[doc(no_inline)]
  18. pub use all_item_types::foo_mod;
  19. // @has 'foo/index.html' '//a[@href="../all_item_types/fn.foo_ffn.html"]' 'foo_ffn'
  20. #[doc(no_inline)]
  21. pub use all_item_types::foo_ffn;
  22. // @has 'foo/index.html' '//a[@href="../all_item_types/static.FOO_FSTATIC.html"]' 'FOO_FSTATIC'
  23. #[doc(no_inline)]
  24. pub use all_item_types::FOO_FSTATIC;
  25. // @has 'foo/index.html' '//a[@href="../all_item_types/foreigntype.FooFType.html"]' 'FooFType'
  26. #[doc(no_inline)]
  27. pub use all_item_types::FooFType;
  28. // @has 'foo/index.html' '//a[@href="../all_item_types/fn.foo_fn.html"]' 'foo_fn'
  29. #[doc(no_inline)]
  30. pub use all_item_types::foo_fn;
  31. // @has 'foo/index.html' '//a[@href="../all_item_types/trait.FooTrait.html"]' 'FooTrait'
  32. #[doc(no_inline)]
  33. pub use all_item_types::FooTrait;
  34. // @has 'foo/index.html' '//a[@href="../all_item_types/struct.FooStruct.html"]' 'FooStruct'
  35. #[doc(no_inline)]
  36. pub use all_item_types::FooStruct;
  37. // @has 'foo/index.html' '//a[@href="../all_item_types/enum.FooEnum.html"]' 'FooEnum'
  38. #[doc(no_inline)]
  39. pub use all_item_types::FooEnum;
  40. // @has 'foo/index.html' '//a[@href="../all_item_types/union.FooUnion.html"]' 'FooUnion'
  41. #[doc(no_inline)]
  42. pub use all_item_types::FooUnion;
  43. // @has 'foo/index.html' '//a[@href="../all_item_types/type.FooType.html"]' 'FooType'
  44. #[doc(no_inline)]
  45. pub use all_item_types::FooType;
  46. // @has 'foo/index.html' '//a[@href="../all_item_types/static.FOO_STATIC.html"]' 'FOO_STATIC'
  47. #[doc(no_inline)]
  48. pub use all_item_types::FOO_STATIC;
  49. // @has 'foo/index.html' '//a[@href="../all_item_types/constant.FOO_CONSTANT.html"]' 'FOO_CONSTANT'
  50. #[doc(no_inline)]
  51. pub use all_item_types::FOO_CONSTANT;
  52. // @has 'foo/index.html' '//a[@href="../foo/macro.foo_macro.html"]' 'foo_macro'
  53. #[doc(no_inline)]
  54. pub use all_item_types::foo_macro;