mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-02 04:48:13 +00:00
Merge pull request #20553 from ChayimFriedman2/ns-highlight-attach
Some checks are pending
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
Some checks are pending
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
fix: Attach the db in one more place in highlighting
This commit is contained in:
commit
6b4569dccd
1 changed files with 2 additions and 1 deletions
|
|
@ -26,7 +26,8 @@ pub(super) fn ra_fixture(
|
|||
literal: &ast::String,
|
||||
expanded: &ast::String,
|
||||
) -> Option<()> {
|
||||
let active_parameter = ActiveParameter::at_token(sema, expanded.syntax().clone())?;
|
||||
let active_parameter =
|
||||
salsa::attach(sema.db, || ActiveParameter::at_token(sema, expanded.syntax().clone()))?;
|
||||
let has_rust_fixture_attr = active_parameter.attrs().is_some_and(|attrs| {
|
||||
attrs.filter_map(|attr| attr.as_simple_path()).any(|path| {
|
||||
path.segments()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue