for types in bounds

This commit is contained in:
Aleksey Kladov 2018-09-04 12:25:23 +03:00
parent 3a017aaa52
commit e44a6bcc82
17 changed files with 311 additions and 192 deletions

View file

@ -99,8 +99,8 @@ mod test {
#[test]
fn test_resolve() {
let mut m = PathMap::new();
let id1 = m.get_or_insert(PathBuf::from("/foo"));
let id2 = m.get_or_insert(PathBuf::from("/foo/bar.rs"));
let id1 = m.get_or_insert(PathBuf::from("/foo"), Root::Workspace);
let id2 = m.get_or_insert(PathBuf::from("/foo/bar.rs"), Root::Workspace);
assert_eq!(
m.resolve(id1, &RelativePath::new("bar.rs")),
Some(id2),