rustc: Remove needless lifetimes
This commit is contained in:
parent
65bd2a6a73
commit
3dde32ca97
109 changed files with 266 additions and 320 deletions
|
@ -29,7 +29,7 @@ impl SubdiagnosticDeriveBuilder {
|
|||
Self { diag, f }
|
||||
}
|
||||
|
||||
pub(crate) fn into_tokens<'a>(self, mut structure: Structure<'a>) -> TokenStream {
|
||||
pub(crate) fn into_tokens(self, mut structure: Structure<'_>) -> TokenStream {
|
||||
let implementation = {
|
||||
let ast = structure.ast();
|
||||
let span = ast.span().unwrap();
|
||||
|
|
|
@ -385,7 +385,7 @@ impl quote::ToTokens for Applicability {
|
|||
|
||||
/// Build the mapping of field names to fields. This allows attributes to peek values from
|
||||
/// other fields.
|
||||
pub(super) fn build_field_mapping<'v>(variant: &VariantInfo<'v>) -> HashMap<String, TokenStream> {
|
||||
pub(super) fn build_field_mapping(variant: &VariantInfo<'_>) -> HashMap<String, TokenStream> {
|
||||
let mut fields_map = FieldMap::new();
|
||||
for binding in variant.bindings() {
|
||||
if let Some(ident) = &binding.ast().ident {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue