diff options
Diffstat (limited to 'meta/recipes-devtools/rust/files')
5 files changed, 139 insertions, 85 deletions
diff --git a/meta/recipes-devtools/rust/files/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch b/meta/recipes-devtools/rust/files/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch index 5e0f5912a1..a7da69dce3 100644 --- a/meta/recipes-devtools/rust/files/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch +++ b/meta/recipes-devtools/rust/files/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch | |||
@@ -24,9 +24,9 @@ diff --git a/src/bootstrap/src/core/build_steps/tool.rs b/src/bootstrap/src/core | |||
24 | index 087df2f8a..00790affb 100644 | 24 | index 087df2f8a..00790affb 100644 |
25 | --- a/src/bootstrap/src/core/build_steps/tool.rs | 25 | --- a/src/bootstrap/src/core/build_steps/tool.rs |
26 | +++ b/src/bootstrap/src/core/build_steps/tool.rs | 26 | +++ b/src/bootstrap/src/core/build_steps/tool.rs |
27 | @@ -1,14 +1,11 @@ | 27 | @@ -15,14 +15,12 @@ |
28 | use std::path::PathBuf; | 28 | #[cfg(feature = "tracing")] |
29 | use std::{env, fs}; | 29 | use tracing::instrument; |
30 | 30 | ||
31 | -use crate::core::build_steps::compile::is_lto_stage; | 31 | -use crate::core::build_steps::compile::is_lto_stage; |
32 | use crate::core::build_steps::toolstate::ToolState; | 32 | use crate::core::build_steps::toolstate::ToolState; |
@@ -36,18 +36,20 @@ index 087df2f8a..00790affb 100644 | |||
36 | - Builder, Cargo as CargoCommand, RunConfig, ShouldRun, Step, cargo_profile_var, | 36 | - Builder, Cargo as CargoCommand, RunConfig, ShouldRun, Step, cargo_profile_var, |
37 | -}; | 37 | -}; |
38 | -use crate::core::config::{DebuginfoLevel, RustcLto, TargetSelection}; | 38 | -use crate::core::config::{DebuginfoLevel, RustcLto, TargetSelection}; |
39 | + | ||
39 | +use crate::core::builder::{Builder, Cargo as CargoCommand, RunConfig, ShouldRun, Step}; | 40 | +use crate::core::builder::{Builder, Cargo as CargoCommand, RunConfig, ShouldRun, Step}; |
40 | +use crate::core::config::{DebuginfoLevel, TargetSelection}; | 41 | +use crate::core::config::{DebuginfoLevel, TargetSelection}; |
41 | use crate::utils::channel::GitInfo; | 42 | use crate::utils::channel::GitInfo; |
42 | use crate::utils::exec::{BootstrapCommand, command}; | 43 | use crate::utils::exec::{BootstrapCommand, command}; |
43 | use crate::utils::helpers::{add_dylib_path, exe, t}; | 44 | use crate::utils::helpers::{add_dylib_path, exe, t}; |
44 | @@ -658,19 +655,7 @@ | 45 | @@ -148,20 +146,7 @@ |
45 | SourceType::InTree, | 46 | &self.extra_features, |
46 | features.as_slice(), | ||
47 | ); | 47 | ); |
48 | - | 48 | |
49 | - // rustdoc is performance sensitive, so apply LTO to it. | 49 | - if path.ends_with("/rustdoc") && |
50 | - if is_lto_stage(&build_compiler) { | 50 | - // rustdoc is performance sensitive, so apply LTO to it. |
51 | - is_lto_stage(&self.compiler) | ||
52 | - { | ||
51 | - let lto = match builder.config.rust_lto { | 53 | - let lto = match builder.config.rust_lto { |
52 | - RustcLto::Off => Some("off"), | 54 | - RustcLto::Off => Some("off"), |
53 | - RustcLto::Thin => Some("thin"), | 55 | - RustcLto::Thin => Some("thin"), |
@@ -60,14 +62,14 @@ index 087df2f8a..00790affb 100644 | |||
60 | - } | 62 | - } |
61 | + cargo.rustflag("-Clto=off"); | 63 | + cargo.rustflag("-Clto=off"); |
62 | 64 | ||
63 | let _guard = builder.msg_tool( | 65 | if !self.allow_features.is_empty() { |
64 | Kind::Build, | 66 | cargo.allow_features(self.allow_features); |
65 | diff --git a/src/bootstrap/src/core/builder/mod.rs b/src/bootstrap/src/core/builder/mod.rs | 67 | diff --git a/src/bootstrap/src/core/builder/mod.rs b/src/bootstrap/src/core/builder/mod.rs |
66 | --- a/src/bootstrap/src/core/builder/mod.rs | 68 | --- a/src/bootstrap/src/core/builder/mod.rs |
67 | +++ b/src/bootstrap/src/core/builder/mod.rs | 69 | +++ b/src/bootstrap/src/core/builder/mod.rs |
68 | @@ -11,7 +11,7 @@ | 70 | @@ -13,7 +13,7 @@ |
69 | 71 | #[cfg(feature = "tracing")] | |
70 | use clap::ValueEnum; | 72 | use tracing::instrument; |
71 | 73 | ||
72 | -pub use self::cargo::{Cargo, cargo_profile_var}; | 74 | -pub use self::cargo::{Cargo, cargo_profile_var}; |
73 | +pub use self::cargo::Cargo; | 75 | +pub use self::cargo::Cargo; |
diff --git a/meta/recipes-devtools/rust/files/oeqa-selftest-Increase-timeout-in-process-sigpipe-ru.patch b/meta/recipes-devtools/rust/files/oeqa-selftest-Increase-timeout-in-process-sigpipe-ru.patch index bb27ca35ff..5bd1abffb4 100644 --- a/meta/recipes-devtools/rust/files/oeqa-selftest-Increase-timeout-in-process-sigpipe-ru.patch +++ b/meta/recipes-devtools/rust/files/oeqa-selftest-Increase-timeout-in-process-sigpipe-ru.patch | |||
@@ -22,10 +22,10 @@ index 11f363d62..c12d66016 100644 | |||
22 | +++ b/tests/ui/process/process-sigpipe.rs | 22 | +++ b/tests/ui/process/process-sigpipe.rs |
23 | @@ -23,7 +23,7 @@ use std::thread; | 23 | @@ -23,7 +23,7 @@ use std::thread; |
24 | fn main() { | 24 | fn main() { |
25 | // Just in case `yes` doesn't check for EPIPE... | 25 | // Just in case `yes` or `while-echo` doesn't check for EPIPE... |
26 | thread::spawn(|| { | 26 | thread::spawn(|| { |
27 | - thread::sleep_ms(5000); | 27 | - thread::sleep_ms(5000); |
28 | + thread::sleep_ms(50000); | 28 | + thread::sleep_ms(50000); |
29 | process::exit(1); | 29 | process::exit(1); |
30 | }); | 30 | }); |
31 | let output = process::Command::new("sh") | 31 | // QNX Neutrino does not have `yes`. Therefore, use `while-echo` for `nto` |
diff --git a/meta/recipes-devtools/rust/files/revert-link-std-statically-in-rustc_driver-feature.patch b/meta/recipes-devtools/rust/files/revert-link-std-statically-in-rustc_driver-feature.patch index 20a49d46dc..9bbbce0182 100644 --- a/meta/recipes-devtools/rust/files/revert-link-std-statically-in-rustc_driver-feature.patch +++ b/meta/recipes-devtools/rust/files/revert-link-std-statically-in-rustc_driver-feature.patch | |||
@@ -200,11 +200,10 @@ diff --git a/src/bootstrap/src/core/build_steps/compile.rs b/src/bootstrap/src/c | |||
200 | index 27bbc8bd8f..a6fc4df2eb 100644 | 200 | index 27bbc8bd8f..a6fc4df2eb 100644 |
201 | --- a/src/bootstrap/src/core/build_steps/compile.rs | 201 | --- a/src/bootstrap/src/core/build_steps/compile.rs |
202 | +++ b/src/bootstrap/src/core/build_steps/compile.rs | 202 | +++ b/src/bootstrap/src/core/build_steps/compile.rs |
203 | @@ -1940,24 +1940,8 @@ impl Step for Assemble { | 203 | @@ -2158,23 +2158,7 @@ |
204 | let src_libdir = builder.sysroot_target_libdir(build_compiler, host); | ||
205 | for f in builder.read_dir(&src_libdir) { | 204 | for f in builder.read_dir(&src_libdir) { |
206 | let filename = f.file_name().into_string().unwrap(); | 205 | let filename = f.file_name().into_string().unwrap(); |
207 | - | 206 | |
208 | - let is_proc_macro = proc_macros.contains(&filename); | 207 | - let is_proc_macro = proc_macros.contains(&filename); |
209 | - let is_dylib_or_debug = is_dylib(&f.path()) || is_debug_info(&filename); | 208 | - let is_dylib_or_debug = is_dylib(&f.path()) || is_debug_info(&filename); |
210 | - | 209 | - |
@@ -214,8 +213,7 @@ index 27bbc8bd8f..a6fc4df2eb 100644 | |||
214 | - let can_be_rustc_dynamic_dep = if builder | 213 | - let can_be_rustc_dynamic_dep = if builder |
215 | - .link_std_into_rustc_driver(target_compiler.host) | 214 | - .link_std_into_rustc_driver(target_compiler.host) |
216 | - && !target_compiler.host.is_windows() | 215 | - && !target_compiler.host.is_windows() |
217 | + if (is_dylib(Path::new(&filename)) || is_debug_info(&filename)) && !proc_macros.contains(&filename) | 216 | - { |
218 | { | ||
219 | - let is_std = filename.starts_with("std-") || filename.starts_with("libstd-"); | 217 | - let is_std = filename.starts_with("std-") || filename.starts_with("libstd-"); |
220 | - !is_std | 218 | - !is_std |
221 | - } else { | 219 | - } else { |
@@ -223,6 +221,7 @@ index 27bbc8bd8f..a6fc4df2eb 100644 | |||
223 | - }; | 221 | - }; |
224 | - | 222 | - |
225 | - if is_dylib_or_debug && can_be_rustc_dynamic_dep && !is_proc_macro { | 223 | - if is_dylib_or_debug && can_be_rustc_dynamic_dep && !is_proc_macro { |
226 | builder.copy_link(&f.path(), &rustc_libdir.join(&filename)); | 224 | + if (is_dylib(Path::new(&filename)) || is_debug_info(&filename)) && !proc_macros.contains(&filename) { |
225 | builder.copy_link(&f.path(), &rustc_libdir.join(&filename), FileType::Regular); | ||
227 | } | 226 | } |
228 | } | 227 | } |
diff --git a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch index 49d85072cb..b7ef806e65 100644 --- a/meta/recipes-devtools/rust/files/rust-oe-selftest.patch +++ b/meta/recipes-devtools/rust/files/rust-oe-selftest.patch | |||
@@ -47,61 +47,85 @@ diff --git a/library/std/tests/sync/rwlock.rs b/library/std/tests/sync/rwlock.rs | |||
47 | index 1a9d3d3f12f..0a9cfc48806 100644 | 47 | index 1a9d3d3f12f..0a9cfc48806 100644 |
48 | --- a/library/std/tests/sync/rwlock.rs | 48 | --- a/library/std/tests/sync/rwlock.rs |
49 | +++ b/library/std/tests/sync/rwlock.rs | 49 | +++ b/library/std/tests/sync/rwlock.rs |
50 | @@ -47,6 +47,7 @@ fn frob() { | 50 | @@ -74,6 +74,7 @@ |
51 | } | 51 | |
52 | |||
53 | #[test] | 52 | #[test] |
53 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
54 | +#[ignore] | 54 | +#[ignore] |
55 | fn test_rw_arc_poison_wr() { | 55 | fn test_rw_arc_poison_wr() { |
56 | let arc = Arc::new(RwLock::new(1)); | 56 | let arc = Arc::new(RwLock::new(1)); |
57 | let arc2 = arc.clone(); | 57 | let arc2 = arc.clone(); |
58 | @@ -72,6 +73,7 @@ fn test_rw_arc_poison_mapped_w_r() { | 58 | @@ -87,6 +88,7 @@ |
59 | } | 59 | |
60 | 60 | #[test] | |
61 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
62 | +#[ignore] | ||
63 | fn test_rw_arc_poison_mapped_w_r() { | ||
64 | let arc = Arc::new(RwLock::new(1)); | ||
65 | let arc2 = arc.clone(); | ||
66 | @@ -101,6 +103,7 @@ | ||
67 | |||
61 | #[test] | 68 | #[test] |
69 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
62 | +#[ignore] | 70 | +#[ignore] |
63 | fn test_rw_arc_poison_ww() { | 71 | fn test_rw_arc_poison_ww() { |
64 | let arc = Arc::new(RwLock::new(1)); | 72 | let arc = Arc::new(RwLock::new(1)); |
65 | assert!(!arc.is_poisoned()); | 73 | assert!(!arc.is_poisoned()); |
66 | @@ -100,6 +102,7 @@ fn test_rw_arc_poison_mapped_w_w() { | 74 | @@ -115,6 +118,7 @@ |
67 | } | 75 | } |
68 | 76 | ||
77 | #[test] | ||
78 | +#[ignore] | ||
79 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
80 | fn test_rw_arc_poison_mapped_w_w() { | ||
81 | let arc = Arc::new(RwLock::new(1)); | ||
82 | @@ -131,6 +135,7 @@ | ||
83 | |||
69 | #[test] | 84 | #[test] |
85 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
70 | +#[ignore] | 86 | +#[ignore] |
71 | fn test_rw_arc_no_poison_rr() { | 87 | fn test_rw_arc_no_poison_rr() { |
72 | let arc = Arc::new(RwLock::new(1)); | 88 | let arc = Arc::new(RwLock::new(1)); |
73 | let arc2 = arc.clone(); | 89 | let arc2 = arc.clone(); |
74 | @@ -127,6 +130,7 @@ fn test_rw_arc_no_poison_mapped_r_r() { | 90 | @@ -160,6 +165,7 @@ |
75 | } | 91 | |
76 | |||
77 | #[test] | 92 | #[test] |
93 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
78 | +#[ignore] | 94 | +#[ignore] |
79 | fn test_rw_arc_no_poison_rw() { | 95 | fn test_rw_arc_no_poison_rw() { |
80 | let arc = Arc::new(RwLock::new(1)); | 96 | let arc = Arc::new(RwLock::new(1)); |
81 | let arc2 = arc.clone(); | 97 | let arc2 = arc.clone(); |
82 | @@ -192,6 +196,7 @@ fn test_rw_arc() { | 98 | @@ -227,6 +233,7 @@ |
83 | } | 99 | |
84 | |||
85 | #[test] | 100 | #[test] |
101 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
86 | +#[ignore] | 102 | +#[ignore] |
87 | fn test_rw_arc_access_in_unwind() { | 103 | fn test_rw_arc_access_in_unwind() { |
88 | let arc = Arc::new(RwLock::new(1)); | 104 | let arc = Arc::new(RwLock::new(1)); |
89 | let arc2 = arc.clone(); | 105 | let arc2 = arc.clone(); |
90 | @@ -275,6 +280,7 @@ fn drop(&mut self) { | 106 | @@ -326,6 +333,7 @@ |
91 | } | 107 | |
92 | |||
93 | #[test] | 108 | #[test] |
109 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
94 | +#[ignore] | 110 | +#[ignore] |
95 | fn test_into_inner_poison() { | 111 | fn test_into_inner_poison() { |
96 | let m = new_poisoned_rwlock(NonCopy(10)); | 112 | let m = new_poisoned_rwlock(NonCopy(10)); |
97 | 113 | ||
98 | @@ -299,6 +305,7 @@ fn test_get_mut() { | 114 | @@ -362,6 +370,7 @@ |
99 | } | 115 | |
100 | |||
101 | #[test] | 116 | #[test] |
117 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
102 | +#[ignore] | 118 | +#[ignore] |
103 | fn test_get_mut_poison() { | 119 | fn test_get_mut_poison() { |
104 | let mut m = new_poisoned_rwlock(NonCopy(10)); | 120 | let mut m = new_poisoned_rwlock(NonCopy(10)); |
121 | |||
122 | @@ -567,6 +576,7 @@ | ||
123 | |||
124 | #[test] | ||
125 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
126 | +#[ignore] | ||
127 | fn panic_while_mapping_write_unlocked_poison() { | ||
128 | let lock = RwLock::new(()); | ||
105 | 129 | ||
106 | diff --git a/library/test/src/tests.rs b/library/test/src/tests.rs | 130 | diff --git a/library/test/src/tests.rs b/library/test/src/tests.rs |
107 | --- a/library/test/src/tests.rs | 131 | --- a/library/test/src/tests.rs |
@@ -117,52 +141,22 @@ diff --git a/library/test/src/tests.rs b/library/test/src/tests.rs | |||
117 | diff --git a/library/std/tests/sync/mutex.rs b/library/std/tests/sync/mutex.rs | 141 | diff --git a/library/std/tests/sync/mutex.rs b/library/std/tests/sync/mutex.rs |
118 | --- a/library/std/tests/sync/mutex.rs | 142 | --- a/library/std/tests/sync/mutex.rs |
119 | +++ b/library/std/tests/sync/mutex.rs | 143 | +++ b/library/std/tests/sync/mutex.rs |
120 | @@ -193,6 +193,7 @@ | 144 | @@ -312,6 +312,7 @@ |
121 | } | 145 | |
122 | |||
123 | #[test] | 146 | #[test] |
147 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
124 | +#[ignore] | 148 | +#[ignore] |
125 | fn test_mutex_arc_poison_mapped() { | 149 | fn test_mutex_arc_poison_mapped() { |
126 | let arc = Arc::new(Mutex::new(1)); | 150 | let arc = Arc::new(Mutex::new(1)); |
127 | assert!(!arc.is_poisoned()); | 151 | assert!(!arc.is_poisoned()); |
128 | diff --git a/library/std/tests/sync/mutex.rs b/library/std/tests/sync/mutex.rs | 152 | @@ -391,6 +392,7 @@ |
129 | --- a/library/std/tests/sync/mutex.rs | 153 | |
130 | +++ b/library/std/tests/sync/mutex.rs | ||
131 | @@ -272,6 +272,7 @@ | ||
132 | } | ||
133 | |||
134 | #[test] | 154 | #[test] |
155 | #[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] | ||
135 | +#[ignore] | 156 | +#[ignore] |
136 | fn panic_while_mapping_unlocked_poison() { | 157 | fn panic_while_mapping_unlocked_poison() { |
137 | let lock = Mutex::new(()); | 158 | let lock = Mutex::new(()); |
138 | 159 | ||
139 | diff --git a/library/std/src/sync/rwlock/tests.rs b/library/std/tests/sync/rwlock.rs | ||
140 | --- a/library/std/tests/sync/rwlock.rs | ||
141 | +++ b/library/std/tests/sync/rwlock.rs | ||
142 | @@ -59,6 +59,7 @@ fn test_rw_arc_poison_wr() { | ||
143 | } | ||
144 | |||
145 | #[test] | ||
146 | +#[ignore] | ||
147 | fn test_rw_arc_poison_mapped_w_r() { | ||
148 | let arc = Arc::new(RwLock::new(1)); | ||
149 | let arc2 = arc.clone(); | ||
150 | @@ -86,6 +87,7 @@ fn test_rw_arc_poison_ww() { | ||
151 | } | ||
152 | |||
153 | #[test] | ||
154 | +#[ignore] | ||
155 | fn test_rw_arc_poison_mapped_w_w() { | ||
156 | let arc = Arc::new(RwLock::new(1)); | ||
157 | let arc2 = arc.clone(); | ||
158 | @@ -431,6 +433,7 @@ fn panic_while_mapping_read_unlocked_no_poison() { | ||
159 | } | ||
160 | |||
161 | #[test] | ||
162 | +#[ignore] | ||
163 | fn panic_while_mapping_write_unlocked_poison() { | ||
164 | let lock = RwLock::new(()); | ||
165 | |||
166 | diff --git a/library/coretests/benches/num/int_log/mod.rs b/library/coretests/benches/num/int_log/mod.rs | 160 | diff --git a/library/coretests/benches/num/int_log/mod.rs b/library/coretests/benches/num/int_log/mod.rs |
167 | index 3807cd5d76c..018c5c04456 100644 | 161 | index 3807cd5d76c..018c5c04456 100644 |
168 | --- a/library/coretests/benches/num/int_log/mod.rs | 162 | --- a/library/coretests/benches/num/int_log/mod.rs |
@@ -199,10 +193,10 @@ index 9d4f52a092..d425e5f7b7 100644 | |||
199 | fn thread_current_in_dtor() { | 193 | fn thread_current_in_dtor() { |
200 | // Go through one round of TLS destruction first. | 194 | // Go through one round of TLS destruction first. |
201 | struct Defer; | 195 | struct Defer; |
202 | diff --git a/library/alloc/tests/sort/tests.rs b/library/alloc/tests/sort/tests.rs | 196 | diff --git a/library/alloctests/tests/sort/tests.rs b/library/alloctests/tests/sort/tests.rs |
203 | index 14e6013f96..b670f27ab4 100644 | 197 | index 14e6013f96..b670f27ab4 100644 |
204 | --- a/library/alloc/tests/sort/tests.rs | 198 | --- a/library/alloctests/tests/sort/tests.rs |
205 | +++ b/library/alloc/tests/sort/tests.rs | 199 | +++ b/library/alloctests/tests/sort/tests.rs |
206 | @@ -915,12 +915,14 @@ gen_sort_test_fns_with_default_patterns_3_ty!( | 200 | @@ -915,12 +915,14 @@ gen_sort_test_fns_with_default_patterns_3_ty!( |
207 | macro_rules! instantiate_sort_test_inner { | 201 | macro_rules! instantiate_sort_test_inner { |
208 | ($sort_impl:ty, miri_yes, $test_fn_name:ident) => { | 202 | ($sort_impl:ty, miri_yes, $test_fn_name:ident) => { |
@@ -234,10 +228,10 @@ diff --git a/tests/assembly/dwarf-mixed-versions-lto.rs b/tests/assembly/dwarf-m | |||
234 | index 5b8e5ff4f4a..e558fbd7bd7 100644 | 228 | index 5b8e5ff4f4a..e558fbd7bd7 100644 |
235 | --- a/tests/assembly/dwarf-mixed-versions-lto.rs | 229 | --- a/tests/assembly/dwarf-mixed-versions-lto.rs |
236 | +++ b/tests/assembly/dwarf-mixed-versions-lto.rs | 230 | +++ b/tests/assembly/dwarf-mixed-versions-lto.rs |
237 | @@ -1,6 +1,11 @@ | 231 | @@ -2,6 +2,11 @@ |
238 | // This test ensures that if LTO occurs between crates with different DWARF versions, we | ||
239 | // will choose the highest DWARF version for the final binary. This matches Clang's behavior. | 232 | // will choose the highest DWARF version for the final binary. This matches Clang's behavior. |
240 | 233 | // Note: `.2byte` directive is used on MIPS. | |
234 | |||
241 | +//@ only-x86 | 235 | +//@ only-x86 |
242 | +//@ only-x86_64 | 236 | +//@ only-x86_64 |
243 | +//@ only-arm | 237 | +//@ only-arm |
@@ -259,3 +253,30 @@ index 0e712bc3a4e..93965d990d0 100644 | |||
259 | //@ revisions: OPT2 OPT3 | 253 | //@ revisions: OPT2 OPT3 |
260 | //@[OPT2] compile-flags: -Copt-level=2 | 254 | //@[OPT2] compile-flags: -Copt-level=2 |
261 | //@[OPT3] compile-flags: -C opt-level=3 | 255 | //@[OPT3] compile-flags: -C opt-level=3 |
256 | diff --git a/tests/codegen/uninhabited-transparent-return-abi.rs b/tests/codegen/uninhabited-transparent-return-abi.rs | ||
257 | index face1577c3f..d69e5e34a7b 100644 | ||
258 | --- a/tests/codegen/uninhabited-transparent-return-abi.rs | ||
259 | +++ b/tests/codegen/uninhabited-transparent-return-abi.rs | ||
260 | @@ -1,4 +1,8 @@ | ||
261 | //@ compile-flags: -Copt-level=3 | ||
262 | +//@ only-x86 | ||
263 | +//@ only-x86_64 | ||
264 | +//@ only-arm | ||
265 | +//@ only-aarch64 | ||
266 | |||
267 | // See https://github.com/rust-lang/rust/issues/135802 | ||
268 | |||
269 | diff --git a/tests/ui/abi/rust-cold-works-with-rustic-args.rs b/tests/ui/abi/rust-cold-works-with-rustic-args.rs | ||
270 | index 57027364699..3faa7ea035e 100644 | ||
271 | --- a/tests/ui/abi/rust-cold-works-with-rustic-args.rs | ||
272 | +++ b/tests/ui/abi/rust-cold-works-with-rustic-args.rs | ||
273 | @@ -1,5 +1,9 @@ | ||
274 | //@build-pass | ||
275 | //@compile-flags: -Clink-dead-code=true --crate-type lib | ||
276 | +//@ only-x86 | ||
277 | +//@ only-x86_64 | ||
278 | +//@ only-arm | ||
279 | +//@ only-aarch64 | ||
280 | // We used to not handle all "rustic" ABIs in a (relatively) uniform way, | ||
281 | // so we failed to fix up arguments for actually passing through the ABI... | ||
282 | #![feature(rust_cold_cc)] | ||
diff --git a/meta/recipes-devtools/rust/files/triagebot.patch b/meta/recipes-devtools/rust/files/triagebot.patch new file mode 100644 index 0000000000..715664d081 --- /dev/null +++ b/meta/recipes-devtools/rust/files/triagebot.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | Skip tidy triagebot linkcheck if triagebot.toml doesn't exist | ||
2 | |||
3 | Distribution tarballs won't include triagebot.toml, which | ||
4 | causes tidy checks to fail with the following error: | ||
5 | |||
6 | tidy error: triagebot.toml file not found | ||
7 | some tidy checks failed | ||
8 | |||
9 | Drop the triagebot.toml check which is mostly to catch broken | ||
10 | path filters *within* `triagebot.toml` and not enforce | ||
11 | the existence of it. | ||
12 | |||
13 | Upstream-Status: Backport [https://github.com/rust-lang/rust/pull/142666/commits] | ||
14 | |||
15 | Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com> | ||
16 | --- | ||
17 | diff --git a/src/tools/tidy/src/triagebot.rs b/src/tools/tidy/src/triagebot.rs | ||
18 | --- a/src/tools/tidy/src/triagebot.rs | ||
19 | +++ b/src/tools/tidy/src/triagebot.rs | ||
20 | @@ -6,8 +6,11 @@ | ||
21 | |||
22 | pub fn check(path: &Path, bad: &mut bool) { | ||
23 | let triagebot_path = path.join("triagebot.toml"); | ||
24 | + | ||
25 | + // This check is mostly to catch broken path filters *within* `triagebot.toml`, and not enforce | ||
26 | + // the existence of `triagebot.toml` itself (which is more obvious), as distribution tarballs | ||
27 | + // will not include non-essential bits like `triagebot.toml`. | ||
28 | if !triagebot_path.exists() { | ||
29 | - tidy_error!(bad, "triagebot.toml file not found"); | ||
30 | return; | ||
31 | } | ||
32 | |||