Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 30dfb9e

Browse files
committed
Auto merge of rust-lang#119970 - GuillaumeGomez:rollup-p53c19o, r=GuillaumeGomez
Rollup of 3 pull requests Successful merges: - rust-lang#119561 (rustdoc: rename `issue-\d+.rs` tests to have meaningful names (part 5)) - rust-lang#119742 (ARMv6K HorizonOS - Fix backlog for UnixListener) - rust-lang#119960 (Inline 2 functions that appear in dep-graph profiles.) r? `@ghost` `@rustbot` modify labels: rollup
2 parents 665d2c6 + d635cec commit 30dfb9e

28 files changed

+126
-58
lines changed

compiler/rustc_index_macros/src/newtype.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ impl Parse for Newtype {
263263
impl std::ops::Add<usize> for #name {
264264
type Output = Self;
265265

266+
#[inline]
266267
fn add(self, other: usize) -> Self {
267268
Self::from_usize(self.index() + other)
268269
}

compiler/rustc_query_system/src/dep_graph/serialized.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ impl EdgeHeader {
169169
}
170170
}
171171

172+
#[inline]
172173
fn mask(bits: usize) -> usize {
173174
usize::MAX >> ((std::mem::size_of::<usize>() * 8) - bits)
174175
}

library/std/src/os/unix/net/listener.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@ impl UnixListener {
7373
unsafe {
7474
let inner = Socket::new_raw(libc::AF_UNIX, libc::SOCK_STREAM)?;
7575
let (addr, len) = sockaddr_un(path.as_ref())?;
76-
#[cfg(any(target_os = "windows", target_os = "redox", target_os = "espidf"))]
76+
#[cfg(any(
77+
target_os = "windows",
78+
target_os = "redox",
79+
target_os = "espidf",
80+
target_os = "horizon"
81+
))]
7782
const backlog: libc::c_int = 128;
7883
#[cfg(any(target_os = "linux", target_os = "freebsd", target_os = "openbsd"))]
7984
const backlog: libc::c_int = -1;
@@ -83,7 +88,8 @@ impl UnixListener {
8388
target_os = "linux",
8489
target_os = "freebsd",
8590
target_os = "openbsd",
86-
target_os = "espidf"
91+
target_os = "espidf",
92+
target_os = "horizon"
8793
)))]
8894
const backlog: libc::c_int = libc::SOMAXCONN;
8995

tests/rustdoc/issue-52873.rs renamed to tests/rustdoc-ui/ice-blanket-impl-52873.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// check-pass
2+
// https://github.com/rust-lang/rust/issues/52873
3+
#![crate_name="foo"]
4+
15
// Regression test for #52873. We used to ICE due to unexpected
26
// overflows when checking for "blanket impl inclusion".
37

tests/rustdoc/issue-55001.rs renamed to tests/rustdoc-ui/ice-blanket-impl-selection-55001.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// check-pass
2+
// https://github.com/rust-lang/rust/issues/55001
3+
#![crate_name="foo"]
4+
15
// Regression test for issue #55001. Previously, we would incorrectly
26
// cache certain trait selection results when checking for blanket impls,
37
// resulting in an ICE when we tried to confirm the cached ParamCandidate

tests/rustdoc/issue-50159.rs renamed to tests/rustdoc/auto-trait-bounds-by-associated-type-50159.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// https://github.com/rust-lang/rust/issues/50159
2+
#![crate_name="foo"]
3+
14
pub trait Signal {
25
type Item;
36
}
@@ -10,7 +13,7 @@ impl<B, C> Signal2 for B where B: Signal<Item = C> {
1013
type Item2 = C;
1114
}
1215

13-
// @has issue_50159/struct.Switch.html
16+
// @has foo/struct.Switch.html
1417
// @has - '//h3[@class="code-header"]' 'impl<B> Send for Switch<B>where <B as Signal>::Item: Send'
1518
// @has - '//h3[@class="code-header"]' 'impl<B> Sync for Switch<B>where <B as Signal>::Item: Sync'
1619
// @count - '//*[@id="implementations-list"]//*[@class="impl"]' 0

tests/rustdoc/issue-54705.rs renamed to tests/rustdoc/auto-trait-bounds-inference-variables-54705.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
// https://github.com/rust-lang/rust/issues/54705
2+
#![crate_name="foo"]
3+
14
pub trait ScopeHandle<'scope> {}
25

3-
// @has issue_54705/struct.ScopeFutureContents.html
6+
// @has foo/struct.ScopeFutureContents.html
47
// @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
58
// "impl<'scope, S> Send for ScopeFutureContents<'scope, S>where S: Sync"
69
//

tests/rustdoc/issue-51236.rs renamed to tests/rustdoc/auto-trait-bounds-where-51236.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// https://github.com/rust-lang/rust/issues/51236
2+
#![crate_name="foo"]
3+
14
use std::marker::PhantomData;
25

36
pub mod traits {
@@ -6,7 +9,7 @@ pub mod traits {
69
}
710
}
811

9-
// @has issue_51236/struct.Owned.html
12+
// @has foo/struct.Owned.html
1013
// @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
1114
// "impl<T> Send for Owned<T>where <T as Owned<'static>>::Reader: Send"
1215
pub struct Owned<T> where T: for<'a> ::traits::Owned<'a> {

tests/rustdoc/issue-55321.rs renamed to tests/rustdoc/auto-trait-negative-impl-55321.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
// https://github.com/rust-lang/rust/issues/55321
2+
#![crate_name="foo"]
3+
14
#![feature(negative_impls)]
25

3-
// @has issue_55321/struct.A.html
6+
// @has foo/struct.A.html
47
// @has - '//*[@id="trait-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
58
// "impl !Send for A"
69
// @has - '//*[@id="trait-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
@@ -10,7 +13,7 @@ pub struct A();
1013
impl !Send for A {}
1114
impl !Sync for A {}
1215

13-
// @has issue_55321/struct.B.html
16+
// @has foo/struct.B.html
1417
// @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
1518
// "impl<T> !Send for B<T>"
1619
// @has - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]//h3[@class="code-header"]' \
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// https://github.com/rust-lang/rust/issues/47197
2+
#![crate_name="foo"]
3+
4+
// @has foo/fn.whose_woods_these_are_i_think_i_know.html
5+
6+
/**
7+
* snow
8+
9+
* ice
10+
*/
11+
pub fn whose_woods_these_are_i_think_i_know() {}

0 commit comments

Comments
 (0)