mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
internal: add fn to minicore
This commit is contained in:
parent
d2c9f3add1
commit
8a4d9bb80a
6 changed files with 258 additions and 310 deletions
|
@ -164,7 +164,9 @@ impl Fixture {
|
|||
let mut env = FxHashMap::default();
|
||||
let mut introduce_new_source_root = false;
|
||||
for component in components[1..].iter() {
|
||||
let (key, value) = component.split_once(':').unwrap();
|
||||
let (key, value) = component
|
||||
.split_once(':')
|
||||
.unwrap_or_else(|| panic!("invalid meta line: {:?}", meta));
|
||||
match key {
|
||||
"crate" => krate = Some(value.to_string()),
|
||||
"deps" => deps = value.split(',').map(|it| it.to_string()).collect(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue