Skip to content

Commit

Permalink
rustdoc supports const re-exports
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Apr 29, 2020
1 parent e91aebc commit a1f81ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
File renamed without changes.
14 changes: 7 additions & 7 deletions src/test/rustdoc/issue-27362.rs
@@ -1,10 +1,10 @@
// aux-build:issue-27362.rs
// aux-build:issue-27362-aux.rs
// ignore-cross-compile
// ignore-test This test fails on beta/stable #32019

extern crate issue_27362;
pub use issue_27362 as quux;
extern crate issue_27362_aux;

// @matches issue_27362/quux/fn.foo.html '//pre' "pub const fn foo()"
// @matches issue_27362/quux/fn.bar.html '//pre' "pub const unsafe fn bar()"
// @matches issue_27362/quux/struct.Foo.html '//code' "const unsafe fn baz()"
pub use issue_27362_aux::*;

// @matches issue_27362/fn.foo.html '//pre' "pub const fn foo()"
// @matches issue_27362/fn.bar.html '//pre' "pub const unsafe fn bar()"
// @matches issue_27362/struct.Foo.html '//code' "const unsafe fn baz()"

0 comments on commit a1f81ff

Please sign in to comment.