mirror of
https://github.com/Noratrieb/std-internal-docs.git
synced 2026-03-14 14:36:06 +01:00
Compare commits
2 commits
eedc321477
...
b54c43b30b
| Author | SHA1 | Date | |
|---|---|---|---|
| b54c43b30b | |||
|
|
d2f30b9efc |
2 changed files with 12 additions and 29 deletions
19
build.sh
19
build.sh
|
|
@ -11,18 +11,24 @@ if [ ! -d 'rust' ]; then
|
|||
git clone --depth 50 https://github.com/rust-lang/rust.git
|
||||
pushd rust
|
||||
git ls-files -z -- ':(glob)library/**/*.rs' \
|
||||
| xargs -0 sed -i'' -E 's@^[[:space:]]*#!?\[doc\(cfg.*$@// & // commented out for std.noratrieb.dev@'
|
||||
git apply ../disable-cfg-doc.patch
|
||||
| xargs -0 sed -i'' -E 's@^ *#!?\[doc\(cfg.*$@// & // commented out for std.noratrieb.dev@'
|
||||
git ls-files -z -- ':(glob)src/librustdoc/**/*.rs' \
|
||||
| xargs -0 sed -i'' -E 's@^ *cfgs\.push\("doc".*$@// & // commented out for std.noratrieb.dev@'
|
||||
git --no-pager diff # show diff for easier debugging in case of deploy failures
|
||||
popd
|
||||
fi
|
||||
cd rust
|
||||
|
||||
rm -f bootstrap.toml
|
||||
./configure \
|
||||
--set llvm.download-ci-llvm=true \
|
||||
--set rust.llvm-tools=false \
|
||||
--set rust.llvm-bitcode-linker=false \
|
||||
configure_args=(
|
||||
--set llvm.download-ci-llvm=true
|
||||
--set rust.llvm-tools=false
|
||||
--set rust.llvm-bitcode-linker=false
|
||||
--set build.optimized-compiler-builtins=false # necessary to make cross-doc work for all targets
|
||||
--set change-id=ignore
|
||||
--set rust.deny-warnings=false
|
||||
)
|
||||
./configure "${configure_args[@]}"
|
||||
|
||||
targets=(
|
||||
x86_64-unknown-linux-gnu
|
||||
|
|
@ -48,7 +54,6 @@ for target in "${targets[@]}"; do
|
|||
--document-hidden-items \
|
||||
--html-before-content=$root/before.html \
|
||||
--extend-css=$root/style.css \
|
||||
--cap-lints=allow \
|
||||
--generate-link-to-definition \
|
||||
--generate-macro-expansion"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,22 +0,0 @@
|
|||
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