Skip to content

Commit 5c4ce06

Browse files
committed
internal: Fix rustdoc quoting
GitHub actions are currently failing with: error: unresolved link to `cfg_attr` --> crates/ide-completion/src/context.rs:414:61 | 414 | /// Set if we are inside the predicate of a #[cfg] or #[cfg_attr]. | ^^^^^^^^ no item named `cfg_attr` in scope | = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` = note: `-D rustdoc::broken-intra-doc-links` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(rustdoc::broken_intra_doc_links)]` Documenting ide v0.0.0 (/home/runner/work/rust-analyzer/rust-analyzer/crates/ide) error: could not document `ide-completion` Use backticks to fix this. AI disclosure: written with Claude Opus because it was marginally faster.
1 parent 545134a commit 5c4ce06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/ide-completion/src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ pub(crate) enum CompletionAnalysis<'db> {
411411
fake_attribute_under_caret: Option<ast::TokenTreeMeta>,
412412
extern_crate: Option<ast::ExternCrate>,
413413
},
414-
/// Set if we are inside the predicate of a #[cfg] or #[cfg_attr].
414+
/// Set if we are inside the predicate of a `#[cfg]` or `#[cfg_attr]`.
415415
CfgPredicate,
416416
MacroSegment,
417417
}

0 commit comments

Comments
 (0)