Skip to content

Rollup of 8 pull requests #111080

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

Closed
wants to merge 31 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
5dd54fd
lint/ctypes: ext. abi fn-ptr in internal abi fn
davidtwco Mar 1, 2023
c1dcf26
abi: avoid ice for non-ffi-safe fn ptrs
davidtwco Mar 1, 2023
05c1e6b
stabilize debugger visualizer attribute
gibbyfree Mar 2, 2023
92ae35f
lint/ctypes: multiple external fn-ptrs in ty
davidtwco Mar 2, 2023
5c34f77
whitespace, delete unstable book page
gibbyfree Mar 2, 2023
3e7ca3e
lint/ctypes: check other types for ext. fn-ptr ty
davidtwco Mar 2, 2023
1a7132d
rustdoc-search: fix incorrect doc comment
notriddle Apr 14, 2023
4c11822
rustdoc: restructure type search engine to pick-and-use IDs
notriddle Apr 15, 2023
1ece1ea
Stablize raw-dylib, link_ordinal and -Cdlltool
dpaoliello Mar 27, 2023
b6f81e0
rustdoc-search: give longer notification for type corrections
notriddle Apr 19, 2023
e0a7462
rustdoc-search: clean up `checkIfInGenerics` call at end of `checkType`
notriddle Apr 20, 2023
7529d87
rustdoc-search: make type name correction choice deterministic
notriddle Apr 20, 2023
395840c
rustdoc-search: use more descriptive "x not found; y instead" message
notriddle Apr 20, 2023
d77f636
libtest: add tests for junit output format
durin42 Apr 21, 2023
610f827
junit: also include per-case stdout in xml
durin42 Apr 21, 2023
d5e7ac5
avoid duplicating TLS state between test std and realstd
RalfJung Apr 28, 2023
58537cd
junit: fix typo in comment and don't include output for passes when n…
durin42 Apr 28, 2023
bc68de9
remove pointless `FIXME` in `bootstrap::download`
onur-ozkan May 1, 2023
b540b5f
Tweak borrow suggestion
compiler-errors Apr 18, 2023
1ca3bdf
Rename some suggestion/note functions
compiler-errors Apr 18, 2023
f0e7af4
Make suggest_deref_or_ref return a multipart suggestion
compiler-errors Apr 18, 2023
b00e5f3
remove bootstrap from tests
gibbyfree Mar 6, 2023
c9653a6
fix stderrs
gibbyfree Mar 6, 2023
1795530
Rollup merge of #108611 - davidtwco:issue-94223-external-abi-fn-ptr-i…
matthiaskrgr May 1, 2023
dcef3b7
Rollup merge of #108668 - gibbyfree:stabilizedebuggervisualizer, r=we…
matthiaskrgr May 1, 2023
ca7717e
Rollup merge of #109677 - dpaoliello:rawdylib, r=michaelwoerister,wes…
matthiaskrgr May 1, 2023
b3261cb
Rollup merge of #110371 - notriddle:notriddle/search-corrections, r=G…
matthiaskrgr May 1, 2023
4af1284
Rollup merge of #110504 - compiler-errors:tweak-borrow-sugg, r=cjgillot
matthiaskrgr May 1, 2023
35bc61e
Rollup merge of #110651 - durin42:xunit-stdout, r=cuviper
matthiaskrgr May 1, 2023
ffd8460
Rollup merge of #110946 - RalfJung:tls-realstd, r=m-ou-se
matthiaskrgr May 1, 2023
5945ab8
Rollup merge of #111069 - ozkanonur:remove-pointless-fixme, r=albertl…
matthiaskrgr May 1, 2023
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
5 changes: 5 additions & 0 deletions library/std/src/sys/common/thread_local/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#![unstable(feature = "thread_local_internals", reason = "should not be necessary", issue = "none")]

// There are three thread-local implementations: "static", "fast", "OS".
// The "OS" thread local key type is accessed via platform-specific API calls and is slow, while the
// "fast" key type is accessed via code generated via LLVM, where TLS keys are set up by the linker.
// "static" is for single-threaded platforms where a global static is sufficient.

cfg_if::cfg_if! {
if #[cfg(all(target_family = "wasm", not(target_feature = "atomics")))] {
#[doc(hidden)]
Expand Down
2 changes: 1 addition & 1 deletion library/std/src/sys/common/thread_local/os_local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub macro thread_local_inner {
) -> $crate::option::Option<&'static $t> {
const INIT_EXPR: $t = $init;

// On platforms without `#[thread_local]` we fall back to the
// On platforms without `#[thread_local]` we fall back to the
// same implementation as below for os thread locals.
#[inline]
const fn __init() -> $t { INIT_EXPR }
Expand Down
32 changes: 16 additions & 16 deletions library/std/src/thread/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,22 +193,22 @@ pub use scoped::{scope, Scope, ScopedJoinHandle};
#[macro_use]
mod local;

#[stable(feature = "rust1", since = "1.0.0")]
pub use self::local::{AccessError, LocalKey};

// Provide the type used by the thread_local! macro to access TLS keys. This
// needs to be kept in sync with the macro itself (in `local.rs`).
// There are three types: "static", "fast", "OS". The "OS" thread local key
// type is accessed via platform-specific API calls and is slow, while the "fast"
// key type is accessed via code generated via LLVM, where TLS keys are set up
// by the elf linker. "static" is for single-threaded platforms where a global
// static is sufficient.

// Implementation details used by the thread_local!{} macro.
#[doc(hidden)]
#[unstable(feature = "thread_local_internals", issue = "none")]
pub mod local_impl {
pub use crate::sys::common::thread_local::{thread_local_inner, Key};
cfg_if::cfg_if! {
if #[cfg(test)] {
// Avoid duplicating the global state assoicated with thread-locals between this crate and
// realstd. Miri relies on this.
pub use realstd::thread::{local_impl, AccessError, LocalKey};
} else {
#[stable(feature = "rust1", since = "1.0.0")]
pub use self::local::{AccessError, LocalKey};

// Implementation details used by the thread_local!{} macro.
#[doc(hidden)]
#[unstable(feature = "thread_local_internals", issue = "none")]
pub mod local_impl {
pub use crate::sys::common::thread_local::{thread_local_inner, Key};
}
}
}

////////////////////////////////////////////////////////////////////////////////
Expand Down