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#99586 - ehuss:beta-backports, r=ehuss
[beta] Beta 1.63 backports * Reference: Revert $$ macro_metavar rust-lang/reference#1192 * Revert "Stabilize $$ in Rust 1.63.0" rust-lang#99435 * rustdoc: avoid inlining items with duplicate `(type, name)` rust-lang#99344 * Do not call `check_expr` twice in `check_compatible` rust-lang#99397
- Loading branch information
Showing
17 changed files
with
216 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
pub struct Option; | ||
impl Option { | ||
pub fn unwrap(self) {} | ||
} | ||
|
||
mod macros { | ||
use crate::Option; | ||
/// [`Option::unwrap`] | ||
#[macro_export] | ||
macro_rules! print { | ||
() => () | ||
} | ||
} | ||
|
||
mod structs { | ||
use crate::Option; | ||
/// [`Option::unwrap`] | ||
pub struct Print; | ||
} | ||
pub use structs::Print; |
19 changes: 19 additions & 0 deletions
19
src/test/rustdoc/issue-99221-multiple-macro-rules-w-same-name-submodule.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,19 @@ | ||
// aux-build:issue-99221-aux.rs | ||
// build-aux-docs | ||
// ignore-cross-compile | ||
|
||
#![crate_name = "foo"] | ||
|
||
#[macro_use] | ||
extern crate issue_99221_aux; | ||
|
||
pub use issue_99221_aux::*; | ||
|
||
// @count foo/index.html '//a[@class="macro"]' 1 | ||
|
||
mod inner { | ||
#[macro_export] | ||
macro_rules! print { | ||
() => () | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/test/rustdoc/issue-99221-multiple-macro-rules-w-same-name.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,17 @@ | ||
// aux-build:issue-99221-aux.rs | ||
// build-aux-docs | ||
// ignore-cross-compile | ||
|
||
#![crate_name = "foo"] | ||
|
||
#[macro_use] | ||
extern crate issue_99221_aux; | ||
|
||
pub use issue_99221_aux::*; | ||
|
||
// @count foo/index.html '//a[@class="macro"]' 1 | ||
|
||
#[macro_export] | ||
macro_rules! print { | ||
() => () | ||
} |
14 changes: 14 additions & 0 deletions
14
src/test/rustdoc/issue-99221-multiple-structs-w-same-name.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,14 @@ | ||
// aux-build:issue-99221-aux.rs | ||
// build-aux-docs | ||
// ignore-cross-compile | ||
|
||
#![crate_name = "foo"] | ||
|
||
#[macro_use] | ||
extern crate issue_99221_aux; | ||
|
||
pub use issue_99221_aux::*; | ||
|
||
// @count foo/index.html '//a[@class="struct"][@title="foo::Print struct"]' 1 | ||
|
||
pub struct Print; |
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,4 @@ | ||
fn main() { | ||
(|_, ()| ())(if true {} else {return;}); | ||
//~^ ERROR this function takes 2 arguments but 1 argument was supplied | ||
} |
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,19 @@ | ||
error[E0057]: this function takes 2 arguments but 1 argument was supplied | ||
--> $DIR/issue-98894.rs:2:5 | ||
| | ||
LL | (|_, ()| ())(if true {} else {return;}); | ||
| ^^^^^^^^^^^^--------------------------- an argument of type `()` is missing | ||
| | ||
note: closure defined here | ||
--> $DIR/issue-98894.rs:2:6 | ||
| | ||
LL | (|_, ()| ())(if true {} else {return;}); | ||
| ^^^^^^^ | ||
help: provide the argument | ||
| | ||
LL | (|_, ()| ())(if true {} else {return;}, ()); | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0057`. |
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,4 @@ | ||
fn main() { | ||
(|_, ()| ())([return, ()]); | ||
//~^ ERROR this function takes 2 arguments but 1 argument was supplied | ||
} |
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,19 @@ | ||
error[E0057]: this function takes 2 arguments but 1 argument was supplied | ||
--> $DIR/issue-98897.rs:2:5 | ||
| | ||
LL | (|_, ()| ())([return, ()]); | ||
| ^^^^^^^^^^^^-------------- an argument of type `()` is missing | ||
| | ||
note: closure defined here | ||
--> $DIR/issue-98897.rs:2:6 | ||
| | ||
LL | (|_, ()| ())([return, ()]); | ||
| ^^^^^^^ | ||
help: provide the argument | ||
| | ||
LL | (|_, ()| ())([return, ()], ()); | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0057`. |
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
12 changes: 0 additions & 12 deletions
12
src/test/ui/macros/rfc-3086-metavar-expr/allowed-features.rs
This file was deleted.
Oops, something went wrong.
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