Skip to content

Commit

Permalink
Merge pull request #1016 from h-michael/ap-syntax
Browse files Browse the repository at this point in the history
Update rustc-ap-syntax from 306.0.0 to 366.0.0
  • Loading branch information
kngwyu authored Feb 11, 2019
2 parents 6e054e0 + 6a9bc83 commit 4dd3bcd
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 45 deletions.
88 changes: 44 additions & 44 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ debug = false # because of #1005
[dependencies]
bitflags = "1.0"
log = "0.4"
rustc-ap-syntax = "306.0.0"
rustc-ap-syntax = "366.0.0"
env_logger = "0.6"
clap = "2.32"
lazy_static = "1.2"
Expand Down
2 changes: 2 additions & 0 deletions src/racer/ast_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ impl Ty {
}
}
}

pub(crate) fn from_lit(lit: &ast::Lit) -> Option<Ty> {
let make_match = |kind: PrimKind| kind.to_module_match().map(Ty::Match);
match lit.node {
Expand All @@ -159,6 +160,7 @@ impl Ty {
},
LitKind::FloatUnsuffixed(_) => make_match(PrimKind::F32),
LitKind::Bool(_) => make_match(PrimKind::Bool),
LitKind::Err(_) => None,
}
}
fn resolve_common(self, session: &Session) -> Option<Match> {
Expand Down

0 comments on commit 4dd3bcd

Please sign in to comment.