mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Properly document const impl as per flodiebold
This commit is contained in:
parent
80c529d1dc
commit
09c438b47e
@ -506,7 +506,7 @@ impl TypeAliasDef {
|
|||||||
/// ```
|
/// ```
|
||||||
/// ❰
|
/// ❰
|
||||||
/// #[attr]
|
/// #[attr]
|
||||||
/// unsafe impl<T> !Foo for Bar where T: Debug {
|
/// unsafe impl<T> const !Foo for Bar where T: Debug {
|
||||||
/// #![inner_attr]
|
/// #![inner_attr]
|
||||||
/// // ...
|
/// // ...
|
||||||
/// }
|
/// }
|
||||||
@ -2440,7 +2440,7 @@ impl LifetimeArg {
|
|||||||
/// Constant value argument that is passed at generic instantiation site.
|
/// Constant value argument that is passed at generic instantiation site.
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// foo::<❰ u32 ❱, ❰ true ❱ >();
|
/// foo::<❰ u32 ❱, ❰ true ❱>();
|
||||||
///
|
///
|
||||||
/// bar::<❰ { 2 + 2} ❱>();
|
/// bar::<❰ { 2 + 2} ❱>();
|
||||||
/// ```
|
/// ```
|
||||||
|
@ -683,7 +683,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
|
|||||||
/// ```
|
/// ```
|
||||||
/// ❰
|
/// ❰
|
||||||
/// #[attr]
|
/// #[attr]
|
||||||
/// unsafe impl<T> !Foo for Bar where T: Debug {
|
/// unsafe impl<T> const !Foo for Bar where T: Debug {
|
||||||
/// #![inner_attr]
|
/// #![inner_attr]
|
||||||
/// // ...
|
/// // ...
|
||||||
/// }
|
/// }
|
||||||
@ -693,7 +693,7 @@ pub(crate) const AST_SRC: AstSrc = AstSrc {
|
|||||||
/// [Reference](https://doc.rust-lang.org/reference/items/implementations.html)
|
/// [Reference](https://doc.rust-lang.org/reference/items/implementations.html)
|
||||||
struct ImplDef: TypeParamsOwner, AttrsOwner, DocCommentsOwner {
|
struct ImplDef: TypeParamsOwner, AttrsOwner, DocCommentsOwner {
|
||||||
T![default],
|
T![default],
|
||||||
T![const], // TODO: wat?
|
T![const],
|
||||||
T![unsafe],
|
T![unsafe],
|
||||||
T![impl],
|
T![impl],
|
||||||
T![!],
|
T![!],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user