mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
for types in bounds
This commit is contained in:
parent
3a017aaa52
commit
e44a6bcc82
17 changed files with 311 additions and 192 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue