Skip to content

Commit a10457f

Browse files
author
bors-servo
authored
Auto merge of #516 - emilio:clang-sys, r=fitzgen
Update clang-sys. Fixes #439 r? @fitzgen
2 parents 8c4d1ae + aed97c5 commit a10457f

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

Cargo.lock

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

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ quasi_codegen = "0.29"
3939
[dependencies]
4040
cexpr = "0.2"
4141
cfg-if = "0.1.0"
42-
clang-sys = { version = "0.12", features = ["runtime", "clang_3_9"] }
42+
clang-sys = { version = "0.14", features = ["runtime", "clang_3_9"] }
4343
lazy_static = "0.2.1"
4444
rustc-serialize = "0.3.19"
4545
syntex_syntax = "0.54"

src/clang.rs

-4
Original file line numberDiff line numberDiff line change
@@ -662,10 +662,6 @@ pub enum LayoutError {
662662
impl ::std::convert::From<i32> for LayoutError {
663663
fn from(val: i32) -> Self {
664664
use self::LayoutError::*;
665-
let val = match CXTypeLayoutError::from_raw(val) {
666-
Some(val) => val,
667-
None => return Unknown,
668-
};
669665

670666
match val {
671667
CXTypeLayoutError_Invalid => Invalid,

0 commit comments

Comments
 (0)