File tree 9 files changed +220
-390
lines changed
librustc_mir/monomorphize
9 files changed +220
-390
lines changed Original file line number Diff line number Diff line change @@ -993,7 +993,7 @@ dependencies = [
993
993
" proc-macro2 0.4.30" ,
994
994
" quote 0.6.12" ,
995
995
" syn 0.15.35" ,
996
- " synstructure" ,
996
+ " synstructure 0.10.2 " ,
997
997
]
998
998
999
999
[[package ]]
@@ -3165,7 +3165,7 @@ dependencies = [
3165
3165
" proc-macro2 0.4.30" ,
3166
3166
" quote 0.6.12" ,
3167
3167
" syn 0.15.35" ,
3168
- " synstructure" ,
3168
+ " synstructure 0.10.2 " ,
3169
3169
]
3170
3170
3171
3171
[[package ]]
@@ -3546,10 +3546,10 @@ name = "rustc_macros"
3546
3546
version = " 0.1.0"
3547
3547
dependencies = [
3548
3548
" itertools 0.8.0" ,
3549
- " proc-macro2 0.4.30 " ,
3550
- " quote 0.6.12 " ,
3551
- " syn 0.15.35 " ,
3552
- " synstructure" ,
3549
+ " proc-macro2 1.0.3 " ,
3550
+ " quote 1.0.2 " ,
3551
+ " syn 1.0.5 " ,
3552
+ " synstructure 0.12.1 " ,
3553
3553
]
3554
3554
3555
3555
[[package ]]
@@ -4244,6 +4244,18 @@ dependencies = [
4244
4244
" unicode-xid 0.1.0" ,
4245
4245
]
4246
4246
4247
+ [[package ]]
4248
+ name = " synstructure"
4249
+ version = " 0.12.1"
4250
+ source = " registry+https://github.com/rust-lang/crates.io-index"
4251
+ checksum = " 3f085a5855930c0441ca1288cf044ea4aecf4f43a91668abdb870b4ba546a203"
4252
+ dependencies = [
4253
+ " proc-macro2 1.0.3" ,
4254
+ " quote 1.0.2" ,
4255
+ " syn 1.0.5" ,
4256
+ " unicode-xid 0.2.0" ,
4257
+ ]
4258
+
4247
4259
[[package ]]
4248
4260
name = " syntax"
4249
4261
version = " 0.0.0"
Original file line number Diff line number Diff line change @@ -844,7 +844,7 @@ impl<'a> LoweringContext<'a> {
844
844
/// header, we convert it to an in-band lifetime.
845
845
fn collect_fresh_in_band_lifetime ( & mut self , span : Span ) -> ParamName {
846
846
assert ! ( self . is_collecting_in_band_lifetimes) ;
847
- let index = self . lifetimes_to_define . len ( ) ;
847
+ let index = self . lifetimes_to_define . len ( ) + self . in_scope_lifetimes . len ( ) ;
848
848
let hir_name = ParamName :: Fresh ( index) ;
849
849
self . lifetimes_to_define . push ( ( span, hir_name) ) ;
850
850
hir_name
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ edition = "2018"
8
8
proc-macro = true
9
9
10
10
[dependencies ]
11
- synstructure = " 0.10.2 "
12
- syn = { version = " 0.15.22 " , features = [" full" ] }
13
- proc-macro2 = " 0.4.24 "
14
- quote = " 0.6.10 "
11
+ synstructure = " 0.12.1 "
12
+ syn = { version = " 1 " , features = [" full" ] }
13
+ proc-macro2 = " 1 "
14
+ quote = " 1 "
15
15
itertools = " 0.8"
Original file line number Diff line number Diff line change @@ -15,22 +15,22 @@ fn parse_attributes(field: &syn::Field) -> Attributes {
15
15
} ;
16
16
for attr in & field. attrs {
17
17
if let Ok ( meta) = attr. parse_meta ( ) {
18
- if & meta. name ( ) . to_string ( ) != "stable_hasher" {
18
+ if ! meta. path ( ) . is_ident ( "stable_hasher" ) {
19
19
continue ;
20
20
}
21
21
let mut any_attr = false ;
22
22
if let Meta :: List ( list) = meta {
23
23
for nested in list. nested . iter ( ) {
24
24
if let NestedMeta :: Meta ( meta) = nested {
25
- if & meta. name ( ) . to_string ( ) == "ignore" {
25
+ if meta. path ( ) . is_ident ( "ignore" ) {
26
26
attrs. ignore = true ;
27
27
any_attr = true ;
28
28
}
29
- if & meta. name ( ) . to_string ( ) == "project" {
29
+ if meta. path ( ) . is_ident ( "project" ) {
30
30
if let Meta :: List ( list) = meta {
31
31
if let Some ( nested) = list. nested . iter ( ) . next ( ) {
32
32
if let NestedMeta :: Meta ( meta) = nested {
33
- attrs. project = Some ( meta. name ( ) ) ;
33
+ attrs. project = meta. path ( ) . get_ident ( ) . cloned ( ) ;
34
34
any_attr = true ;
35
35
}
36
36
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments