Skip to content

Rollup of 7 pull requests #95827

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 22 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
39bff4b
don't report int/float ambiguity when we have previous errors
compiler-errors Apr 7, 2022
2f46de2
Add current_thread_unique_ptr() in std::sys_common.
m-ou-se Apr 6, 2022
619163e
Add futex-based ReentrantMutex on Linux.
m-ou-se Apr 6, 2022
d5e0eaf
Make current_thread_unique_ptr work during thread destruction.
m-ou-se Apr 6, 2022
6888fb1
Move current_thread_unique_ptr to the only module that uses it.
m-ou-se Apr 6, 2022
dc82718
Initialize thread local with const{}.
m-ou-se Apr 6, 2022
aeb01c3
Add debug asserts to futex ReentrantMutex impl.
m-ou-se Apr 6, 2022
0664b8a
Add #[deny(unsafe_op_in_unsafe_fn)] to thread_local!(const).
m-ou-se Apr 6, 2022
5974c18
[macro_metavar_expr] Add tests to ensure the feature requirement
c410-f3r Apr 7, 2022
d0cc986
check_doc_keyword: don't alloc string for emptiness check
klensy Apr 5, 2022
43d0497
Fix invalid array access in `beautify_doc_string`
GuillaumeGomez Apr 8, 2022
5e8bd9b
Add test for empty doc comments with a backline
GuillaumeGomez Apr 8, 2022
1040cab
WIP PROOF-OF-CONCEPT: Make the compiler complain about all int<->ptr …
Gankra Mar 21, 2022
98a4834
Split `fuzzy_provenance_casts` into lossy and fuzzy, feature gate and…
niluxv Apr 2, 2022
f6c7f10
Remove extra space before a where clause in the documentation
Urgau Apr 8, 2022
c5693d3
Rollup merge of #95599 - niluxv:strict-provenance-lint, r=michaelwoer…
Dylan-DPC Apr 8, 2022
b367ce8
Rollup merge of #95697 - klensy:no-strings, r=petrochenkov
Dylan-DPC Apr 8, 2022
66b3081
Rollup merge of #95727 - m-ou-se:futex-reentrantmutex, r=Amanieu
Dylan-DPC Apr 8, 2022
8b5a795
Rollup merge of #95751 - compiler-errors:ambig-int, r=jackh726
Dylan-DPC Apr 8, 2022
7328ae9
Rollup merge of #95764 - c410-f3r:metavar-test, r=petrochenkov
Dylan-DPC Apr 8, 2022
1a0aaee
Rollup merge of #95804 - GuillaumeGomez:empty-doc-comment-with-backli…
Dylan-DPC Apr 8, 2022
00c3d88
Rollup merge of #95813 - Urgau:rustdoc-where-clause-space, r=Guillaum…
Dylan-DPC Apr 8, 2022
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
Prev Previous commit
Next Next commit
Initialize thread local with const{}.
  • Loading branch information
m-ou-se committed Apr 7, 2022
commit dc827183cb48eae6a7fa69b85d0c804dac62531c
2 changes: 1 addition & 1 deletion library/std/src/sys/unix/locks/futex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,6 @@ impl ReentrantMutex {
/// This can be used as a non-null usize-sized ID.
pub fn current_thread_unique_ptr() -> usize {
// Use a non-drop type to make sure it's still available during thread destruction.
thread_local! { static X: u8 = 0 }
thread_local! { static X: u8 = const { 0 } }
X.with(|x| <*const _>::addr(x))
}