forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#90265 - GuillaumeGomez:rollup-gx3ficp, r=Guil…
…laumeGomez Rollup of 5 pull requests Successful merges: - rust-lang#90017 (Add a couple tests for normalize under binder issues) - rust-lang#90079 (enable `i8mm` target feature on aarch64 and arm) - rust-lang#90233 (Tooltip overflow) - rust-lang#90257 (Changed slice.swap documentation for better readability) - rust-lang#90261 (Move back to linux builder on try builds) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
8 changed files
with
48 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// The goal of this test is to ensure that the tooltip `.information` class doesn't | ||
// have overflow and max-width CSS rules set because they create a bug in firefox on | ||
// mac. For more information: https://github.com/rust-lang/rust/issues/89185 | ||
goto: file://|DOC_PATH|/test_docs/fn.foo.html | ||
assert-css: (".docblock > .information", { | ||
"overflow-x": "visible", | ||
"max-width": "none" | ||
}, ALL) |
13 changes: 13 additions & 0 deletions
13
src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-56556.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// check-pass | ||
|
||
fn foo<T>(t: T) -> usize | ||
where | ||
for<'a> &'a T: IntoIterator, | ||
for<'a> <&'a T as IntoIterator>::IntoIter: ExactSizeIterator, | ||
{ | ||
t.into_iter().len() | ||
} | ||
|
||
fn main() { | ||
foo::<Vec<u32>>(vec![]); | ||
} |
15 changes: 15 additions & 0 deletions
15
src/test/ui/higher-rank-trait-bounds/normalize-under-binder/issue-76956.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// check-pass | ||
|
||
use std::ops::Deref; | ||
|
||
struct Data { | ||
boxed: Box<&'static i32> | ||
} | ||
|
||
impl Data { | ||
fn use_data(&self, user: impl for <'a> FnOnce(<Box<&'a i32> as Deref>::Target)) { | ||
user(*self.boxed) | ||
} | ||
} | ||
|
||
fn main() {} |