mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Removed doc comments entirely from the changes.
This commit is contained in:
parent
3aaf46afa1
commit
e664cd73e3
2 changed files with 0 additions and 41 deletions
|
@ -9,8 +9,6 @@ use hir::db::HirDatabase;
|
||||||
|
|
||||||
use rustc_hash::FxHashSet;
|
use rustc_hash::FxHashSet;
|
||||||
|
|
||||||
/// Generate a collection of associated items that are missing from a
|
|
||||||
/// `impl Trait for` block.
|
|
||||||
pub fn get_missing_impl_items(
|
pub fn get_missing_impl_items(
|
||||||
db: &impl HirDatabase,
|
db: &impl HirDatabase,
|
||||||
analyzer: &hir::SourceAnalyzer,
|
analyzer: &hir::SourceAnalyzer,
|
||||||
|
|
|
@ -10,45 +10,6 @@ use ra_syntax::{
|
||||||
|
|
||||||
use ra_assists::utils::get_missing_impl_items;
|
use ra_assists::utils::get_missing_impl_items;
|
||||||
|
|
||||||
/// Analyzes the specified `CompletionContext` and provides magic completions
|
|
||||||
/// if the context falls within a `impl Trait for` block.
|
|
||||||
///
|
|
||||||
/// # Completion Activation
|
|
||||||
/// The completion will activate when a user begins to type a function
|
|
||||||
/// definition, an associated type, or an associated constant.
|
|
||||||
///
|
|
||||||
/// ### Functions
|
|
||||||
/// ```ignore
|
|
||||||
/// trait SomeTrait {
|
|
||||||
/// fn foo(&self);
|
|
||||||
/// }
|
|
||||||
///
|
|
||||||
/// impl SomeTrait for () {
|
|
||||||
/// fn <|>
|
|
||||||
/// }
|
|
||||||
/// ```
|
|
||||||
///
|
|
||||||
/// ### Associated Types
|
|
||||||
/// ```ignore
|
|
||||||
/// trait SomeTrait {
|
|
||||||
/// type SomeType;
|
|
||||||
/// }
|
|
||||||
///
|
|
||||||
/// impl SomeTrait for () {
|
|
||||||
/// type <|>
|
|
||||||
/// }
|
|
||||||
/// ```
|
|
||||||
///
|
|
||||||
/// ### Associated Constants
|
|
||||||
/// ```ignore
|
|
||||||
/// trait SomeTrait {
|
|
||||||
/// const SOME_CONST: u16;
|
|
||||||
/// }
|
|
||||||
///
|
|
||||||
/// impl SomeTrait for () {
|
|
||||||
/// const <|>
|
|
||||||
/// }
|
|
||||||
/// ```
|
|
||||||
pub(crate) fn complete_trait_impl(acc: &mut Completions, ctx: &CompletionContext) {
|
pub(crate) fn complete_trait_impl(acc: &mut Completions, ctx: &CompletionContext) {
|
||||||
// it is possible to have a parent `fn` and `impl` block. Ignore completion
|
// it is possible to have a parent `fn` and `impl` block. Ignore completion
|
||||||
// attempts from within a `fn` block.
|
// attempts from within a `fn` block.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue