forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
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#96931 - JohnTitor:rollup-3um8o4j, r=JohnTitor
Rollup of 7 pull requests Successful merges: - rust-lang#96543 (Remove hacks in `make_token_stream`.) - rust-lang#96887 (rustdoc: correct path to type alias methods) - rust-lang#96896 (Add regression test for rust-lang#68408) - rust-lang#96900 (Fix js error) - rust-lang#96903 (Use lifetimes on type-alias-impl-trait used in function signatures to infer output type lifetimes) - rust-lang#96916 (simplify length count) - rust-lang#96925 (Fix issue rust-lang#95151) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
15 changed files
with
92 additions
and
58 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 |
---|---|---|
|
@@ -331,7 +331,6 @@ li { | |
nav.sub { | ||
position: relative; | ||
font-size: 1rem; | ||
text-transform: uppercase; | ||
} | ||
|
||
.sub-container { | ||
|
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,14 @@ | ||
// ignore-order | ||
|
||
const QUERY = 'RawFd::as_raw_fd'; | ||
|
||
const EXPECTED = { | ||
'others': [ | ||
// Reproduction test for https://github.com/rust-lang/rust/issues/78724 | ||
// Validate that type alias methods get the correct path. | ||
{ 'path': 'std::os::unix::io::AsRawFd', 'name': 'as_raw_fd' }, | ||
{ 'path': 'std::os::wasi::io::AsRawFd', 'name': 'as_raw_fd' }, | ||
{ 'path': 'std::os::linux::process::PidFd', 'name': 'as_raw_fd' }, | ||
{ 'path': 'std::os::unix::io::RawFd', 'name': 'as_raw_fd' }, | ||
], | ||
}; |
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,9 @@ | ||
const QUERY = 'MyForeignType::my_method'; | ||
|
||
const EXPECTED = { | ||
'others': [ | ||
// Test case for https://github.com/rust-lang/rust/pull/96887#pullrequestreview-967154358 | ||
// Validates that the parent path for a foreign type method is correct. | ||
{ 'path': 'foreign_type_path::aaaaaaa::MyForeignType', 'name': 'my_method' }, | ||
], | ||
}; |
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 @@ | ||
#![feature(extern_types)] | ||
|
||
pub mod aaaaaaa { | ||
|
||
extern { | ||
pub type MyForeignType; | ||
} | ||
|
||
impl MyForeignType { | ||
pub fn my_method() {} | ||
} | ||
|
||
} |
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,22 @@ | ||
// check-pass | ||
|
||
// Make sure we don't have any false positives here. | ||
|
||
#![deny(dead_code)] | ||
|
||
enum X { | ||
A { _a: () }, | ||
B { _b: () }, | ||
} | ||
impl X { | ||
fn a() -> X { | ||
X::A { _a: () } | ||
} | ||
fn b() -> Self { | ||
Self::B { _b: () } | ||
} | ||
} | ||
|
||
fn main() { | ||
let (_, _) = (X::a(), X::b()); | ||
} |
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,10 @@ | ||
// check-pass | ||
|
||
// See https://github.com/rust-lang/rust/issues/95151 | ||
#[track_caller] | ||
macro_rules! _foo { | ||
() => {}; | ||
} | ||
|
||
fn main() { | ||
} |
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,17 @@ | ||
// check-pass | ||
|
||
#![feature(type_alias_impl_trait)] | ||
|
||
mod foo { | ||
type Ty<'a> = impl Sized; | ||
fn defining(s: &str) -> Ty<'_> { s } | ||
fn execute(ty: Ty<'_>) -> &str { todo!() } | ||
} | ||
|
||
mod bar { | ||
type Ty<'a> = impl FnOnce() -> &'a str; | ||
fn defining(s: &str) -> Ty<'_> { move || s } | ||
fn execute(ty: Ty<'_>) -> &str { ty() } | ||
} | ||
|
||
fn main() {} |
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