aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Schievink <jonasschievink@gmail.com> 2019-11-21 22:06:33 +0100
committerGravatar Jonas Schievink <jonasschievink@gmail.com> 2019-11-21 22:27:44 +0100
commit1d790bd2858b2c1827322eb872a2e05f05bcd694 (patch)
tree2bf1b7e26643f06fa52ea47ca868dd7e6aef554f
parentf6729db2e7004954606a020d8fb67a7589e679e5 (diff)
downloadcortex-m-1d790bd2858b2c1827322eb872a2e05f05bcd694.tar.gz
cortex-m-1d790bd2858b2c1827322eb872a2e05f05bcd694.tar.zst
cortex-m-1d790bd2858b2c1827322eb872a2e05f05bcd694.zip
Rename a function to not collide
Functions with the same name in the same module will now collide (just like they do in normal Rust code)
-rw-r--r--cortex-m-rt/tests/compile-fail/interrupt-invalid.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cortex-m-rt/tests/compile-fail/interrupt-invalid.rs b/cortex-m-rt/tests/compile-fail/interrupt-invalid.rs
index 4e568eb..e915518 100644
--- a/cortex-m-rt/tests/compile-fail/interrupt-invalid.rs
+++ b/cortex-m-rt/tests/compile-fail/interrupt-invalid.rs
@@ -7,7 +7,7 @@ extern crate panic_halt;
use cortex_m_rt::{entry, interrupt};
#[entry]
-fn foo() -> ! {
+fn entry() -> ! {
loop {}
}