Skip to content

Commit 4d4c5c8

Browse files
committed
Play with nightly options
1 parent cc21c0c commit 4d4c5c8

File tree

5 files changed

+293
-9
lines changed

5 files changed

+293
-9
lines changed

Cargo.lock

Lines changed: 268 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/red_knot_python_semantic/src/types/infer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ impl<'db> TypeInferenceBuilder<'db> {
496496
let bases = arguments
497497
.as_deref()
498498
.map(|arguments| self.infer_arguments(arguments))
499-
.unwrap_or(Vec::new());
499+
.unwrap_or_default();
500500

501501
let body_scope = self
502502
.index
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This enables building the WASM module with catch-unwind support but wasm-bindgen doesn't support it yet.
2+
3+
#[build]
4+
#rustflags = ["-C", "llvm-args=-wasm-enable-eh", "-C", "target-feature=+exception-handling", "-C", "panic=unwind"]
5+
#
6+
#
7+
#[unstable]
8+
#build-std = ["std", "alloc"]

crates/red_knot_wasm/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ ruff_db = { workspace = true }
2626
ruff_notebook = { workspace = true }
2727

2828
console_error_panic_hook = { workspace = true, optional = true }
29-
console_log = { workspace = true }
3029
js-sys = { workspace = true }
31-
log = { workspace = true }
30+
tracing = { workspace = true }
31+
tracing-subscriber = { workspace = true }
32+
tracing-subscriber-wasm = "0.1.0"
3233
wasm-bindgen = { workspace = true }
3334

3435
[dev-dependencies]

0 commit comments

Comments
 (0)