@@ -1087,7 +1087,12 @@ pub fn compile_file(
1087
1087
}
1088
1088
1089
1089
if helpers:: contains_ascii_characters ( & err) {
1090
- Ok ( Some ( err) )
1090
+ if module. package . is_pinned_dep {
1091
+ // supress warnings of external deps
1092
+ Ok ( Some ( err) )
1093
+ } else {
1094
+ Ok ( None )
1095
+ }
1091
1096
} else {
1092
1097
Ok ( None )
1093
1098
}
@@ -1117,31 +1122,31 @@ fn failed_to_compile(module: &Module) -> bool {
1117
1122
SourceType :: SourceFile ( SourceFile {
1118
1123
implementation :
1119
1124
Implementation {
1120
- compile_state : CompileState :: Error , // | CompileState::Warning,
1125
+ compile_state : CompileState :: Error | CompileState :: Warning ,
1121
1126
..
1122
1127
} ,
1123
1128
..
1124
1129
} ) => true ,
1125
1130
SourceType :: SourceFile ( SourceFile {
1126
1131
interface :
1127
1132
Some ( Interface {
1128
- compile_state : CompileState :: Error , // | CompileState::Warning,
1133
+ compile_state : CompileState :: Error | CompileState :: Warning ,
1129
1134
..
1130
1135
} ) ,
1131
1136
..
1132
1137
} ) => true ,
1133
1138
SourceType :: SourceFile ( SourceFile {
1134
1139
implementation :
1135
1140
Implementation {
1136
- parse_state : ParseState :: ParseError , // | ParseState::Warning,
1141
+ parse_state : ParseState :: ParseError | ParseState :: Warning ,
1137
1142
..
1138
1143
} ,
1139
1144
..
1140
1145
} ) => true ,
1141
1146
SourceType :: SourceFile ( SourceFile {
1142
1147
interface :
1143
1148
Some ( Interface {
1144
- parse_state : ParseState :: ParseError , // | ParseState::Warning,
1149
+ parse_state : ParseState :: ParseError | ParseState :: Warning ,
1145
1150
..
1146
1151
} ) ,
1147
1152
..
@@ -1188,12 +1193,12 @@ fn cleanup_after_build(
1188
1193
& module. package . namespace ,
1189
1194
& project_root,
1190
1195
) ;
1191
- remove_compile_assets (
1192
- & source_file. implementation . path ,
1193
- & module. package . name ,
1194
- & module. package . namespace ,
1195
- & project_root,
1196
- ) ;
1196
+ // remove_compile_assets(
1197
+ // &source_file.implementation.path,
1198
+ // &module.package.name,
1199
+ // &module.package.namespace,
1200
+ // &project_root,
1201
+ // );
1197
1202
}
1198
1203
_ => ( ) ,
1199
1204
}
0 commit comments