mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 14:13:58 +00:00
Merge #4441
4441: fix typo unimplementated -> unimplemented r=edwin0cheng a=tspiteri Pretty harmless typo, but it does get exposed in lsp-rust-analyzer-expand-macro. Co-authored-by: Trevor Spiteri <tspiteri@ieee.org>
This commit is contained in:
commit
f4aec8a22e
1 changed files with 2 additions and 2 deletions
|
@ -360,7 +360,7 @@ fn env_expand(
|
||||||
// However, we cannot use an empty string here, because for
|
// However, we cannot use an empty string here, because for
|
||||||
// `include!(concat!(env!("OUT_DIR"), "/foo.rs"))` will become
|
// `include!(concat!(env!("OUT_DIR"), "/foo.rs"))` will become
|
||||||
// `include!("foo.rs"), which might go to infinite loop
|
// `include!("foo.rs"), which might go to infinite loop
|
||||||
let s = get_env_inner(db, arg_id, &key).unwrap_or_else(|| "__RA_UNIMPLEMENTATED__".to_string());
|
let s = get_env_inner(db, arg_id, &key).unwrap_or_else(|| "__RA_UNIMPLEMENTED__".to_string());
|
||||||
let expanded = quote! { #s };
|
let expanded = quote! { #s };
|
||||||
|
|
||||||
Ok((expanded, FragmentKind::Expr))
|
Ok((expanded, FragmentKind::Expr))
|
||||||
|
@ -508,7 +508,7 @@ mod tests {
|
||||||
"#,
|
"#,
|
||||||
);
|
);
|
||||||
|
|
||||||
assert_eq!(expanded, "\"__RA_UNIMPLEMENTATED__\"");
|
assert_eq!(expanded, "\"__RA_UNIMPLEMENTED__\"");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in a new issue