mirror of
https://github.com/Noratrieb/std-internal-docs.git
synced 2026-03-14 22:46:06 +01:00
add doc links generation in definitions
This commit is contained in:
parent
1478e4387f
commit
a3433cfdde
2 changed files with 30 additions and 1 deletions
22
disable-cfg-doc.patch
Normal file
22
disable-cfg-doc.patch
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
diff --git a/src/librustdoc/core.rs b/src/librustdoc/core.rs
|
||||
index 375f833831..942dba29e6 100644
|
||||
--- a/src/librustdoc/core.rs
|
||||
+++ b/src/librustdoc/core.rs
|
||||
@@ -202,7 +202,7 @@ pub(crate) fn create_config(
|
||||
diagnostic_width,
|
||||
libs,
|
||||
externs,
|
||||
- mut cfgs,
|
||||
+ cfgs,
|
||||
check_cfgs,
|
||||
codegen_options,
|
||||
unstable_opts,
|
||||
@@ -220,7 +220,7 @@ pub(crate) fn create_config(
|
||||
render_options: &RenderOptions,
|
||||
) -> rustc_interface::Config {
|
||||
// Add the doc cfg into the doc build.
|
||||
- cfgs.push("doc".to_string());
|
||||
+ // cfgs.push("doc".to_string());
|
||||
|
||||
// By default, rustdoc ignores all lints.
|
||||
// Specifically unblock lints relevant to documentation or the lint machinery itself.
|
||||
Loading…
Add table
Add a link
Reference in a new issue