Skip to content

Commit

Permalink
Play with nightly options
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Aug 14, 2024
1 parent cc21c0c commit faf316b
Show file tree
Hide file tree
Showing 6 changed files with 294 additions and 10 deletions.
271 changes: 268 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/red_knot_python_semantic/src/types/infer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ impl<'db> TypeInferenceBuilder<'db> {
let bases = arguments
.as_deref()
.map(|arguments| self.infer_arguments(arguments))
.unwrap_or(Vec::new());
.unwrap_or_default();

let body_scope = self
.index
Expand Down
8 changes: 8 additions & 0 deletions crates/red_knot_wasm/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# This enables building the WASM module with catch-unwind support but wasm-bindgen doesn't support it yet.

#[build]
#rustflags = ["-C", "llvm-args=-wasm-enable-eh", "-C", "target-feature=+exception-handling", "-C", "panic=unwind"]
#
#
#[unstable]
#build-std = ["std", "alloc"]
5 changes: 3 additions & 2 deletions crates/red_knot_wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ ruff_db = { workspace = true }
ruff_notebook = { workspace = true }

console_error_panic_hook = { workspace = true, optional = true }
console_log = { workspace = true }
js-sys = { workspace = true }
log = { workspace = true }
tracing = { workspace = true }
tracing-subscriber = { workspace = true }
tracing-subscriber-wasm = "0.1.0"
wasm-bindgen = { workspace = true }

[dev-dependencies]
Expand Down
Loading

0 comments on commit faf316b

Please sign in to comment.