mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Remove functional noop
This commit is contained in:
parent
828bd73195
commit
ff1b2da502
1 changed files with 0 additions and 8 deletions
|
@ -350,14 +350,6 @@ mod tests {
|
||||||
|
|
||||||
fn do_check_local_name(code: &str, expected_offset: u32) {
|
fn do_check_local_name(code: &str, expected_offset: u32) {
|
||||||
let (off, code) = extract_offset(code);
|
let (off, code) = extract_offset(code);
|
||||||
let code = {
|
|
||||||
let mut buf = String::new();
|
|
||||||
let off = u32::from(off) as usize;
|
|
||||||
buf.push_str(&code[..off]);
|
|
||||||
buf.push_str(&code[off..]);
|
|
||||||
buf
|
|
||||||
};
|
|
||||||
|
|
||||||
let file = File::parse(&code);
|
let file = File::parse(&code);
|
||||||
let fn_def: ast::FnDef = find_node_at_offset(file.syntax(), off).unwrap();
|
let fn_def: ast::FnDef = find_node_at_offset(file.syntax(), off).unwrap();
|
||||||
let name_ref: ast::NameRef = find_node_at_offset(file.syntax(), off).unwrap();
|
let name_ref: ast::NameRef = find_node_at_offset(file.syntax(), off).unwrap();
|
||||||
|
|
Loading…
Reference in a new issue