Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 878c783

Browse files
committedApr 16, 2022
Auto merge of #96123 - Dylan-DPC:rollup-qjog6n1, r=Dylan-DPC
Rollup of 7 pull requests Successful merges: - #94985 (Parse inner attributes on inline const block) - #95006 (Reject `#[thread_local]` attribute on non-static items) - #95426 (Include Refs in Valtree Creation) - #95908 (Inline `shallow_resolve_ty` into `ShallowResolver`) - #96058 (separate flock implementations into separate modules) - #96088 (Update mdbook) - #96118 (rustdoc: Rename `def_id` into `item_id` when the type is `ItemId` for readability) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2 parents 2fa9789 + 10e0db5 commit 878c783

File tree

42 files changed

+540
-419
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+540
-419
lines changed
 

‎Cargo.lock

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -606,12 +606,22 @@ dependencies = [
606606
"atty",
607607
"bitflags",
608608
"indexmap",
609+
"lazy_static",
609610
"os_str_bytes",
610611
"strsim 0.10.0",
611612
"termcolor",
612613
"textwrap 0.14.2",
613614
]
614615

616+
[[package]]
617+
name = "clap_complete"
618+
version = "3.1.1"
619+
source = "registry+https://github.com/rust-lang/crates.io-index"
620+
checksum = "df6f3613c0a3cddfd78b41b10203eb322cb29b600cbdf808a7d3db95691b8e25"
621+
dependencies = [
622+
"clap 3.1.1",
623+
]
624+
615625
[[package]]
616626
name = "clippy"
617627
version = "0.1.62"
@@ -2240,14 +2250,15 @@ dependencies = [
22402250

22412251
[[package]]
22422252
name = "mdbook"
2243-
version = "0.4.15"
2253+
version = "0.4.18"
22442254
source = "registry+https://github.com/rust-lang/crates.io-index"
2245-
checksum = "241f10687eb3b4e0634b3b4e423f97c5f1efbd69dc9522e24a8b94583eeec3c6"
2255+
checksum = "74612ae81a3e5ee509854049dfa4c7975ae033c06f5fc4735c7dfbe60ee2a39d"
22462256
dependencies = [
22472257
"ammonia",
22482258
"anyhow",
22492259
"chrono",
2250-
"clap 2.34.0",
2260+
"clap 3.1.1",
2261+
"clap_complete",
22512262
"elasticlunr-rs",
22522263
"env_logger 0.7.1",
22532264
"handlebars",
@@ -2911,7 +2922,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
29112922
checksum = "34f197a544b0c9ab3ae46c359a7ec9cbbb5c7bf97054266fecb7ead794a181d6"
29122923
dependencies = [
29132924
"bitflags",
2914-
"getopts",
29152925
"memchr",
29162926
"unicase",
29172927
]
@@ -3129,9 +3139,9 @@ dependencies = [
31293139

31303140
[[package]]
31313141
name = "regex"
3132-
version = "1.5.4"
3142+
version = "1.5.5"
31333143
source = "registry+https://github.com/rust-lang/crates.io-index"
3134-
checksum = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461"
3144+
checksum = "1a11647b6b25ff05a515cb92c365cec08801e83423a235b51e231e1808747286"
31353145
dependencies = [
31363146
"aho-corasick",
31373147
"memchr",

‎compiler/rustc_ast_pretty/src/pprust/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ impl<'a> State<'a> {
959959
self.word_space("=");
960960
match term {
961961
Term::Ty(ty) => self.print_type(ty),
962-
Term::Const(c) => self.print_expr_anon_const(c),
962+
Term::Const(c) => self.print_expr_anon_const(c, &[]),
963963
}
964964
}
965965
ast::AssocConstraintKind::Bound { bounds } => self.print_type_bounds(":", &*bounds),

0 commit comments

Comments
 (0)
Please sign in to comment.