-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parse: Tweak the function parameter edition check
Move anon-params tests to ui/anon-params.
- Loading branch information
1 parent
dd155df
commit 6b27e8d
Showing
8 changed files
with
23 additions
and
3 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 | ||
// edition:2018 | ||
// aux-build:anon-params-edition-hygiene.rs | ||
|
||
#[macro_use] | ||
extern crate anon_params_edition_hygiene; | ||
|
||
generate_trait_2015!(u8); | ||
|
||
fn main() {} |
12 changes: 12 additions & 0 deletions
12
src/test/ui/anon-params/auxiliary/anon-params-edition-hygiene.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,12 @@ | ||
// edition:2015 | ||
|
||
#[macro_export] | ||
macro_rules! generate_trait_2015 { | ||
($Type: ident) => { | ||
trait Trait { | ||
fn method($Type) {} | ||
} | ||
}; | ||
} | ||
|
||
fn main() {} |