Skip to content

Commit 4dd3bcd

Browse files
authored
Merge pull request #1016 from h-michael/ap-syntax
Update rustc-ap-syntax from 306.0.0 to 366.0.0
2 parents 6e054e0 + 6a9bc83 commit 4dd3bcd

File tree

3 files changed

+47
-45
lines changed

3 files changed

+47
-45
lines changed

Cargo.lock

Lines changed: 44 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ debug = false # because of #1005
2323
[dependencies]
2424
bitflags = "1.0"
2525
log = "0.4"
26-
rustc-ap-syntax = "306.0.0"
26+
rustc-ap-syntax = "366.0.0"
2727
env_logger = "0.6"
2828
clap = "2.32"
2929
lazy_static = "1.2"

src/racer/ast_types.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ impl Ty {
144144
}
145145
}
146146
}
147+
147148
pub(crate) fn from_lit(lit: &ast::Lit) -> Option<Ty> {
148149
let make_match = |kind: PrimKind| kind.to_module_match().map(Ty::Match);
149150
match lit.node {
@@ -159,6 +160,7 @@ impl Ty {
159160
},
160161
LitKind::FloatUnsuffixed(_) => make_match(PrimKind::F32),
161162
LitKind::Bool(_) => make_match(PrimKind::Bool),
163+
LitKind::Err(_) => None,
162164
}
163165
}
164166
fn resolve_common(self, session: &Session) -> Option<Match> {

0 commit comments

Comments
 (0)