mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-29 02:52:11 +00:00
fix: Fix move_bounds assists not working for lifetimes
This commit is contained in:
parent
cb18ead726
commit
f9c83edf12
8 changed files with 194 additions and 45 deletions
|
|
@ -13,6 +13,7 @@
|
|||
|
||||
mod quote;
|
||||
|
||||
use either::Either;
|
||||
use itertools::Itertools;
|
||||
use parser::{Edition, T};
|
||||
use rowan::NodeOrToken;
|
||||
|
|
@ -881,7 +882,7 @@ pub fn match_arm_list(arms: impl IntoIterator<Item = ast::MatchArm>) -> ast::Mat
|
|||
}
|
||||
|
||||
pub fn where_pred(
|
||||
path: ast::Type,
|
||||
path: Either<ast::Lifetime, ast::Type>,
|
||||
bounds: impl IntoIterator<Item = ast::TypeBound>,
|
||||
) -> ast::WherePred {
|
||||
let bounds = bounds.into_iter().join(" + ");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue