Modify comment syntax error
This commit is contained in:
parent
7eef946fc0
commit
009f80b987
3 changed files with 4 additions and 4 deletions
|
@ -84,7 +84,7 @@ pub(crate) fn invalid_attr(attr: &Attribute, meta: &Meta) -> Diagnostic {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Emit a error diagnostic for an invalid attribute (optionally performing additional decoration
|
/// Emit an error diagnostic for an invalid attribute (optionally performing additional decoration
|
||||||
/// using the `FnOnce` passed in `diag`) and return `Err(ErrorHandled)`.
|
/// using the `FnOnce` passed in `diag`) and return `Err(ErrorHandled)`.
|
||||||
///
|
///
|
||||||
/// For methods that return a `Result<_, DiagnosticDeriveError>`:
|
/// For methods that return a `Result<_, DiagnosticDeriveError>`:
|
||||||
|
@ -126,7 +126,7 @@ pub(crate) fn invalid_nested_attr(attr: &Attribute, nested: &NestedMeta) -> Diag
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Emit a error diagnostic for an invalid nested attribute (optionally performing additional
|
/// Emit an error diagnostic for an invalid nested attribute (optionally performing additional
|
||||||
/// decoration using the `FnOnce` passed in `diag`) and return `Err(ErrorHandled)`.
|
/// decoration using the `FnOnce` passed in `diag`) and return `Err(ErrorHandled)`.
|
||||||
///
|
///
|
||||||
/// For methods that return a `Result<_, DiagnosticDeriveError>`:
|
/// For methods that return a `Result<_, DiagnosticDeriveError>`:
|
||||||
|
|
|
@ -139,7 +139,7 @@ impl Display for TryReserveError {
|
||||||
" because the computed capacity exceeded the collection's maximum"
|
" because the computed capacity exceeded the collection's maximum"
|
||||||
}
|
}
|
||||||
TryReserveErrorKind::AllocError { .. } => {
|
TryReserveErrorKind::AllocError { .. } => {
|
||||||
" because the memory allocator returned a error"
|
" because the memory allocator returned an error"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
fmt.write_str(reason)
|
fmt.write_str(reason)
|
||||||
|
|
|
@ -46,7 +46,7 @@ const C: bool = true;
|
||||||
trait Trait {}
|
trait Trait {}
|
||||||
impl dyn Trait { fn existing() {} }
|
impl dyn Trait { fn existing() {} }
|
||||||
|
|
||||||
// FIXME: Should be a error for edition > 2015
|
// FIXME: Should be an error for edition > 2015
|
||||||
#[cfg_accessible(Trait::existing)] //~ ERROR not sure
|
#[cfg_accessible(Trait::existing)] //~ ERROR not sure
|
||||||
const A: bool = true;
|
const A: bool = true;
|
||||||
#[cfg_accessible(Trait::unresolved)] //~ ERROR not sure
|
#[cfg_accessible(Trait::unresolved)] //~ ERROR not sure
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue