Skip to content

Commit 730c722

Browse files
committed
Fix an error from "unused" lint + Fix rebase
1 parent d98100b commit 730c722

File tree

3 files changed

+75
-82
lines changed

3 files changed

+75
-82
lines changed

src/libstd/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ pub use core::{assert_eq, assert_ne, debug_assert, debug_assert_eq, debug_assert
353353
#[stable(feature = "rust1", since = "1.0.0")]
354354
pub use core::{unreachable, unimplemented, write, writeln, try};
355355

356+
#[allow(unused_imports)] // macros from `alloc` are not used on all platforms
356357
#[macro_use]
357358
extern crate alloc as alloc_crate;
358359
extern crate alloc_system;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,6 @@ pub use all_item_types::FOO_STATIC;
6666
#[doc(no_inline)]
6767
pub use all_item_types::FOO_CONSTANT;
6868

69-
// @has 'foo/index.html' '//a[@href="../all_item_types/macro.foo_macro.html"]' 'foo_macro'
69+
// @has 'foo/index.html' '//a[@href="../foo/macro.foo_macro.html"]' 'foo_macro'
7070
#[doc(no_inline)]
7171
pub use all_item_types::foo_macro;

0 commit comments

Comments
 (0)