Skip to content

Commit 9ec97bd

Browse files
Fix broken links to rust-analyzer docs (#4190)
Co-authored-by: UebelAndre <github@uebelandre.com>
1 parent 7e06192 commit 9ec97bd

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

tools/rust_analyzer/bin/discover_rust_project.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Binary used for automatic Rust workspace discovery by `rust-analyzer`.
22
//! See [rust-analyzer documentation][rd] for a thorough description of this interface.
3-
//! [rd]: <https://rust-analyzer.github.io/manual.html#rust-analyzer.workspace.discoverConfig>.
3+
//! [rd]: <https://rust-analyzer.github.io/book/configuration.html#workspace.discoverConfig>.
44
55
use std::{
66
env,

tools/rust_analyzer/rust_project.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! Library for generating rust_project.json files from a `Vec<CrateSpec>`
2-
//! See official documentation of file format at https://rust-analyzer.github.io/manual.html
2+
//! See official documentation of file format at https://rust-analyzer.github.io/book/non_cargo_based_projects.html
33
44
use core::fmt;
55
use std::{
@@ -57,7 +57,7 @@ impl FromStr for RustAnalyzerArg {
5757

5858
/// The format that `rust_analyzer` expects as a response when automatically invoked.
5959
/// See [rust-analyzer documentation][rd] for a thorough description of this interface.
60-
/// [rd]: <https://rust-analyzer.github.io/manual.html#rust-analyzer.workspace.discoverConfig>.
60+
/// [rd]: <https://rust-analyzer.github.io/book/configuration.html#workspace.discoverConfig>.
6161
// `Progress` carries an `&fmt::Arguments` for in-flight log lines, which can't
6262
// be deserialized; the cache stores the inner `RustProject`, never the
6363
// discovery envelope, so Serialize is all we need here.
@@ -80,7 +80,7 @@ pub enum DiscoverProject<'a> {
8080

8181
/// A `rust-project.json` workspace representation. See
8282
/// [rust-analyzer documentation][rd] for a thorough description of this interface.
83-
/// [rd]: https://rust-analyzer.github.io/manual.html#non-cargo-based-projects
83+
/// [rd]: https://rust-analyzer.github.io/book/non_cargo_based_projects.html
8484
#[derive(Debug, Serialize, Deserialize)]
8585
pub struct RustProject {
8686
/// The path to a Rust sysroot.
@@ -103,7 +103,7 @@ pub struct RustProject {
103103

104104
/// A `rust-project.json` crate representation. See
105105
/// [rust-analyzer documentation][rd] for a thorough description of this interface.
106-
/// [rd]: https://rust-analyzer.github.io/manual.html#non-cargo-based-projects
106+
/// [rd]: https://rust-analyzer.github.io/book/non_cargo_based_projects.html
107107
#[derive(Debug, Serialize, Deserialize)]
108108
pub struct Crate {
109109
/// A name used in the package's project declaration

0 commit comments

Comments
 (0)