Skip to content

Commit b58ba97

Browse files
authored
Merge pull request #3401 from topecongiro/rustcap
Cargo update
2 parents b700cde + 9df1ed6 commit b58ba97

File tree

4 files changed

+56
-57
lines changed

4 files changed

+56
-57
lines changed

Cargo.lock

+50-54
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ env_logger = "0.6"
4949
getopts = "0.2"
5050
derive-new = "0.5"
5151
cargo_metadata = "0.7"
52-
rustc-ap-rustc_target = "366.0.0"
53-
rustc-ap-syntax = "366.0.0"
54-
rustc-ap-syntax_pos = "366.0.0"
52+
rustc-ap-rustc_target = "373.0.0"
53+
rustc-ap-syntax = "373.0.0"
54+
rustc-ap-syntax_pos = "373.0.0"
5555
failure = "0.1.3"
5656
bytecount = "0.5"
5757
unicode-width = "0.1.5"

src/spanned.rs

+1
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ impl Spanned for ast::GenericArg {
178178
match *self {
179179
ast::GenericArg::Lifetime(ref lt) => lt.ident.span,
180180
ast::GenericArg::Type(ref ty) => ty.span(),
181+
ast::GenericArg::Const(..) => unreachable!(), // FIXME(#3336)
181182
}
182183
}
183184
}

src/types.rs

+2
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ impl<'a> SegmentParam<'a> {
152152
match arg {
153153
ast::GenericArg::Lifetime(ref lt) => SegmentParam::LifeTime(lt),
154154
ast::GenericArg::Type(ref ty) => SegmentParam::Type(ty),
155+
ast::GenericArg::Const(..) => unreachable!(), // FIXME(#3336)
155156
}
156157
}
157158
}
@@ -463,6 +464,7 @@ impl Rewrite for ast::GenericArg {
463464
match *self {
464465
ast::GenericArg::Lifetime(ref lt) => lt.rewrite(context, shape),
465466
ast::GenericArg::Type(ref ty) => ty.rewrite(context, shape),
467+
ast::GenericArg::Const(..) => unreachable!(), // FIXME(#3336)
466468
}
467469
}
468470
}

0 commit comments

Comments
 (0)