Skip to content

Commit 8fcf3e3

Browse files
Fix some rebasing fallout.
1 parent e546fea commit 8fcf3e3

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/test/mir-opt/issue-41110.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ fn main() {
1414
let x = S.other(S.id());
1515
}
1616

17-
// no_mangle and extern C to make sure this gets instantiated even in an
18-
// executable.
17+
// no_mangle to make sure this gets instantiated even in an executable.
1918
#[no_mangle]
20-
pub extern "C" fn test() {
19+
pub fn test() {
2120
let u = S;
2221
let mut v = S;
2322
drop(v);

src/test/mir-opt/match_false_edges.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,19 @@ fn guard2(_:i32) -> bool {
1818
true
1919
}
2020

21-
fn full_tested_match() {
21+
// no_mangle to make sure this gets instantiated even in an executable.
22+
#[no_mangle]
23+
pub fn full_tested_match() {
2224
let _ = match Some(42) {
2325
Some(x) if guard() => (1, x),
2426
Some(y) => (2, y),
2527
None => (3, 3),
2628
};
2729
}
2830

29-
fn full_tested_match2() {
31+
// no_mangle to make sure this gets instantiated even in an executable.
32+
#[no_mangle]
33+
pub fn full_tested_match2() {
3034
let _ = match Some(42) {
3135
Some(x) if guard() => (1, x),
3236
None => (3, 3),

0 commit comments

Comments
 (0)