Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
515da72
Target::arch can take more than listed options
fintelia Jul 1, 2019
7aaf0de
Add a test for `$crate` inside macro invocation
petrochenkov Jul 3, 2019
4344a90
Pretty-print `$crate` as `crate`/`::my_crate` in tokens
petrochenkov Jul 3, 2019
3997507
Resolve `$crate` in all hygienic contexts for pretty-pringing
petrochenkov Jul 5, 2019
60f1449
Add Iterator::partition_mut() and is_partitioned()
cuviper Jul 1, 2019
cdeec0a
Capitalize example comment
cuviper Jul 1, 2019
cd0ebc4
Rename partition_mut to partition_in_place
cuviper Jul 1, 2019
0492f97
Return the true count from partition_in_place
cuviper Jul 9, 2019
265e3a6
Unit test Iterator::partition_in_place and is_partitioned
cuviper Jul 9, 2019
4cb67c0
Add a test case with `$crate` from other crate
petrochenkov Jul 9, 2019
04304fc
Pass GUIDPreservedSymbols to thinLTOResolvePrevailingInIndex()
nikic Jul 6, 2019
eb33822
Pass type to byval attributes
nikic Jul 6, 2019
b57c499
Translate target features for LLVM 9
nikic Jul 7, 2019
3170b62
Use new feature names in target feature lists
nikic Jul 7, 2019
5324b42
Add function pointer alignment to ARM/Thumb data layout
nikic Jul 7, 2019
8789c9e
Strip function pointer alignment for older LLVM versions
nikic Jul 7, 2019
5c95f5f
Fix float add/mul reduction codegen
nikic Jul 7, 2019
ac56025
Adjust codegen tests for DISPFlagMainSubprogram
nikic Jul 7, 2019
74a39a3
Emit warning when trying to use PGO in conjunction with unwinding on …
EricRahm Jun 14, 2019
4c22e48
Tracking issue 62543 for iter_partition_in_place
cuviper Jul 9, 2019
7171c83
Tracking issue 62544 for iter_is_partitioned
cuviper Jul 9, 2019
3c3e375
Rollup merge of #61853 - EricRahm:use_warning, r=varkor
Centril Jul 10, 2019
b14b20c
Rollup merge of #62278 - cuviper:iter-partition, r=alexcrichton
Centril Jul 10, 2019
1e48be9
Rollup merge of #62283 - fintelia:patch-5, r=Mark-Simulacrum
Centril Jul 10, 2019
fe26fc9
Rollup merge of #62393 - petrochenkov:notto-disu, r=Mark-Simulacrum
Centril Jul 10, 2019
6c0a406
Rollup merge of #62474 - nikic:update-llvm, r=alexcrichton
Centril Jul 10, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add a test case with $crate from other crate
  • Loading branch information
petrochenkov committed Jul 9, 2019
commit 4cb67c0f1c429a1a1e2ec8c3e02714557feeb60d
6 changes: 6 additions & 0 deletions src/test/ui/proc-macro/auxiliary/dollar-crate-external.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ macro_rules! external {
struct D($crate::S);
};
}

#[macro_export]
macro_rules! issue_62325 { () => {
#[print_attr]
struct B(identity!($crate::S));
}}
4 changes: 4 additions & 0 deletions src/test/ui/proc-macro/dollar-crate-issue-62325.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// check-pass
// edition:2018
// aux-build:test-macros.rs
// aux-build:dollar-crate-external.rs

// Anonymize unstable non-dummy spans while still showing dummy spans `0..0`.
// normalize-stdout-test "bytes\([^0]\w*\.\.(\w+)\)" -> "bytes(LO..$1)"
Expand All @@ -10,6 +11,7 @@

#[macro_use]
extern crate test_macros;
extern crate dollar_crate_external;

type S = u8;

Expand All @@ -20,4 +22,6 @@ macro_rules! m { () => {

m!();

dollar_crate_external::issue_62325!();

fn main() {}
56 changes: 56 additions & 0 deletions src/test/ui/proc-macro/dollar-crate-issue-62325.stdout
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,59 @@ PRINT-ATTR INPUT (DEBUG): TokenStream [
span: #2 bytes(LO..HI),
},
]
PRINT-ATTR INPUT (DISPLAY): struct B(identity!(::dollar_crate_external :: S));
PRINT-ATTR RE-COLLECTED (DISPLAY): struct B ( identity ! ( ::dollar_crate_external :: S ) ) ;
PRINT-ATTR INPUT (DEBUG): TokenStream [
Ident {
ident: "struct",
span: #7 bytes(LO..HI),
},
Ident {
ident: "B",
span: #7 bytes(LO..HI),
},
Group {
delimiter: Parenthesis,
stream: TokenStream [
Ident {
ident: "identity",
span: #7 bytes(LO..HI),
},
Punct {
ch: '!',
spacing: Alone,
span: #7 bytes(LO..HI),
},
Group {
delimiter: Parenthesis,
stream: TokenStream [
Ident {
ident: "$crate",
span: #7 bytes(LO..HI),
},
Punct {
ch: ':',
spacing: Joint,
span: #7 bytes(LO..HI),
},
Punct {
ch: ':',
spacing: Alone,
span: #7 bytes(LO..HI),
},
Ident {
ident: "S",
span: #7 bytes(LO..HI),
},
],
span: #7 bytes(LO..HI),
},
],
span: #7 bytes(LO..HI),
},
Punct {
ch: ';',
spacing: Alone,
span: #7 bytes(LO..HI),
},
]