diff --git a/tools/rust_analyzer/bin/discover_rust_project.rs b/tools/rust_analyzer/bin/discover_rust_project.rs index 46df25d320..dfdff5e432 100644 --- a/tools/rust_analyzer/bin/discover_rust_project.rs +++ b/tools/rust_analyzer/bin/discover_rust_project.rs @@ -1,6 +1,6 @@ //! Binary used for automatic Rust workspace discovery by `rust-analyzer`. //! See [rust-analyzer documentation][rd] for a thorough description of this interface. -//! [rd]: . +//! [rd]: . use std::{ env, diff --git a/tools/rust_analyzer/rust_project.rs b/tools/rust_analyzer/rust_project.rs index 38d2bd47a4..efc89dfcff 100644 --- a/tools/rust_analyzer/rust_project.rs +++ b/tools/rust_analyzer/rust_project.rs @@ -1,5 +1,5 @@ //! Library for generating rust_project.json files from a `Vec` -//! See official documentation of file format at https://rust-analyzer.github.io/manual.html +//! See official documentation of file format at https://rust-analyzer.github.io/book/non_cargo_based_projects.html use core::fmt; use std::{ @@ -57,7 +57,7 @@ impl FromStr for RustAnalyzerArg { /// The format that `rust_analyzer` expects as a response when automatically invoked. /// See [rust-analyzer documentation][rd] for a thorough description of this interface. -/// [rd]: . +/// [rd]: . // `Progress` carries an `&fmt::Arguments` for in-flight log lines, which can't // be deserialized; the cache stores the inner `RustProject`, never the // discovery envelope, so Serialize is all we need here. @@ -80,7 +80,7 @@ pub enum DiscoverProject<'a> { /// A `rust-project.json` workspace representation. See /// [rust-analyzer documentation][rd] for a thorough description of this interface. -/// [rd]: https://rust-analyzer.github.io/manual.html#non-cargo-based-projects +/// [rd]: https://rust-analyzer.github.io/book/non_cargo_based_projects.html #[derive(Debug, Serialize, Deserialize)] pub struct RustProject { /// The path to a Rust sysroot. @@ -103,7 +103,7 @@ pub struct RustProject { /// A `rust-project.json` crate representation. See /// [rust-analyzer documentation][rd] for a thorough description of this interface. -/// [rd]: https://rust-analyzer.github.io/manual.html#non-cargo-based-projects +/// [rd]: https://rust-analyzer.github.io/book/non_cargo_based_projects.html #[derive(Debug, Serialize, Deserialize)] pub struct Crate { /// A name used in the package's project declaration