mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Add test for proc-macro meta info retrieval
This commit is contained in:
parent
5f6d71cf0c
commit
a8c9c88292
4 changed files with 17 additions and 8 deletions
|
@ -56,3 +56,10 @@ DummyTrait [CustomDerive]"#,
|
|||
&res
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_version_check() {
|
||||
let path = fixtures::dylib_path("proc_macro_test", "0.0.0");
|
||||
let info = proc_macro_api::read_dylib_info(&path).unwrap();
|
||||
assert!(info.version.1 >= 50);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue