conlang: Fix rustdoc warnings
This commit is contained in:
parent
d80f2f6315
commit
ae026420f1
@ -16,7 +16,7 @@ pub struct Error {
|
|||||||
impl Error {
|
impl Error {
|
||||||
#![allow(non_snake_case)]
|
#![allow(non_snake_case)]
|
||||||
|
|
||||||
/// Adds a [Span] to this [Error], if there isn't already a more specific one.
|
/// Adds a [struct Span] to this [Error], if there isn't already a more specific one.
|
||||||
pub fn with_span(self, span: Span) -> Self {
|
pub fn with_span(self, span: Span) -> Self {
|
||||||
Self { span: self.span.or(Some(span)), ..self }
|
Self { span: self.span.or(Some(span)), ..self }
|
||||||
}
|
}
|
||||||
|
@ -482,7 +482,7 @@ impl Parse<'_> for Function {
|
|||||||
type FnSig = (Pattern, Vec<TyKind>);
|
type FnSig = (Pattern, Vec<TyKind>);
|
||||||
|
|
||||||
impl Parse<'_> for FnSig {
|
impl Parse<'_> for FnSig {
|
||||||
/// Parses the [parameters](Param) associated with a Function
|
/// Parses the parameter list of a Function
|
||||||
fn parse(p: &mut Parser) -> PResult<FnSig> {
|
fn parse(p: &mut Parser) -> PResult<FnSig> {
|
||||||
const P: Parsing = Parsing::Function;
|
const P: Parsing = Parsing::Function;
|
||||||
let (mut params, mut types) = (vec![], vec![]);
|
let (mut params, mut types) = (vec![], vec![]);
|
||||||
@ -501,7 +501,7 @@ impl Parse<'_> for FnSig {
|
|||||||
type TypedParam = (Pattern, TyKind);
|
type TypedParam = (Pattern, TyKind);
|
||||||
|
|
||||||
impl Parse<'_> for TypedParam {
|
impl Parse<'_> for TypedParam {
|
||||||
/// Parses a single function [parameter](Param)
|
/// Parses a single function parameter
|
||||||
fn parse(p: &mut Parser) -> PResult<(Pattern, TyKind)> {
|
fn parse(p: &mut Parser) -> PResult<(Pattern, TyKind)> {
|
||||||
Ok((
|
Ok((
|
||||||
Pattern::parse(p)?,
|
Pattern::parse(p)?,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user