5f1b3154bd
- add depreciated-trim_left_matches.patch: replaces depreciated function call in src/tools/tidy with trim_start_matches to fix error when bootstrapping with system 1.33.0 OBS-URL: https://build.opensuse.org/request/show/681589 OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=197
13 lines
673 B
Diff
13 lines
673 B
Diff
diff -u ./src/tools/tidy/src/features.rs ../rustc-1.33.0-src/src/tools/tidy/src/features.rs
|
|
--- ../rustc-1.33.0-src/src/tools/tidy/src/features.rs 2019-02-28 21:53:35.000000000 +1300
|
|
+++ ./src/tools/tidy/src/features.rs 2019-03-04 21:10:20.854805497 +1300
|
|
@@ -188,7 +188,7 @@
|
|
}
|
|
|
|
let mut parts = line.split(',');
|
|
- let level = match parts.next().map(|l| l.trim().trim_left_matches('(')) {
|
|
+ let level = match parts.next().map(|l| l.trim().trim_start_matches('(')) {
|
|
Some("active") => Status::Unstable,
|
|
Some("removed") => Status::Removed,
|
|
Some("accepted") => Status::Stable,
|