Skip to content

Commit eb0372c

Browse files
authored
Testing: Revert pub changes in main function (#662)
1 parent 55c78bb commit eb0372c

File tree

265 files changed

+266
-266
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

265 files changed

+266
-266
lines changed

rmc-docs/src/install-guide.md

Lines changed: 1 addition & 1 deletion

src/test/expected/allocation/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ fn foo() -> Option<i32> {
44
None
55
}
66

7-
pub fn main() {
7+
fn main() {
88
assert!(foo() == None);
99
let x = foo();
1010
let y: Option<i32> = None;

src/test/expected/array/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ fn foo(x: [i32; 5]) -> [i32; 2] {
55
[x[0], x[1]]
66
}
77

8-
pub fn main() {
8+
fn main() {
99
let x = [1, 2, 3, 4, 5];
1010
let y = foo(x);
1111
let z = 2;

src/test/expected/assert-eq/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/// "library/std/src/macros.rs line 17 a panicking function core::panicking::panic_fmt is invoked: SUCCESS"
1010
/// https://github.com/model-checking/rmc/issues/13
1111
12-
pub fn main() {
12+
fn main() {
1313
let x = 1;
1414
let y = 2;
1515
assert_eq!(x + 1, y);

src/test/expected/binop/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ fn ibxor_test(a: i32, b: i32, correct: i32, wrong: i32) {
5555
assert!(a ^ b == wrong);
5656
}
5757

58-
pub fn main() {
58+
fn main() {
5959
iadd_test(1, 2, 3, 4);
6060
isub_test(3, 4, -1, 0);
6161
imul_test(5, 6, 30, 60);

src/test/expected/closure/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ where
88
some_closure(1, 1);
99
}
1010

11-
pub fn main() {
11+
fn main() {
1212
let mut num: i32 = rmc::nondet();
1313
let y = 2;
1414
if num <= std::i32::MAX - 100 {

src/test/expected/closure2/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
3-
pub fn main() {
3+
fn main() {
44
let x = 2;
55
let f = |y| x + y;
66
let z = f(100);

src/test/expected/closure3/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ where
77
f(10)
88
}
99

10-
pub fn main() {
10+
fn main() {
1111
let num: i64 = rmc::nondet();
1212
if num <= std::i64::MAX - 100 {
1313
// avoid overflow

src/test/expected/comp/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fn eq2(a: i32, b: i32) {
1212
assert!(a - b < a);
1313
}
1414

15-
pub fn main() {
15+
fn main() {
1616
let a = rmc::nondet();
1717
let b = rmc::nondet();
1818
if a > -400 && a < 100 && b < 200 && b > 0 {

src/test/expected/copy/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0 OR MIT
33
use std::ptr;
44

5-
pub fn main() {
5+
fn main() {
66
// TODO: make an overlapping set of locations, and check that it does the right thing for the overlapping region too.
77
// https://github.com/model-checking/rmc/issues/12
88
let expected_val = 42;

0 commit comments

Comments
 (0)