Profile completions better

This commit is contained in:
Kirill Bulatov
2020-11-27 18:00:03 +02:00
parent c66d477f5a
commit b2e6ca46ca
9 changed files with 22 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ use crate::{
pub use insert_use::{insert_use, ImportScope, MergeBehaviour};
pub fn mod_path_to_ast(path: &hir::ModPath) -> ast::Path {
let _p = profile::span("mod_path_to_ast");
let mut segments = Vec::new();
let mut is_abs = false;
match path.kind {