We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e3ee77 commit 13a996fCopy full SHA for 13a996f
xtask/src/codegen/gen_feature_docs.rs
@@ -70,14 +70,15 @@ fn is_valid_feature_name(feature: &str) -> bool {
70
impl fmt::Display for Feature {
71
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
72
writeln!(f, "=== {}", self.id)?;
73
- let path = self.path.strip_prefix(&project_root()).unwrap();
+ let path = self.path.strip_prefix(&project_root()).unwrap().display().to_string();
74
+ let path = path.replace('\\', "/");
75
let name = self.path.file_name().unwrap();
76
77
//FIXME: generate line number as well
78
writeln!(
79
f,
80
"**Source:** https://github.com/rust-analyzer/rust-analyzer/blob/master/{}[{}]",
- path.display(),
81
+ path,
82
name.to_str().unwrap(),
83
)?;
84
0 commit comments