Package: rustc / 1.70.0+dfsg1-9

Metadata

Package Version Patches format
rustc 1.70.0+dfsg1-9 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
u reproducible build.patch | (download)

compiler/rustc_llvm/build.rs | 5 5 + 0 - 0 !
1 file changed, 5 insertions(+)

 don't split dwarf debug for a fully-reproducible build

Bug: https://github.com/rust-lang/rust/issues/34902

u ignore endian big diff.patch | (download)

tests/ui/consts/const-eval/ub-enum.rs | 1 1 + 0 - 0 !
tests/ui/consts/const-eval/ub-int-array.rs | 1 1 + 0 - 0 !
tests/ui/consts/const-eval/ub-nonnull.rs | 1 1 + 0 - 0 !
tests/ui/consts/const-eval/ub-ref-ptr.rs | 1 1 + 0 - 0 !
tests/ui/consts/const-eval/ub-uninhabit.rs | 1 1 + 0 - 0 !
tests/ui/consts/const-eval/ub-wide-ptr.rs | 1 1 + 0 - 0 !
6 files changed, 6 insertions(+)

 u-ignore-endian-big-diff

Bug: https://github.com/rust-lang/rust/issues/89577

===================================================================

u fix get toml when test.patch | (download)

src/bootstrap/config.rs | 22 19 + 3 - 0 !
1 file changed, 19 insertions(+), 3 deletions(-)

 fix get_toml() when cfg(test)
 When cfg(test), Config::parse doesn't parse a config.toml but uses default
 values, failing when the initial rustc is needed. This is a workaround before
 upstream issue gets solved.
Bug: https://github.com/rust-lang/rust/issues/105766
u disable fp precision test on i386.patch | (download)

library/core/src/num/f32.rs | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 [patch] core library: disable fpmath tests for i386 ...

This patch disables the floating-point epsilon test for i386 since
x87 registers are too imprecise and can't produce the expected
results.

u riscv disable unpacked split debuginfo.patch | (download)

compiler/rustc_target/src/spec/riscv64gc_unknown_freebsd.rs | 4 3 + 1 - 0 !
compiler/rustc_target/src/spec/riscv64gc_unknown_fuchsia.rs | 4 3 + 1 - 0 !
compiler/rustc_target/src/spec/riscv64gc_unknown_linux_gnu.rs | 4 3 + 1 - 0 !
compiler/rustc_target/src/spec/riscv64gc_unknown_linux_musl.rs | 4 3 + 1 - 0 !
compiler/rustc_target/src/spec/riscv64gc_unknown_none_elf.rs | 4 3 + 1 - 0 !
compiler/rustc_target/src/spec/riscv64gc_unknown_openbsd.rs | 4 3 + 1 - 0 !
compiler/rustc_target/src/spec/riscv64imac_unknown_none_elf.rs | 4 3 + 1 - 0 !
7 files changed, 21 insertions(+), 7 deletions(-)

 explicitly disable split unpacked debuginfo for now on riscv64,
 it's broken and we don't want cargo to auto-enable it..
 https://github.com/llvm/llvm-project/issues/56642
 https://github.com/rust-lang/rust/issues/110224Z

u profiler.patch | (download)

config.example.toml | 6 4 + 2 - 0 !
library/profiler_builtins/build.rs | 6 6 + 0 - 0 !
src/bootstrap/compile.rs | 4 4 + 0 - 0 !
src/bootstrap/config.rs | 30 24 + 6 - 0 !
4 files changed, 38 insertions(+), 8 deletions(-)

 [patch] allow using external builds of the compiler-rt profile lib

This changes the bootstrap config `target.*.profiler` from a plain bool
to also allow a string, which will be used as a path to the pre-built
profiling runtime for that target. Then `profiler_builtins/build.rs`
reads that in a `LLVM_PROFILER_RT_LIB` environment variable.

u ignore ppc hangs.patch | (download)

library/alloc/tests/arc.rs | 1 1 + 0 - 0 !
library/alloc/tests/rc.rs | 1 1 + 0 - 0 !
2 files changed, 2 insertions(+)

 u-ignore-ppc-hangs

Bug: https://github.com/rust-lang/rust/issues/89607

u rustc llvm cross flags.patch | (download)

compiler/rustc_llvm/build.rs | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 u-rustc-llvm-cross-flags

===================================================================

u reproducible dl stage0.patch | (download)

src/bootstrap/bootstrap.py | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 u-reproducible-dl-stage0

===================================================================

d fix rustix outline.patch | (download)

vendor/rustix-0.36.5/Cargo.toml | 5 3 + 2 - 0 !
vendor/rustix-0.36.5/build.rs | 9 4 + 5 - 0 !
vendor/rustix/Cargo.toml | 5 3 + 2 - 0 !
vendor/rustix/build.rs | 9 4 + 5 - 0 !
4 files changed, 14 insertions(+), 14 deletions(-)

---
d disable download tests.patch | (download)

src/bootstrap/config/tests.rs | 7 7 + 0 - 0 !
1 file changed, 7 insertions(+)

---
d 0000 ignore removed submodules.patch | (download)

Cargo.toml | 16 0 + 16 - 0 !
src/bootstrap/bootstrap.py | 4 0 + 4 - 0 !
src/bootstrap/builder.rs | 59 13 + 46 - 0 !
src/bootstrap/doc.rs | 1 0 + 1 - 0 !
src/bootstrap/test.rs | 12 1 + 11 - 0 !
src/tools/clippy/Cargo.toml | 5 0 + 5 - 0 !
src/tools/rust-analyzer/Cargo.toml | 11 10 + 1 - 0 !
src/tools/rustfmt/Cargo.toml | 5 0 + 5 - 0 !
src/tools/tidy/src/deps.rs | 4 3 + 1 - 0 !
9 files changed, 27 insertions(+), 90 deletions(-)

 d-0000-ignore-removed-submodules


d 0001 pkg config no special snowflake.patch | (download)

vendor/pkg-config/src/lib.rs | 25 10 + 15 - 0 !
vendor/pkg-config/tests/test.rs | 2 0 + 2 - 0 !
2 files changed, 10 insertions(+), 17 deletions(-)

 d-0001-pkg-config-no-special-snowflake


d 0002 mdbook strip embedded libs.patch | (download)

src/tools/linkchecker/main.rs | 28 26 + 2 - 0 !
vendor/mdbook/src/book/init.rs | 19 0 + 19 - 0 !
vendor/mdbook/src/renderer/html_handlebars/hbs_renderer.rs | 110 17 + 93 - 0 !
vendor/mdbook/src/renderer/html_handlebars/search.rs | 2 0 + 2 - 0 !
vendor/mdbook/src/theme/index.hbs | 99 4 + 95 - 0 !
vendor/mdbook/src/theme/mod.rs | 27 0 + 27 - 0 !
vendor/mdbook/src/theme/searcher/mod.rs | 2 0 + 2 - 0 !
7 files changed, 47 insertions(+), 240 deletions(-)

 d-0002-mdbook-strip-embedded-libs

Comment: Use https://github.com/infinity0/mdBook/tree/debian to help you rebase the patch on top of a newer version. . Make sure the paths here match the ones in debian/rust-doc.links

d 0003 cc psm rebuild wasm32.patch | (download)

vendor/cc/src/lib.rs | 2 1 + 1 - 0 !
vendor/psm/build.rs | 7 2 + 5 - 0 !
2 files changed, 3 insertions(+), 6 deletions(-)

 d-0003-cc-psm-rebuild-wasm32


d 0004 clippy feature sync.patch | (download)

src/tools/clippy/Cargo.toml | 2 1 + 1 - 0 !
src/tools/rustfmt/Cargo.toml | 4 3 + 1 - 0 !
2 files changed, 4 insertions(+), 2 deletions(-)

 d-0004-clippy-feature-sync

enable features needed by rustfmt to make build system happy and speedup build.
this is what rustc_workspace_hack does in the upstream build.

d 0005 no jemalloc.patch | (download)

compiler/rustc/Cargo.toml | 6 0 + 6 - 0 !
src/tools/rust-analyzer/crates/profile/Cargo.toml | 2 0 + 2 - 0 !
2 files changed, 8 deletions(-)

 d-0005-no-jemalloc


d bootstrap rustflags.patch | (download)

src/bootstrap/builder.rs | 12 12 + 0 - 0 !
1 file changed, 12 insertions(+)

 d-bootstrap-rustflags

===================================================================

d remove arm privacy breaches.patch | (download)

library/stdarch/crates/stdarch-verify/arm-intrinsics.html | 134 0 + 134 - 0 !
1 file changed, 134 deletions(-)

 d-remove-arm-privacy-breaches

===================================================================

d bootstrap install symlinks.patch | (download)

src/tools/rust-installer/install-template.sh | 7 5 + 2 - 0 !
1 file changed, 5 insertions(+), 2 deletions(-)

 install symlinks as-is, don't dereference them

Our patch to mdbook installs symlinks to systems versions of font-awesome,
highlight, etc. Upstream mdbook otherwise doesn't use symlinks, so this
doesn't affect anything else that's already generated.

d bootstrap disable git.patch | (download)

src/bootstrap/channel.rs | 6 6 + 0 - 0 !
src/bootstrap/dist.rs | 5 4 + 1 - 0 !
2 files changed, 10 insertions(+), 1 deletion(-)

 don't check for cargo-vendor when building from (debian's) git

d bootstrap read beta version from file.patch | (download)

src/bootstrap/lib.rs | 17 9 + 8 - 0 !
1 file changed, 9 insertions(+), 8 deletions(-)

 d-bootstrap-read-beta-version-from-file

===================================================================

d bootstrap no assume tools.patch | (download)

src/bootstrap/builder/tests.rs | 4 4 + 0 - 0 !
1 file changed, 4 insertions(+)

 d-bootstrap-no-assume-tools

===================================================================

d bootstrap cargo doc paths.patch | (download)

compiler/rustc_error_codes/src/error_codes/E0460.md | 2 1 + 1 - 0 !
compiler/rustc_error_codes/src/error_codes/E0461.md | 2 1 + 1 - 0 !
compiler/rustc_error_codes/src/error_codes/E0462.md | 2 1 + 1 - 0 !
compiler/rustc_error_codes/src/error_codes/E0514.md | 2 1 + 1 - 0 !
compiler/rustc_error_codes/src/error_codes/E0519.md | 2 1 + 1 - 0 !
src/doc/edition-guide/book.toml | 18 9 + 9 - 0 !
src/doc/edition-guide/src/editions/advanced-migrations.md | 14 7 + 7 - 0 !
src/doc/edition-guide/src/editions/transitioning-an-existing-project-to-a-new-edition.md | 4 2 + 2 - 0 !
src/doc/edition-guide/src/rust-2021/default-cargo-resolver.md | 10 5 + 5 - 0 !
src/doc/index.md | 2 1 + 1 - 0 !
src/doc/reference/src/conditional-compilation.md | 2 1 + 1 - 0 !
src/doc/reference/src/introduction.md | 4 2 + 2 - 0 !
src/doc/reference/src/linkage.md | 2 1 + 1 - 0 !
src/doc/reference/src/procedural-macros.md | 2 1 + 1 - 0 !
src/doc/rustc/src/linker-plugin-lto.md | 2 1 + 1 - 0 !
src/doc/rustc/src/platform-support/fuchsia.md | 2 1 + 1 - 0 !
src/doc/rustc/src/targets/custom.md | 2 1 + 1 - 0 !
src/doc/rustc/src/tests/index.md | 4 2 + 2 - 0 !
src/doc/rustc/src/what-is-rustc.md | 2 1 + 1 - 0 !
src/doc/unstable-book/src/compiler-flags/branch-protection.md | 2 1 + 1 - 0 !
src/doc/unstable-book/src/compiler-flags/control-flow-guard.md | 2 1 + 1 - 0 !
src/doc/unstable-book/src/compiler-flags/sanitizer.md | 2 1 + 1 - 0 !
src/tools/linkchecker/main.rs | 6 6 + 0 - 0 !
23 files changed, 49 insertions(+), 43 deletions(-)

 fix links to cargo-doc

d bootstrap use local css.patch | (download)

src/bootstrap/doc.rs | 27 21 + 6 - 0 !
1 file changed, 21 insertions(+), 6 deletions(-)

 d-bootstrap-use-local-css

===================================================================

d bootstrap old cargo compat.patch | (download)

src/bootstrap/doc.rs | 3 0 + 3 - 0 !
1 file changed, 3 deletions(-)

 backwards-compat for cargo 0.47

  The flag being removed here was added in
  https://github.com/rust-lang/cargo/pull/9404 released in cargo 0.54
  
  This works around a feature introduced in this PR
  https://github.com/rust-lang/cargo/pull/8640 released in cargo 0.53
  
  Therefore it is not needed for Debian's current cargo 0.47.
  
  We can drop this patch when updating to cargo 0.54 and later.

d bootstrap custom debuginfo path.patch | (download)

src/bootstrap/lib.rs | 5 2 + 3 - 0 !
tests/codegen/remap_path_prefix/issue-73167-remap-std.rs | 2 1 + 1 - 0 !
2 files changed, 3 insertions(+), 4 deletions(-)

 d-bootstrap-custom-debuginfo-path

===================================================================

d bootstrap permit symlink in docs.patch | (download)

src/bootstrap/dist.rs | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

---
d test ignore avx 44056.patch | (download)

tests/ui/issues/issue-44056.rs | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 d-test-ignore-avx-44056

Bug: https://github.com/rust-lang/rust/pull/55667

===================================================================

d bootstrap cargo check cfg.patch | (download)

src/bootstrap/builder.rs | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

---
d armel fix lldb.patch | (download)

src/bootstrap/test.rs | 6 5 + 1 - 0 !
1 file changed, 5 insertions(+), 1 deletion(-)

---
d rust gdb paths | (download)

src/etc/rust-gdbgui | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 hardcode gdb python module directory

d rust lldb paths | (download)

src/etc/rust-lldb | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 hardcode lldb python module directory

d rustc add soname.patch | (download)

compiler/rustc_codegen_ssa/src/back/link.rs | 7 7 + 0 - 0 !
1 file changed, 7 insertions(+)

 set dt_soname when building dylibs

d rustc fix mips64el bootstrap.patch | (download)

compiler/rustc_target/src/spec/mips64_unknown_linux_gnuabi64.rs | 2 1 + 1 - 0 !
compiler/rustc_target/src/spec/mips64el_unknown_linux_gnuabi64.rs | 2 1 + 1 - 0 !
src/bootstrap/bootstrap.py | 2 2 + 0 - 0 !
tests/assembly/asm/mips-types.rs | 1 1 + 0 - 0 !
4 files changed, 5 insertions(+), 2 deletions(-)

 d-rustc-fix-mips64el-bootstrap

Bug: https://github.com/rust-lang/rust/issues/52108

===================================================================

d rustc windows ssp.patch | (download)

compiler/rustc_target/src/spec/windows_gnu_base.rs | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

 d-rustc-windows-ssp

Bug: https://github.com/rust-lang/rust/issues/68973

d rustc i686 baseline.patch | (download)

compiler/rustc_target/src/spec/i686_unknown_linux_gnu.rs | 2 1 + 1 - 0 !
tests/ui/abi/homogenous-floats-target-feature-mixup.rs | 3 2 + 1 - 0 !
tests/ui/sse2.rs | 2 1 + 1 - 0 !
3 files changed, 4 insertions(+), 3 deletions(-)

 d-rustc-i686-baseline

===================================================================

d rustdoc disable embedded fonts.patch | (download)

src/librustdoc/html/static/css/rustdoc.css | 8 0 + 8 - 0 !
src/librustdoc/html/static_files.rs | 2 0 + 2 - 0 !
2 files changed, 10 deletions(-)

 d-rustdoc-disable-embedded-fonts

===================================================================