Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
6d45529
Fix #103451, find_width_of_character_at_span return width with 1 when…
chenyukang Oct 25, 2022
8dbd817
Upgrade cc for working is_flag_supported on cross-compiles
palfrey Oct 29, 2022
a9d7cfc
Update cc in Cargo.lock
palfrey Oct 29, 2022
f32e678
Rename some variables.
nnethercote Nov 3, 2022
84ca2c3
Clarify range calculations.
nnethercote Nov 3, 2022
34b32b0
Use `Mode` less.
nnethercote Nov 3, 2022
7dbf2c0
Make non-ASCII errors more consistent.
nnethercote Nov 3, 2022
a21c045
Improve comments.
nnethercote Nov 3, 2022
d963686
Refactor `cook_lexer_literal`.
nnethercote Nov 3, 2022
a203482
Inline and remove `validate_int_literal`.
nnethercote Nov 3, 2022
f8e2cef
Move intra-doc link checks to a separate function.
ehuss Nov 4, 2022
57b2290
Remove reference from the intra-doc link checker.
ehuss Nov 4, 2022
a838952
Remove `unescape_byte_literal`.
nnethercote Nov 4, 2022
43d21b5
Rename some `result` variables as `res`, for consistency.
nnethercote Nov 4, 2022
13d4c61
Place config.toml in current working directory if config not found
ted-tanner Nov 5, 2022
4c3cad0
Add --print=split-debuginfo
kamirr Nov 7, 2022
0c9896b
Fix `const_fn_trait_ref_impl`, add test for it
onestacked Nov 7, 2022
d97fa25
Fix invalid background-image file name
GuillaumeGomez Nov 7, 2022
87c190c
Reworked const fn ref tests
onestacked Nov 7, 2022
66e8a29
Only set config.config to None when using default path
ted-tanner Nov 7, 2022
ae5cc9c
fix: lint against lint functions
Rejyr Nov 8, 2022
d6c97a3
Simplify `unescape_{char,byte}`.
nnethercote Nov 8, 2022
807a7bf
clarify licensing situation of mpsc and spsc queue
pietroalbini Nov 8, 2022
2541408
Rollup merge of #103521 - chenyukang:yukang/fix-103451-avoid-hang, r=…
GuillaumeGomez Nov 8, 2022
05cbd26
Rollup merge of #103744 - palfrey:unwind-upgrade-cc, r=Mark-Simulacrum
GuillaumeGomez Nov 8, 2022
f80e4a2
Rollup merge of #103919 - nnethercote:unescaping-cleanups, r=matklad
GuillaumeGomez Nov 8, 2022
6a6cc6b
Rollup merge of #103952 - ehuss:dont-intra-linkcheck-reference, r=Mar…
GuillaumeGomez Nov 8, 2022
790746e
Rollup merge of #104027 - ted-tanner:issue-103697-fix, r=jyn514
GuillaumeGomez Nov 8, 2022
2f37412
Rollup merge of #104104 - kamirr:master, r=lcnr
GuillaumeGomez Nov 8, 2022
6926c04
Rollup merge of #104113 - ink-feather-org:fix_const_fn_ref_impls, r=c…
GuillaumeGomez Nov 8, 2022
fab18f8
Rollup merge of #104114 - GuillaumeGomez:background-image-path, r=not…
GuillaumeGomez Nov 8, 2022
b088452
Rollup merge of #104132 - Rejyr:rustc_lint-function-lints, r=davidtwco
GuillaumeGomez Nov 8, 2022
c421dac
Rollup merge of #104139 - ferrocene:pa-channel-licensing, r=pnkfelix
GuillaumeGomez Nov 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
11 changes: 9 additions & 2 deletions library/std/src/sync/mpsc/mpsc_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,15 @@
//! method, and see the method for more information about it. Due to this
//! caveat, this queue might not be appropriate for all use-cases.

// https://www.1024cores.net/home/lock-free-algorithms
// /queues/non-intrusive-mpsc-node-based-queue
// The original implementation is based off:
// https://www.1024cores.net/home/lock-free-algorithms/queues/non-intrusive-mpsc-node-based-queue
//
// Note that back when the code was imported, it was licensed under the BSD-2-Clause license:
// http://web.archive.org/web/20110411011612/https://www.1024cores.net/home/lock-free-algorithms/queues/unbounded-spsc-queue
//
// The original author of the code agreed to relicense it under `MIT OR Apache-2.0` in 2017, so as
// of today the license of this file is the same as the rest of the codebase:
// https://github.com/rust-lang/rust/pull/42149

#[cfg(all(test, not(target_os = "emscripten")))]
mod tests;
Expand Down
8 changes: 8 additions & 0 deletions library/std/src/sync/mpsc/spsc_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@
//! concurrently between two threads. This data structure is safe to use and
//! enforces the semantics that there is one pusher and one popper.

// The original implementation is based off:
// https://www.1024cores.net/home/lock-free-algorithms/queues/unbounded-spsc-queue
//
// Note that back when the code was imported, it was licensed under the BSD-2-Clause license:
// http://web.archive.org/web/20110411011612/https://www.1024cores.net/home/lock-free-algorithms/queues/unbounded-spsc-queue
//
// The original author of the code agreed to relicense it under `MIT OR Apache-2.0` in 2017, so as
// of today the license of this file is the same as the rest of the codebase:
// https://github.com/rust-lang/rust/pull/42149

#[cfg(all(test, not(target_os = "emscripten")))]
mod tests;
Expand Down