Skip to content

Commit 0b23b87

Browse files
committed
Auto merge of #3857 - rust-lang:rustup-2024-09-02, r=RalfJung
Automatic Rustup
2 parents fd1b69a + cda17ec commit 0b23b87

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/hir-def/src/attr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl Attrs {
117117
}
118118

119119
impl Attrs {
120-
pub fn by_key<'attrs>(&'attrs self, key: &'attrs Symbol) -> AttrQuery<'_> {
120+
pub fn by_key<'attrs>(&'attrs self, key: &'attrs Symbol) -> AttrQuery<'attrs> {
121121
AttrQuery { attrs: self, key }
122122
}
123123

@@ -594,7 +594,7 @@ impl<'attr> AttrQuery<'attr> {
594594
/// #[doc(html_root_url = "url")]
595595
/// ^^^^^^^^^^^^^ key
596596
/// ```
597-
pub fn find_string_value_in_tt(self, key: &'attr Symbol) -> Option<&str> {
597+
pub fn find_string_value_in_tt(self, key: &'attr Symbol) -> Option<&'attr str> {
598598
self.tt_values().find_map(|tt| {
599599
let name = tt.token_trees.iter()
600600
.skip_while(|tt| !matches!(tt, tt::TokenTree::Leaf(tt::Leaf::Ident(tt::Ident { sym, ..} )) if *sym == *key))

crates/hir-def/src/body.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ impl Body {
197197
pub fn blocks<'a>(
198198
&'a self,
199199
db: &'a dyn DefDatabase,
200-
) -> impl Iterator<Item = (BlockId, Arc<DefMap>)> + '_ {
200+
) -> impl Iterator<Item = (BlockId, Arc<DefMap>)> + 'a {
201201
self.block_scopes.iter().map(move |&block| (block, db.block_def_map(block)))
202202
}
203203

0 commit comments

Comments
 (0)