Skip to content

Commit

Permalink
x11/i3bar-river: unbreak build after dfc55c4
Browse files Browse the repository at this point in the history
error[E0658]: `c".."` literals are experimental
  --> src/bar.rs:61:13
   |
61 |             c"i3bar-river".into(),
   |             ^^^^^^^^^^^^^^
   |
   = note: see issue #105723 <rust-lang/rust#105723> for more information

error[E0658]: `c".."` literals are experimental
   --> src/wm_info_provider/river.rs:118:33
    |
118 |             PointerBtn::Left => c"set-focused-tags",
    |                                 ^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #105723 <rust-lang/rust#105723> for more information

error[E0658]: `c".."` literals are experimental
   --> src/wm_info_provider/river.rs:119:34
    |
119 |             PointerBtn::Right => c"toggle-focused-tags",
    |                                  ^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #105723 <rust-lang/rust#105723> for more information

Reported by:	pkg-fallout
(direct commit to 2024Q1 as 73941e6 is missing on the branch)
  • Loading branch information
jbeich committed Apr 4, 2024
1 parent 77f72c4 commit b2767b9
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions x11/i3bar-river/files/patch-rust-1.76
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
Revert https://github.com/MaxVerevkin/i3bar-river/commit/d1ba22747e9e
until lang/rust >= 1.77 update.

error[E0658]: `c".."` literals are experimental
--> src/bar.rs:61:13
|
61 | c"i3bar-river".into(),
| ^^^^^^^^^^^^^^
|
= note: see issue #105723 <https://github.com/rust-lang/rust/issues/105723> for more information

error[E0658]: `c".."` literals are experimental
--> src/wm_info_provider/river.rs:118:33
|
118 | PointerBtn::Left => c"set-focused-tags",
| ^^^^^^^^^^^^^^^^^^^
|
= note: see issue #105723 <https://github.com/rust-lang/rust/issues/105723> for more information

error[E0658]: `c".."` literals are experimental
--> src/wm_info_provider/river.rs:119:34
|
119 | PointerBtn::Right => c"toggle-focused-tags",
| ^^^^^^^^^^^^^^^^^^^^^^
|
= note: see issue #105723 <https://github.com/rust-lang/rust/issues/105723> for more information

--- src/bar.rs.orig 2024-03-30 19:50:32 UTC
+++ src/bar.rs
@@ -58,7 +58,7 @@ impl Bar {
surface,
Some(output.wl),
zwlr_layer_shell_v1::Layer::Top,
- c"i3bar-river".into(),
+ wayrs_client::cstr!("i3bar-river").into(),
layer_surface_cb,
);

--- src/wm_info_provider/river.rs.orig 2024-03-30 19:50:32 UTC
+++ src/wm_info_provider/river.rs
@@ -2,7 +2,7 @@ use wayrs_client::proxy::Proxy;

use wayrs_client::global::*;
use wayrs_client::proxy::Proxy;
-use wayrs_client::EventCtx;
+use wayrs_client::{cstr, EventCtx};

use super::*;

@@ -115,8 +115,8 @@ impl WmInfoProvider for RiverInfoProvider {
btn: PointerBtn,
) {
let cmd = match btn {
- PointerBtn::Left => c"set-focused-tags",
- PointerBtn::Right => c"toggle-focused-tags",
+ PointerBtn::Left => cstr!("set-focused-tags"),
+ PointerBtn::Right => cstr!("toggle-focused-tags"),
_ => return,
};
self.control.add_argument(conn, cmd.to_owned());

0 comments on commit b2767b9

Please sign in to comment.