Skip to content

Commit

Permalink
Merge pull request #92 from Bobo1239/master
Browse files Browse the repository at this point in the history
Fix for latest nightly
  • Loading branch information
sfackler committed Oct 5, 2016
2 parents bf472f2 + cb1ec95 commit d4b788d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion phf_macros/src/lib.rs
Expand Up @@ -327,7 +327,7 @@ fn adjust_key(cx: &mut ExtCtxt, e: P<Expr>) -> P<Expr> {
};
if coerce_as_slice {
let u8_type = cx.ty_path(cx.path_ident(e.span, cx.ident_of("u8")));
let array_type = cx.ty(e.span, TyKind::Vec(u8_type));
let array_type = cx.ty(e.span, TyKind::Slice(u8_type));
let slice_type = cx.ty_rptr(e.span, array_type, None, Mutability::Immutable);
cx.expr_cast(e.span, e, slice_type)
} else {
Expand Down
2 changes: 1 addition & 1 deletion phf_macros/tests/compiletest.rs
Expand Up @@ -8,7 +8,7 @@ fn run_mode(directory: &'static str, mode: &'static str) {
let cfg_mode = mode.parse().ok().expect("Invalid mode");

config.mode = cfg_mode;
config.target_rustcflags = Some("-L target/debug/".to_owned());
config.target_rustcflags = Some("-L target/debug/deps".to_owned());
config.src_base = PathBuf::from(format!("tests/{}", directory));

compiletest::run_tests(&config);
Expand Down

0 comments on commit d4b788d

Please sign in to comment.