File tree Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
- # Usage: ./clear_fixed_panics.sh /path/to/crash_dumps
2
+ # Usage: ./clear_fixed_panics.sh /path/to/sus_home
3
+ # Must contain a subdirectory crash_dumps
3
4
4
5
if [ " $# " -ne 1 ]; then
5
- echo " Usage: $0 <crash_dumps_directory >"
6
+ echo " Usage: $0 <sus_home_directory >"
6
7
exit 1
7
8
fi
8
9
9
- CRASHDUMPS_DIR =" $1 "
10
+ SUS_HOME =" $1 "
10
11
cargo build
11
12
SUS_COMPILER=" /home/lennart/Desktop/sus-compiler/target/debug/sus_compiler"
12
13
13
- if [ ! -d " $CRASHDUMPS_DIR " ]; then
14
- echo " Directory $CRASHDUMPS_DIR does not exist."
14
+ if [ ! -d " $SUS_HOME /crash_dumps " ]; then
15
+ echo " Directory $SUS_HOME /crash_dumps does not exist."
15
16
exit 1
16
17
fi
17
18
18
- for dump in " $CRASHDUMPS_DIR " /* ; do
19
+ for dump in " $SUS_HOME " /crash_dumps /* ; do
19
20
[ -d " $dump " ] || continue
20
21
echo " Checking $dump ..."
21
22
Original file line number Diff line number Diff line change @@ -1116,7 +1116,7 @@ impl SubModule {
1116
1116
} else {
1117
1117
write ! (
1118
1118
f,
1119
- "module {}: /* Some parameters unknown */" ,
1119
+ "module {}: /* Could not instantiate */" ,
1120
1120
self . refers_to. display( globals)
1121
1121
)
1122
1122
}
Original file line number Diff line number Diff line change @@ -358,7 +358,15 @@ impl HindleyMilner for AbstractInnerType {
358
358
359
359
UnifyResult :: Success
360
360
} // Already covered by get_hm_info
361
- ( _, _) => unreachable ! ( "All others should have been eliminated by get_hm_info check" ) ,
361
+ ( AbstractInnerType :: Interface ( ..) , AbstractInnerType :: Interface ( ..) )
362
+ | ( AbstractInnerType :: LocalInterface ( _) , AbstractInnerType :: LocalInterface ( _) ) => {
363
+ // No nested unification, I'm actually thinking we should get rid of interfaces as types...
364
+ // TODO: Is this okay?
365
+ UnifyResult :: Success
366
+ }
367
+ ( a, b) => unreachable ! (
368
+ "All others should have been eliminated by get_hm_info check, but found {a:?}, {b:?}"
369
+ ) ,
362
370
}
363
371
}
364
372
You can’t perform that action at this time.
0 commit comments