mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Rustdocs fixes
This commit is contained in:
parent
f75f07019b
commit
7b145bd99c
2 changed files with 4 additions and 2 deletions
|
@ -1,12 +1,14 @@
|
|||
//! A module with ide helpers for high-level ide features.
|
||||
use hir::{Crate, Enum, Module, ScopeDef, Semantics, Trait};
|
||||
use ide_db::RootDatabase;
|
||||
use syntax::ast::{self, make};
|
||||
|
||||
pub mod insert_use;
|
||||
|
||||
/// Converts the mod path struct into its ast representation.
|
||||
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue