Skip to content

Commit 9e7854c

Browse files
committed
up to 1.48.0
- libunwind directory workaround borrowed from fedora (required by analyzer but apparently not used)
1 parent 3c25e53 commit 9e7854c

File tree

2 files changed

+41
-38
lines changed

2 files changed

+41
-38
lines changed

rust-x32.patch

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
--- rustc-1.47.0-src.orig/src/librustc_errors/lib.rs 2020-10-07 09:53:22.000000000 +0200
2-
+++ rustc-1.47.0-src/src/librustc_errors/lib.rs 2020-10-30 13:52:39.921952637 +0100
1+
--- rustc-1.47.0-src.orig/compiler/rustc_errors/src/lib.rs 2020-10-07 09:53:22.000000000 +0200
2+
+++ rustc-1.47.0-src/compiler/rustc_errors/src/lib.rs 2020-10-30 13:52:39.921952637 +0100
33
@@ -45,7 +45,7 @@
44

55
// `PResult` is used a lot. Make sure it doesn't unintentionally get bigger.
@@ -9,30 +9,30 @@
99
rustc_data_structures::static_assert_size!(PResult<'_, bool>, 16);
1010

1111
/// Indicates the confidence in the correctness of a suggestion.
12-
--- rustc-1.47.0-src.orig/src/librustc_ast/ast.rs 2020-10-07 09:53:22.000000000 +0200
13-
+++ rustc-1.47.0-src/src/librustc_ast/ast.rs 2020-10-30 13:53:59.025035237 +0100
12+
--- rustc-1.47.0-src.orig/compiler/rustc_ast/src/ast.rs 2020-10-07 09:53:22.000000000 +0200
13+
+++ rustc-1.47.0-src/compiler/rustc_ast/src/ast.rs 2020-10-30 13:53:59.025035237 +0100
1414
@@ -1056,7 +1056,7 @@
1515
}
1616

1717
// `Expr` is used a lot. Make sure it doesn't unintentionally get bigger.
1818
-#[cfg(target_arch = "x86_64")]
1919
+#[cfg(all(target_arch = "x86_64", target_pointer_size = "64"))]
20-
rustc_data_structures::static_assert_size!(Expr, 104);
20+
rustc_data_structures::static_assert_size!(Expr, 112);
2121

2222
impl Expr {
23-
--- rustc-1.47.0-src.orig/src/librustc_ast/token.rs 2020-10-07 09:53:22.000000000 +0200
24-
+++ rustc-1.47.0-src/src/librustc_ast/token.rs 2020-10-30 13:52:39.925285960 +0100
23+
--- rustc-1.47.0-src.orig/compiler/rustc_ast/src/token.rs 2020-10-07 09:53:22.000000000 +0200
24+
+++ rustc-1.47.0-src/compiler/rustc_ast/src/token.rs 2020-10-30 13:52:39.925285960 +0100
2525
@@ -710,7 +710,7 @@
2626
}
2727

2828
// `Nonterminal` is used a lot. Make sure it doesn't unintentionally get bigger.
2929
-#[cfg(target_arch = "x86_64")]
3030
+#[cfg(all(target_arch = "x86_64", target_pointer_size = "64"))]
31-
rustc_data_structures::static_assert_size!(Nonterminal, 40);
31+
rustc_data_structures::static_assert_size!(Nonterminal, 48);
3232

3333
#[derive(Debug, Copy, Clone, PartialEq, Encodable, Decodable)]
34-
--- rustc-1.47.0-src.orig/src/librustc_ast/tokenstream.rs 2020-10-07 09:53:22.000000000 +0200
35-
+++ rustc-1.47.0-src/src/librustc_ast/tokenstream.rs 2020-10-30 13:52:39.925285960 +0100
34+
--- rustc-1.47.0-src.orig/compiler/rustc_ast/src/tokenstream.rs 2020-10-07 09:53:22.000000000 +0200
35+
+++ rustc-1.47.0-src/compiler/rustc_ast/src/tokenstream.rs 2020-10-30 13:52:39.925285960 +0100
3636
@@ -130,7 +130,7 @@
3737
pub type TreeAndJoint = (TokenTree, IsJoint);
3838

@@ -42,8 +42,8 @@
4242
rustc_data_structures::static_assert_size!(TokenStream, 8);
4343

4444
#[derive(Clone, Copy, Debug, PartialEq, Encodable, Decodable)]
45-
--- rustc-1.47.0-src.orig/src/librustc_middle/mir/mod.rs 2020-10-07 09:53:22.000000000 +0200
46-
+++ rustc-1.47.0-src/src/librustc_middle/mir/mod.rs 2020-10-30 13:52:39.925285960 +0100
45+
--- rustc-1.47.0-src.orig/compiler/rustc_middle/src/mir/mod.rs 2020-10-07 09:53:22.000000000 +0200
46+
+++ rustc-1.47.0-src/compiler/rustc_middle/src/mir/mod.rs 2020-10-30 13:52:39.925285960 +0100
4747
@@ -1353,7 +1353,7 @@
4848
}
4949

@@ -59,11 +59,11 @@
5959
// At least on 64 bit systems, `PlaceElem` should not be larger than two pointers.
6060
-#[cfg(target_arch = "x86_64")]
6161
+#[cfg(all(target_arch = "x86_64", target_pointer_size = "64"))]
62-
static_assert_size!(PlaceElem<'_>, 16);
62+
static_assert_size!(PlaceElem<'_>, 24);
6363

6464
/// Alias for projections as they appear in `UserTypeProjection`, where we
65-
--- rustc-1.47.0-src.orig/src/librustc_middle/mir/tcx.rs 2020-10-07 09:53:22.000000000 +0200
66-
+++ rustc-1.47.0-src/src/librustc_middle/mir/tcx.rs 2020-10-30 13:52:39.925285960 +0100
65+
--- rustc-1.47.0-src.orig/compiler/rustc_middle/src/mir/tcx.rs 2020-10-07 09:53:22.000000000 +0200
66+
+++ rustc-1.47.0-src/compiler/rustc_middle/src/mir/tcx.rs 2020-10-30 13:52:39.925285960 +0100
6767
@@ -17,7 +17,7 @@
6868
}
6969

@@ -73,8 +73,8 @@
7373
static_assert_size!(PlaceTy<'_>, 16);
7474

7575
impl<'tcx> PlaceTy<'tcx> {
76-
--- rustc-1.47.0-src.orig/src/librustc_middle/traits/mod.rs 2020-10-07 09:53:22.000000000 +0200
77-
+++ rustc-1.47.0-src/src/librustc_middle/traits/mod.rs 2020-10-30 13:52:39.925285960 +0100
76+
--- rustc-1.47.0-src.orig/compiler/rustc_middle/src/traits/mod.rs 2020-10-07 09:53:22.000000000 +0200
77+
+++ rustc-1.47.0-src/compiler/rustc_middle/src/traits/mod.rs 2020-10-30 13:52:39.925285960 +0100
7878
@@ -339,7 +339,7 @@
7979
}
8080

@@ -84,8 +84,8 @@
8484
static_assert_size!(ObligationCauseCode<'_>, 32);
8585

8686
#[derive(Clone, Debug, PartialEq, Eq, Hash, Lift)]
87-
--- rustc-1.47.0-src.orig/src/librustc_middle/ty/mod.rs 2020-10-07 09:53:22.000000000 +0200
88-
+++ rustc-1.47.0-src/src/librustc_middle/ty/mod.rs 2020-10-30 13:52:39.925285960 +0100
87+
--- rustc-1.47.0-src.orig/compiler/rustc_middle/src/ty/mod.rs 2020-10-07 09:53:22.000000000 +0200
88+
+++ rustc-1.47.0-src/compiler/rustc_middle/src/ty/mod.rs 2020-10-30 13:52:39.925285960 +0100
8989
@@ -604,7 +604,7 @@
9090
}
9191

@@ -95,8 +95,8 @@
9595
static_assert_size!(TyS<'_>, 32);
9696

9797
impl<'tcx> Ord for TyS<'tcx> {
98-
--- rustc-1.47.0-src.orig/src/librustc_middle/ty/sty.rs 2020-10-07 09:53:22.000000000 +0200
99-
+++ rustc-1.47.0-src/src/librustc_middle/ty/sty.rs 2020-10-30 13:52:39.925285960 +0100
98+
--- rustc-1.47.0-src.orig/compiler/rustc_middle/src/ty/sty.rs 2020-10-07 09:53:22.000000000 +0200
99+
+++ rustc-1.47.0-src/compiler/rustc_middle/src/ty/sty.rs 2020-10-30 13:52:39.925285960 +0100
100100
@@ -213,7 +213,7 @@
101101
}
102102

@@ -106,30 +106,30 @@
106106
static_assert_size!(TyKind<'_>, 24);
107107

108108
/// A closure can be modeled as a struct that looks like:
109-
--- rustc-1.47.0-src.orig/src/librustc_infer/traits/mod.rs 2020-10-07 09:53:22.000000000 +0200
110-
+++ rustc-1.47.0-src/src/librustc_infer/traits/mod.rs 2020-10-30 13:53:29.548462138 +0100
109+
--- rustc-1.47.0-src.orig/compiler/rustc_infer/src/traits/mod.rs 2020-10-07 09:53:22.000000000 +0200
110+
+++ rustc-1.47.0-src/compiler/rustc_infer/src/traits/mod.rs 2020-10-30 13:53:29.548462138 +0100
111111
@@ -56,7 +56,7 @@
112112
pub type TraitObligation<'tcx> = Obligation<'tcx, ty::PolyTraitPredicate<'tcx>>;
113113

114114
// `PredicateObligation` is used a lot. Make sure it doesn't unintentionally get bigger.
115115
-#[cfg(target_arch = "x86_64")]
116116
+#[cfg(all(target_arch = "x86_64", target_pointer_size = "64"))]
117-
static_assert_size!(PredicateObligation<'_>, 40);
117+
static_assert_size!(PredicateObligation<'_>, 32);
118118

119119
pub type Obligations<'tcx, O> = Vec<Obligation<'tcx, O>>;
120-
--- rustc-1.47.0-src.orig/src/librustc_trait_selection/traits/fulfill.rs 2020-10-07 09:53:22.000000000 +0200
121-
+++ rustc-1.47.0-src/src/librustc_trait_selection/traits/fulfill.rs 2020-10-30 13:53:12.381849892 +0100
120+
--- rustc-1.47.0-src.orig/compiler/rustc_trait_selection/src/traits/fulfill.rs 2020-10-07 09:53:22.000000000 +0200
121+
+++ rustc-1.47.0-src/compiler/rustc_trait_selection/src/traits/fulfill.rs 2020-10-30 13:53:12.381849892 +0100
122122
@@ -85,7 +85,7 @@
123123
}
124124

125125
// `PendingPredicateObligation` is used a lot. Make sure it doesn't unintentionally get bigger.
126126
-#[cfg(target_arch = "x86_64")]
127127
+#[cfg(all(target_arch = "x86_64", target_pointer_size = "64"))]
128-
static_assert_size!(PendingPredicateObligation<'_>, 64);
128+
static_assert_size!(PendingPredicateObligation<'_>, 56);
129129

130130
impl<'a, 'tcx> FulfillmentContext<'tcx> {
131-
--- rustc-1.47.0-src.orig/src/librustc_trait_selection/lib.rs 2020-10-07 09:53:22.000000000 +0200
132-
+++ rustc-1.47.0-src/src/librustc_trait_selection/lib.rs 2020-10-30 13:52:39.925285960 +0100
131+
--- rustc-1.47.0-src.orig/compiler/rustc_trait_selection/src/lib.rs 2020-10-07 09:53:22.000000000 +0200
132+
+++ rustc-1.47.0-src/compiler/rustc_trait_selection/src/lib.rs 2020-10-30 13:52:39.925285960 +0100
133133
@@ -20,7 +20,7 @@
134134

135135
#[macro_use]

rust.spec

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,29 @@
2121
# To bootstrap from scratch, set the channel and date from src/stage0.txt
2222
# e.g. 1.10.0 wants rustc: 1.9.0-2016-05-24
2323
# or nightly wants some beta-YYYY-MM-DD
24-
%define bootstrap_rust 1.46.0
25-
%define bootstrap_cargo 1.46.0
26-
%define bootstrap_date 2020-08-27
24+
%define bootstrap_rust 1.47.0
25+
%define bootstrap_cargo 1.47.0
26+
%define bootstrap_date 2020-10-08
2727

2828
%ifarch x32
2929
%define with_cross 1
3030
%endif
3131
Summary: The Rust Programming Language
3232
Summary(pl.UTF-8): Język programowania Rust
3333
Name: rust
34-
Version: 1.47.0
34+
Version: 1.48.0
3535
Release: 0.1
3636
# Licenses: (rust itself) and (bundled libraries)
3737
License: (Apache v2.0 or MIT) and (BSD and ISC and MIT)
3838
Group: Development/Languages
3939
Source0: https://static.rust-lang.org/dist/%{rustc_package}.tar.xz
40-
# Source0-md5: 6283a61cac54bb0a7d32bc447d07fadc
40+
# Source0-md5: 1d8996bba1abbd5b3b149ccc89589664
4141
Source1: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_rust}-x86_64-unknown-linux-gnu.tar.xz
42-
# Source1-md5: 45eaf35327db0bac923c65048637a2f5
42+
# Source1-md5: 9365de1153dae7bf1f99224382f8d77c
4343
Source2: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_rust}-i686-unknown-linux-gnu.tar.xz
44-
# Source2-md5: 6a2422d81e98df5b71a959c70aa4c81b
44+
# Source2-md5: 9c351771a541e38416dd99ca85309059
4545
Source3: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_rust}-aarch64-unknown-linux-gnu.tar.xz
46-
# Source3-md5: 144376df8b0ddfef57900b867746a9ab
46+
# Source3-md5: 1bb96238b441204e2b47561857ca9916
4747
Patch0: %{name}-x32.patch
4848
URL: https://www.rust-lang.org/
4949
# for src/compiler-rt
@@ -301,7 +301,10 @@ test -f %{local_rust_root}/bin/rustc
301301
# unbundle
302302
# We're disabling jemalloc, but rust-src still wants it.
303303
#%{__rm} -r src/jemalloc
304-
%{?with_system_llvm:%{__rm} -r src/llvm-project}
304+
%if %{with system_llvm}
305+
%{__rm} -r src/llvm-project
306+
mkdir -p src/llvm-project/libunwind
307+
%endif
305308

306309
# extract bundled licenses for packaging
307310
sed -e '/*\//q' library/backtrace/crates/backtrace-sys/src/libbacktrace/backtrace.h \

0 commit comments

Comments
 (0)