mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 01:17:27 +00:00
add doc strings to use_trivial_contructor.rs
This commit is contained in:
parent
f9379df630
commit
817082cad6
1 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,9 @@
|
|||
//! Functionality for generating trivial contructors
|
||||
|
||||
use hir::StructKind;
|
||||
use syntax::ast;
|
||||
|
||||
/// given a type return the trivial contructor (if one exists)
|
||||
pub fn use_trivial_constructor(
|
||||
db: &crate::RootDatabase,
|
||||
path: ast::Path,
|
||||
|
|
Loading…
Reference in a new issue