Skip to content

Commit

Permalink
Merge branch 'main' into fix/replace_panic_with_internal_error
Browse files Browse the repository at this point in the history
  • Loading branch information
eiei114 authored Jun 27, 2023
2 parents 3803331 + e3ab023 commit feec075
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion crates/ast/src/solve_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,10 @@ fn solve<'a>(
let result = offenders.len();

if result > 0 {
dbg!(&subs, &offenders, &let_con.def_types);
eprintln!(
"subs: {:?}\n\noffenders: {:?}\n\nlet_con.def_types: {:?}\n",
&subs, &offenders, &let_con.def_types
);
}

result
Expand Down
5 changes: 5 additions & 0 deletions crates/glue/tests/fixture-templates/rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
// file with the same name in the fixture-templates/ directory.

fn main() {
#[cfg(not(windows))]
println!("cargo:rustc-link-lib=dylib=app");

#[cfg(windows)]
println!("cargo:rustc-link-lib=dylib=libapp");

println!("cargo:rustc-link-search=.");
}
2 changes: 1 addition & 1 deletion examples/glue/rust-platform/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ pub extern "C" fn rust_main() -> i32 {
let mut op: Op = roc_main();

loop {
match dbg!(op.discriminant()) {
match op.discriminant() {
StdoutWrite => {
let stdout_write = op.get_StdoutWrite();
let output: RocStr = stdout_write.f0;
Expand Down

0 comments on commit feec075

Please sign in to comment.