Skip to content

Commit 09868a5

Browse files
committed
Auto merge of #65169 - tmandry:rollup-qxjj8xp, r=tmandry
Rollup of 5 pull requests Successful merges: - #65095 (Sort error codes in librustc_passes) - #65101 (Upgrade librustc_macros dependencies) - #65142 (Ensure that associated `async fn`s have unique fresh param names) - #65155 (Use shorthand initialization in rustdoc) - #65158 (Remove dead module) Failed merges: r? @ghost
2 parents 421bd77 + dd04a83 commit 09868a5

File tree

9 files changed

+220
-390
lines changed

9 files changed

+220
-390
lines changed

Diff for: Cargo.lock

+18-6
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ dependencies = [
993993
"proc-macro2 0.4.30",
994994
"quote 0.6.12",
995995
"syn 0.15.35",
996-
"synstructure",
996+
"synstructure 0.10.2",
997997
]
998998

999999
[[package]]
@@ -3165,7 +3165,7 @@ dependencies = [
31653165
"proc-macro2 0.4.30",
31663166
"quote 0.6.12",
31673167
"syn 0.15.35",
3168-
"synstructure",
3168+
"synstructure 0.10.2",
31693169
]
31703170

31713171
[[package]]
@@ -3546,10 +3546,10 @@ name = "rustc_macros"
35463546
version = "0.1.0"
35473547
dependencies = [
35483548
"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",
35533553
]
35543554

35553555
[[package]]
@@ -4244,6 +4244,18 @@ dependencies = [
42444244
"unicode-xid 0.1.0",
42454245
]
42464246

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+
42474259
[[package]]
42484260
name = "syntax"
42494261
version = "0.0.0"

Diff for: src/librustc/hir/lowering.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ impl<'a> LoweringContext<'a> {
844844
/// header, we convert it to an in-band lifetime.
845845
fn collect_fresh_in_band_lifetime(&mut self, span: Span) -> ParamName {
846846
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();
848848
let hir_name = ParamName::Fresh(index);
849849
self.lifetimes_to_define.push((span, hir_name));
850850
hir_name

Diff for: src/librustc_macros/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ edition = "2018"
88
proc-macro = true
99

1010
[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"
1515
itertools = "0.8"

Diff for: src/librustc_macros/src/hash_stable.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ fn parse_attributes(field: &syn::Field) -> Attributes {
1515
};
1616
for attr in &field.attrs {
1717
if let Ok(meta) = attr.parse_meta() {
18-
if &meta.name().to_string() != "stable_hasher" {
18+
if !meta.path().is_ident("stable_hasher") {
1919
continue;
2020
}
2121
let mut any_attr = false;
2222
if let Meta::List(list) = meta {
2323
for nested in list.nested.iter() {
2424
if let NestedMeta::Meta(meta) = nested {
25-
if &meta.name().to_string() == "ignore" {
25+
if meta.path().is_ident("ignore") {
2626
attrs.ignore = true;
2727
any_attr = true;
2828
}
29-
if &meta.name().to_string() == "project" {
29+
if meta.path().is_ident("project") {
3030
if let Meta::List(list) = meta {
3131
if let Some(nested) = list.nested.iter().next() {
3232
if let NestedMeta::Meta(meta) = nested {
33-
attrs.project = Some(meta.name());
33+
attrs.project = meta.path().get_ident().cloned();
3434
any_attr = true;
3535
}
3636
}

Diff for: src/librustc_mir/monomorphize/item.rs

-204
This file was deleted.

0 commit comments

Comments
 (0)