Skip to content

Rollup of 8 pull requests #87269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Jul 19, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
30d49a4
Rustdoc accessibility: make the sidebar headers actual headers
notriddle Jul 17, 2021
ee97b4a
Remove redundant CSS
notriddle Jul 17, 2021
10bdc42
Fix test cases for header titles in sidebar
notriddle Jul 17, 2021
1941764
Fix sidebar-mobile test to focus on an actual focusable element
notriddle Jul 17, 2021
46010c4
Remove args cleanup code.
sunfishcode Jul 17, 2021
9bb11ba
Remove an unnecessary `Mutex` around argument initialization.
sunfishcode Jul 17, 2021
c3df0ae
x.py fmt
sunfishcode Jul 18, 2021
6ca0e5e
Add --nocapture option to rustdoc
GuillaumeGomez Jun 11, 2021
111cca1
Add test for rustdoc --nocapture option
GuillaumeGomez Jun 11, 2021
893e07e
Add doc for --nocapture
GuillaumeGomez Jun 11, 2021
6461cde
Don't capture child process output at all when --no-capture is used
GuillaumeGomez Jul 9, 2021
d5e3294
Add invalid rust code for test
GuillaumeGomez Jul 9, 2021
d10703c
Fix item info display
GuillaumeGomez Jul 18, 2021
57f7501
Add test to check width of item-info
GuillaumeGomez Jul 18, 2021
93aa890
Extend HIR-based WF checking to associated type defaults
Aaron1011 Jul 18, 2021
33a8e9f
triagebot shortcut config
Llandy3d Jul 18, 2021
f26fbe2
Move asm! and global_asm! to core::arch
bstrie Jul 17, 2021
98e9d16
Don't create references to uninitialized data in List::from_arena
SkiFire13 Jul 19, 2021
0fce468
Rollup merge of #86230 - GuillaumeGomez:nocapture, r=camelid
GuillaumeGomez Jul 19, 2021
456ebd3
Rollup merge of #87210 - notriddle:notriddle/rustdoc-sidebar-headers,…
GuillaumeGomez Jul 19, 2021
65b7aa9
Rollup merge of #87227 - bstrie:asm2arch, r=Amanieu
GuillaumeGomez Jul 19, 2021
6df9df7
Rollup merge of #87236 - sunfishcode:avoid-locking-args, r=joshtriplett
GuillaumeGomez Jul 19, 2021
8cf995f
Rollup merge of #87251 - GuillaumeGomez:item-info-width, r=notriddle
GuillaumeGomez Jul 19, 2021
4dd32a1
Rollup merge of #87256 - Aaron1011:hir-wf-assoc-default, r=oli-obk
GuillaumeGomez Jul 19, 2021
5ef6439
Rollup merge of #87259 - Llandy3d:triagebot_shortcuts, r=nikomatsakis
GuillaumeGomez Jul 19, 2021
6cb69ea
Rollup merge of #87268 - SkiFire13:fix-uninit-ref-list, r=nagisa
GuillaumeGomez Jul 19, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion library/core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,5 +316,35 @@ pub mod primitive;
#[unstable(feature = "stdsimd", issue = "48556")]
mod core_arch;

#[doc = include_str!("../../stdarch/crates/core_arch/src/core_arch_docs.md")]
#[stable(feature = "simd_arch", since = "1.27.0")]
pub use core_arch::arch;
pub mod arch {
#[stable(feature = "simd_arch", since = "1.27.0")]
pub use crate::core_arch::arch::*;

/// Inline assembly.
///
/// Read the [unstable book] for the usage.
///
/// [unstable book]: ../../unstable-book/library-features/asm.html
#[unstable(
feature = "asm",
issue = "72016",
reason = "inline assembly is not stable enough for use and is subject to change"
)]
#[rustc_builtin_macro]
pub macro asm("assembly template", $(operands,)* $(options($(option),*))?) {
/* compiler built-in */
}

/// Module-level inline assembly.
#[unstable(
feature = "global_asm",
issue = "35119",
reason = "`global_asm!` is not stable enough for use and is subject to change"
)]
#[rustc_builtin_macro]
pub macro global_asm("assembly template", $(operands,)* $(options($(option),*))?) {
/* compiler built-in */
}
}
38 changes: 0 additions & 38 deletions library/core/src/macros/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1312,27 +1312,6 @@ pub(crate) mod builtin {
($cond:expr, $($arg:tt)+) => {{ /* compiler built-in */ }};
}

/// Inline assembly.
///
/// Read the [unstable book] for the usage.
///
/// [unstable book]: ../unstable-book/library-features/asm.html
#[unstable(
feature = "asm",
issue = "72016",
reason = "inline assembly is not stable enough for use and is subject to change"
)]
#[rustc_builtin_macro]
#[macro_export]
macro_rules! asm {
("assembly template",
$(operands,)*
$(options($(option),*))?
) => {
/* compiler built-in */
};
}

/// LLVM-style inline assembly.
///
/// Read the [unstable book] for the usage.
Expand All @@ -1355,23 +1334,6 @@ pub(crate) mod builtin {
};
}

/// Module-level inline assembly.
#[unstable(
feature = "global_asm",
issue = "35119",
reason = "`global_asm!` is not stable enough for use and is subject to change"
)]
#[rustc_builtin_macro]
#[macro_export]
macro_rules! global_asm {
("assembly template",
$(operands,)*
$(options($(option),*))?
) => {
/* compiler built-in */
};
}

/// Prints passed tokens into the standard output.
#[unstable(
feature = "log_syntax",
Expand Down
22 changes: 19 additions & 3 deletions library/core/src/prelude/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,27 @@ pub use crate::hash::macros::Hash;
#[allow(deprecated)]
#[doc(no_inline)]
pub use crate::{
asm, assert, cfg, column, compile_error, concat, concat_idents, env, file, format_args,
format_args_nl, global_asm, include, include_bytes, include_str, line, llvm_asm, log_syntax,
module_path, option_env, stringify, trace_macros,
assert, cfg, column, compile_error, concat, concat_idents, env, file, format_args,
format_args_nl, include, include_bytes, include_str, line, llvm_asm, log_syntax, module_path,
option_env, stringify, trace_macros,
};

#[unstable(
feature = "asm",
issue = "72016",
reason = "inline assembly is not stable enough for use and is subject to change"
)]
#[doc(no_inline)]
pub use crate::arch::asm;

#[unstable(
feature = "global_asm",
issue = "35119",
reason = "`global_asm!` is not stable enough for use and is subject to change"
)]
#[doc(no_inline)]
pub use crate::arch::global_asm;

#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
#[allow(deprecated, deprecated_in_future)]
#[doc(no_inline)]
Expand Down
6 changes: 3 additions & 3 deletions library/std/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,9 +556,9 @@ pub use core::{
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
#[allow(deprecated)]
pub use core::{
asm, assert, assert_matches, cfg, column, compile_error, concat, concat_idents, env, file,
format_args, format_args_nl, global_asm, include, include_bytes, include_str, line, llvm_asm,
log_syntax, module_path, option_env, stringify, trace_macros,
assert, assert_matches, cfg, column, compile_error, concat, concat_idents, env, file,
format_args, format_args_nl, include, include_bytes, include_str, line, llvm_asm, log_syntax,
module_path, option_env, stringify, trace_macros,
};

#[stable(feature = "core_primitive", since = "1.43.0")]
Expand Down
24 changes: 20 additions & 4 deletions library/std/src/prelude/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,28 @@ pub use crate::result::Result::{self, Err, Ok};
#[allow(deprecated)]
#[doc(no_inline)]
pub use core::prelude::v1::{
asm, assert, cfg, column, compile_error, concat, concat_idents, env, file, format_args,
format_args_nl, global_asm, include, include_bytes, include_str, line, llvm_asm, log_syntax,
module_path, option_env, stringify, trace_macros, Clone, Copy, Debug, Default, Eq, Hash, Ord,
PartialEq, PartialOrd,
assert, cfg, column, compile_error, concat, concat_idents, env, file, format_args,
format_args_nl, include, include_bytes, include_str, line, llvm_asm, log_syntax, module_path,
option_env, stringify, trace_macros, Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq,
PartialOrd,
};

#[unstable(
feature = "asm",
issue = "72016",
reason = "inline assembly is not stable enough for use and is subject to change"
)]
#[doc(no_inline)]
pub use core::prelude::v1::asm;

#[unstable(
feature = "global_asm",
issue = "35119",
reason = "`global_asm!` is not stable enough for use and is subject to change"
)]
#[doc(no_inline)]
pub use core::prelude::v1::global_asm;

// FIXME: Attribute and internal derive macros are not documented because for them rustdoc generates
// dead links which fail link checker testing.
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
Expand Down