diff options
| author | bors <bors@rust-lang.org> | 2021-11-10 06:15:50 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-11-10 06:15:50 +0000 |
| commit | 493ea776ebdecb7ab318444525115810de255c20 (patch) | |
| tree | 64278497813d9a466c8053abe81dfd9760e31296 /library/std/src | |
| parent | f2f55e8da927351655c73cca0ace77f5a82daed0 (diff) | |
| parent | e7375016eb9a7d3bc19d9d349c71e18b76cceefd (diff) | |
| download | rust-493ea776ebdecb7ab318444525115810de255c20.tar.gz rust-493ea776ebdecb7ab318444525115810de255c20.zip | |
Auto merge of #90754 - matthiaskrgr:rollup-v0483m5, r=matthiaskrgr
Rollup of 3 pull requests Successful merges: - #90690 (kmc-solid: Avoid the use of `asm_const`) - #90748 (Add a real tracking issue for `CommandExt::groups`) - #90751 (Update books) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/keyword_docs.rs | 2 | ||||
| -rw-r--r-- | library/std/src/os/unix/process.rs | 2 | ||||
| -rw-r--r-- | library/std/src/sys/solid/abi/mod.rs | 13 |
3 files changed, 8 insertions, 9 deletions
diff --git a/library/std/src/keyword_docs.rs b/library/std/src/keyword_docs.rs index 2e938070374..a8365071d61 100644 --- a/library/std/src/keyword_docs.rs +++ b/library/std/src/keyword_docs.rs @@ -182,7 +182,7 @@ mod break_keyword {} /// T` and `*mut T`. More about `const` as used in raw pointers can be read at the Rust docs for the [pointer primitive]. /// /// [pointer primitive]: pointer -/// [Rust Book]: ../book/ch03-01-variables-and-mutability.html#differences-between-variables-and-constants +/// [Rust Book]: ../book/ch03-01-variables-and-mutability.html#constants /// [Reference]: ../reference/items/constant-items.html /// [const-eval]: ../reference/const_eval.html mod const_keyword {} diff --git a/library/std/src/os/unix/process.rs b/library/std/src/os/unix/process.rs index 286a7c3b386..01b8303a6c3 100644 --- a/library/std/src/os/unix/process.rs +++ b/library/std/src/os/unix/process.rs @@ -39,7 +39,7 @@ pub trait CommandExt: Sealed { /// Sets the supplementary group IDs for the calling process. Translates to /// a `setgroups` call in the child process. - #[unstable(feature = "setgroups", issue = "38527", reason = "")] + #[unstable(feature = "setgroups", issue = "90747")] fn groups( &mut self, #[cfg(not(target_os = "vxworks"))] groups: &[u32], diff --git a/library/std/src/sys/solid/abi/mod.rs b/library/std/src/sys/solid/abi/mod.rs index 3526440fb85..3205f0db85f 100644 --- a/library/std/src/sys/solid/abi/mod.rs +++ b/library/std/src/sys/solid/abi/mod.rs @@ -4,17 +4,15 @@ mod fs; pub mod sockets; pub use self::fs::*; -pub const SOLID_BP_PROGRAM_EXITED: usize = 15; -pub const SOLID_BP_CSABORT: usize = 16; - #[inline(always)] pub fn breakpoint_program_exited(tid: usize) { unsafe { match () { + // SOLID_BP_PROGRAM_EXITED = 15 #[cfg(target_arch = "arm")] - () => asm!("bkpt #{}", const SOLID_BP_PROGRAM_EXITED, in("r0") tid), + () => asm!("bkpt #15", in("r0") tid), #[cfg(target_arch = "aarch64")] - () => asm!("hlt #{}", const SOLID_BP_PROGRAM_EXITED, in("x0") tid), + () => asm!("hlt #15", in("x0") tid), } } } @@ -23,10 +21,11 @@ pub fn breakpoint_program_exited(tid: usize) { pub fn breakpoint_abort() { unsafe { match () { + // SOLID_BP_CSABORT = 16 #[cfg(target_arch = "arm")] - () => asm!("bkpt #{}", const SOLID_BP_CSABORT), + () => asm!("bkpt #16"), #[cfg(target_arch = "aarch64")] - () => asm!("hlt #{}", const SOLID_BP_CSABORT), + () => asm!("hlt #16"), } } } |
