Skip to content

Commit c3415d4

Browse files
committed
fix IncorrectCguReuseType
1 parent d0dc9ef commit c3415d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_session/src/cgu_reuse_tracker.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,13 @@ impl CguReuseTracker {
119119

120120
if error {
121121
let at_least = if at_least { 1 } else { 0 };
122-
IncorrectCguReuseType {
122+
sess.emit_err(IncorrectCguReuseType {
123123
span: error_span.0,
124124
cgu_user_name,
125125
actual_reuse,
126126
expected_reuse,
127127
at_least,
128-
};
128+
});
129129
}
130130
} else {
131131
sess.emit_fatal(CguNotRecorded { cgu_user_name, cgu_name });

0 commit comments

Comments
 (0)