pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/RustPython/RustPython/commit/8ac7e34be268da5add6ff670150419cdf5acd3f1

c08.css" /> Updates for Rust 1.83 · RustPython/RustPython@8ac7e34 · GitHub
Skip to content

Commit 8ac7e34

Browse files
committed
Updates for Rust 1.83
1 parent c883f0a commit 8ac7e34

File tree

19 files changed

+32
-28
lines changed

19 files changed

+32
-28
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -407,16 +407,16 @@ jobs:
407407
- uses: actions/checkout@v3
408408
- uses: dtolnay/rust-toolchain@stable
409409
with:
410-
target: wasm32-wasi
410+
target: wasm32-wasip1
411411

412412
- uses: Swatinem/rust-cache@v2
413413
- name: Setup Wasmer
414414
uses: wasmerio/setup-wasmer@v2
415415
- name: Install clang
416416
run: sudo apt-get update && sudo apt-get install clang -y
417417
- name: build rustpython
418-
run: cargo build --release --target wasm32-wasi --features freeze-stdlib,stdlib --verbose
418+
run: cargo build --release --target wasm32-wasip1 --features freeze-stdlib,stdlib --verbose
419419
- name: run snippets
420-
run: wasmer run --dir `pwd` target/wasm32-wasi/release/rustpython.wasm -- `pwd`/extra_tests/snippets/stdlib_random.py
420+
run: wasmer run --dir `pwd` target/wasm32-wasip1/release/rustpython.wasm -- `pwd`/extra_tests/snippets/stdlib_random.py
421421
- name: run cpython unittest
422-
run: wasmer run --dir `pwd` target/wasm32-wasi/release/rustpython.wasm -- `pwd`/Lib/test/test_int.py
422+
run: wasmer run --dir `pwd` target/wasm32-wasip1/release/rustpython.wasm -- `pwd`/Lib/test/test_int.py

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ members = [
105105
version = "0.4.0"
106106
authors = ["RustPython Team"]
107107
edition = "2021"
108-
rust-version = "1.82.0"
108+
rust-version = "1.83.0"
109109
repository = "https://github.com/RustPython/RustPython"
110110
license = "MIT"
111111

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ You can compile RustPython to a standalone WebAssembly WASI module so it can run
9191
Build
9292

9393
```bash
94-
cargo build --target wasm32-wasi --no-default-features --features freeze-stdlib,stdlib --release
94+
cargo build --target wasm32-wasip1 --no-default-features --features freeze-stdlib,stdlib --release
9595
```
9696

9797
Run by wasmer
9898

9999
```bash
100-
wasmer run --dir `pwd` -- target/wasm32-wasi/release/rustpython.wasm `pwd`/extra_tests/snippets/stdlib_random.py
100+
wasmer run --dir `pwd` -- target/wasm32-wasip1/release/rustpython.wasm `pwd`/extra_tests/snippets/stdlib_random.py
101101
```
102102

103103
Run by wapm
@@ -114,10 +114,10 @@ $ wapm run rustpython
114114
You can build the WebAssembly WASI file with:
115115

116116
```bash
117-
cargo build --release --target wasm32-wasi --features="freeze-stdlib"
117+
cargo build --release --target wasm32-wasip1 --features="freeze-stdlib"
118118
```
119119

120-
> Note: we use the `freeze-stdlib` to include the standard library inside the binary. You also have to run once `rustup target add wasm32-wasi`.
120+
> Note: we use the `freeze-stdlib` to include the standard library inside the binary. You also have to run once `rustup target add wasm32-wasip1`.
121121
122122
### JIT (Just in time) compiler
123123

common/src/boxvec.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
//! An unresizable vector backed by a `Box<[T]>`
22
3+
#![allow(clippy::needless_lifetimes)]
4+
35
use std::{
46
borrow::{Borrow, BorrowMut},
57
cmp, fmt,

common/src/linked_list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ impl<T: Link> LinkedList<T, T::Target> {
293293
}
294294
}
295295

296-
impl<'a, T, F> Iterator for DrainFilter<'a, T, F>
296+
impl<T, F> Iterator for DrainFilter<'_, T, F>
297297
where
298298
T: Link,
299299
F: FnMut(&mut T::Target) -> bool,

common/src/lock/immutable_mutex.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::needless_lifetimes)]
2+
13
use lock_api::{MutexGuard, RawMutex};
24
use std::{fmt, marker::PhantomData, ops::Deref};
35

common/src/lock/thread_mutex.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::needless_lifetimes)]
2+
13
use lock_api::{GetThreadId, GuardNoSend, RawMutex};
24
use std::{
35
cell::UnsafeCell,

common/src/str.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,7 @@ macro_rules! ascii {
334334
($x:expr $(,)?) => {{
335335
let s = const {
336336
let s: &str = $x;
337-
if !s.is_ascii() {
338-
panic!("ascii!() argument is not an ascii string");
339-
}
337+
assert!(s.is_ascii(), "ascii!() argument is not an ascii string");
340338
s
341339
};
342340
unsafe { $crate::vendored::ascii::AsciiStr::from_ascii_unchecked(s.as_bytes()) }

jit/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ pub struct Args<'a> {
341341
code: &'a CompiledCode,
342342
}
343343

344-
impl<'a> Args<'a> {
344+
impl Args<'_> {
345345
pub fn invoke(&self) -> Option<AbiValue> {
346346
unsafe { self.code.invoke_raw(&self.cif_args) }
347347
}

stdlib/src/posixsubprocess.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ struct CharPtrSlice<'a> {
113113
slice: [*const libc::c_char],
114114
}
115115

116-
impl<'a> CharPtrSlice<'a> {
116+
impl CharPtrSlice<'_> {
117117
fn as_ptr(&self) -> *const *const libc::c_char {
118118
self.slice.as_ptr()
119119
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy