Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Commit 5e4a39e

Browse files
author
Matteo Biggio
committed
Bump Rust minimum required version to 1.51.0
1 parent efbba43 commit 5e4a39e

File tree

15 files changed

+21
-22
lines changed

15 files changed

+21
-22
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- stable
1818
- beta
1919
- nightly
20-
- "1.48.0"
20+
- "1.51.0"
2121
conf:
2222
- { name: "atk", features: "v2_34", nightly: "--all-features", test_sys: true }
2323
- { name: "cairo", features: "png,pdf,svg,ps,use_glib,v1_16,freetype,script,xcb,xlib,win32-surface", nightly: "--features 'png,pdf,svg,ps,use_glib,v1_16,freetype,script,xcb,xlib,win32-surface'", test_sys: true }
@@ -119,7 +119,7 @@ jobs:
119119
- stable
120120
- beta
121121
- nightly
122-
- "1.48.0"
122+
- "1.51.0"
123123
steps:
124124
- uses: actions/checkout@v2
125125
- uses: actions-rs/toolchain@v1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ information about each crate, please refer to their `README.md` file in their di
88

99
## Minimum supported Rust version
1010

11-
Currently, the minimum supported Rust version is `1.48.0`.
11+
Currently, the minimum supported Rust version is `1.51.0`.
1212

1313
## Documentation
1414

atk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ __Rust__ bindings and wrappers for __Atk__, part of [gtk-rs](https://github.com/
55

66
## Minimum supported Rust version
77

8-
Currently, the minimum supported Rust version is `1.48.0`.
8+
Currently, the minimum supported Rust version is `1.51.0`.
99

1010
## Documentation
1111

cairo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ __Rust__ bindings for Rust and wrappers for __Cairo__.
66

77
## Minimum supported Rust version
88

9-
Currently, the minimum supported Rust version is `1.48.0`.
9+
Currently, the minimum supported Rust version is `1.51.0`.
1010

1111
## Documentation
1212

gdk-pixbuf/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ __Rust__ bindings and wrappers for __Gdk-Pixbuf__.
44

55
## Minimum supported Rust version
66

7-
Currently, the minimum supported Rust version is `1.48.0`.
7+
Currently, the minimum supported Rust version is `1.51.0`.
88

99
## Documentation
1010

gdk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ __Rust__ bindings and wrappers for __GDK__, part of [gtk-rs](https://github.com/
44

55
## Minimum supported Rust version
66

7-
Currently, the minimum supported Rust version is `1.48.0`.
7+
Currently, the minimum supported Rust version is `1.51.0`.
88

99
## Documentation
1010

gdkx11/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ __Rust__ bindings and wrappers for __GDKX11__, part of [gtk-rs](https://github.c
44

55
## Minimum supported Rust version
66

7-
Currently, the minimum supported Rust version is `1.48.0`.
7+
Currently, the minimum supported Rust version is `1.51.0`.
88

99
## Documentation
1010

gio/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ __Rust__ bindings and wrappers for __GIO__, part of [gtk-rs](https://github.com/
44

55
## Minimum supported Rust version
66

7-
Currently, the minimum supported Rust version is `1.48.0`.
7+
Currently, the minimum supported Rust version is `1.51.0`.
88

99
## Documentation
1010

glib-macros/tests/test.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fn derive_shared_arc() {
3030
}
3131
#[derive(Debug, Eq, PartialEq, Clone, Shared)]
3232
#[shared(type_name = "MySharedType")]
33-
struct MyShared(std::sync::Arc<MyInnerShared>);
33+
struct MyShared(std::sync::Arc::<MyInnerShared>);
3434

3535
assert_eq!(MyShared::get_type().name(), "MySharedType");
3636

@@ -57,7 +57,7 @@ fn derive_shared_arc_nullable() {
5757
}
5858
#[derive(Clone, Debug, PartialEq, Eq, Shared)]
5959
#[shared(type_name = "MyNullableSharedType", nullable)]
60-
struct MyNullableShared(std::sync::Arc<MyInnerNullableShared>);
60+
struct MyNullableShared(std::sync::Arc::<MyInnerNullableShared>);
6161

6262
assert_eq!(MyNullableShared::get_type().name(), "MyNullableSharedType");
6363

glib/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ __Rust__ bindings and wrappers for __GLib__, part of [gtk-rs](https://github.com
44

55
## Minimum supported Rust version
66

7-
Currently, the minimum supported Rust version is `1.48.0`.
7+
Currently, the minimum supported Rust version is `1.51.0`.
88

99
## Documentation
1010

glib/src/subclass/shared.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ where
2626

2727
fn ref_(this: *const Self::InnerType) -> *const Self::InnerType {
2828
unsafe {
29-
use std::mem::ManuallyDrop;
30-
let this_rc = ManuallyDrop::new(std::rc::Rc::from_raw(this));
31-
std::rc::Rc::into_raw(ManuallyDrop::take(&mut this_rc.clone()))
32-
}
29+
std::sync::Arc::increment_strong_count(this);
30+
}
31+
this
3332
}
3433

3534
fn into_ptr(self) -> *const Self::InnerType {
@@ -146,11 +145,11 @@ mod test {
146145

147146
#[derive(Clone, Debug, PartialEq, Eq, glib::Shared)]
148147
#[shared(type_name = "MySharedArc")]
149-
struct MySharedArc(std::sync::Arc<MySharedInner>);
148+
struct MySharedArc(std::sync::Arc::<MySharedInner>);
150149

151150
#[derive(Clone, Debug, PartialEq, Eq, glib::Shared)]
152151
#[shared(type_name = "MySharedRc")]
153-
struct MySharedRc(std::rc::Rc<MySharedInner>);
152+
struct MySharedRc(std::rc::Rc::<MySharedInner>);
154153

155154
#[test]
156155
fn test_register() {

graphene/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ __Rust__ bindings and wrappers for __Graphene__, part of [gtk-rs](https://github
44

55
## Minimum supported Rust version
66

7-
Currently, the minimum supported Rust version is `1.48.0`.
7+
Currently, the minimum supported Rust version is `1.51.0`.
88

99
## Documentation
1010

gtk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ __Rust__ bindings and wrappers for __GTK 3__, part of [gtk-rs](https://github.co
66

77
## Minimum supported Rust version
88

9-
Currently, the minimum supported Rust version is `1.48.0`.
9+
Currently, the minimum supported Rust version is `1.51.0`.
1010

1111
## Building
1212

pango/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ __Rust__ bindings and wrappers for __Pango__, part of [gtk-rs](https://github.co
44

55
## Minimum supported Rust version
66

7-
Currently, the minimum supported Rust version is `1.48.0`.
7+
Currently, the minimum supported Rust version is `1.51.0`.
88

99
## Documentation
1010

pangocairo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ __Rust__ bindings and wrappers for __PangoCairo__, part of [gtk-rs](https://gith
44

55
## Minimum supported Rust version
66

7-
Currently, the minimum supported Rust version is `1.48.0`.
7+
Currently, the minimum supported Rust version is `1.51.0`.
88

99
## Documentation
1010

0 commit comments

Comments
 (0)