You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assertion failed: (getOperand(0)->getType() == cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"), function AssertOK, file /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/llvm/lib/IR/Instructions.cpp, line 1083.
use std::collections::HashMap;use std::path::{Path,PathBuf};#[derive(Debug)]pubstructFileMeta;structS{h2:HashMap<PathBuf,FileMeta>,}implS{fnnew() -> S{S{h2:HashMap::new(),}}fnf(&self,path:&Path) -> FileMeta{let m = FileMeta;matchself.h2.get(path){Some(meta) => m,None => m
}}}
Using rustc 1.0.0-nightly (12b846ab8 2015-03-09) (built 2015-03-09).
The text was updated successfully, but these errors were encountered:
hugoduncan
changed the title
Compiler assertion
Compiler assertion "Ptr must be a pointer to Val type!"
Mar 10, 2015
Yeah this one is ridiculous. It's been going on for a loooong while. Having to create a pathbuf kind of defeats the purpose of path. I think this should be higher priority.
btw you can make that self.h2.get(&path.to_path_buf()). Still dumb though.
The following code causes
Using
rustc 1.0.0-nightly (12b846ab8 2015-03-09) (built 2015-03-09)
.The text was updated successfully, but these errors were encountered: