2019-02-15 22:26:36 +00:00
|
|
|
error: functions generic over types or consts must be mangled
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/generic-no-mangle.rs:6:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | #[no_mangle]
|
|
|
|
| ------------ help: remove this attribute
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | pub fn foo<T>() {}
|
2018-08-08 12:28:26 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/generic-no-mangle.rs:3:9
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | #![deny(no_mangle_generic_items)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2019-02-15 22:26:36 +00:00
|
|
|
error: functions generic over types or consts must be mangled
|
2020-07-02 05:32:12 +00:00
|
|
|
--> $DIR/generic-no-mangle.rs:9:1
|
2018-08-08 12:28:26 +00:00
|
|
|
|
|
|
|
|
LL | #[no_mangle]
|
|
|
|
| ------------ help: remove this attribute
|
2020-09-01 21:28:11 +00:00
|
|
|
LL | pub extern "C" fn bar<T>() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-08-08 12:28:26 +00:00
|
|
|
|
2021-08-07 18:10:57 +00:00
|
|
|
error: functions generic over types or consts must be mangled
|
|
|
|
--> $DIR/generic-no-mangle.rs:21:5
|
|
|
|
|
|
|
|
|
LL | #[no_mangle]
|
|
|
|
| ------------ help: remove this attribute
|
|
|
|
LL | pub fn foo<T>() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: functions generic over types or consts must be mangled
|
|
|
|
--> $DIR/generic-no-mangle.rs:24:5
|
|
|
|
|
|
|
|
|
LL | #[no_mangle]
|
|
|
|
| ------------ help: remove this attribute
|
|
|
|
LL | pub extern "C" fn bar<T>() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: functions generic over types or consts must be mangled
|
|
|
|
--> $DIR/generic-no-mangle.rs:42:5
|
|
|
|
|
|
|
|
|
LL | #[no_mangle]
|
|
|
|
| ------------ help: remove this attribute
|
|
|
|
LL | fn foo<T>() {}
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: functions generic over types or consts must be mangled
|
|
|
|
--> $DIR/generic-no-mangle.rs:45:5
|
|
|
|
|
|
|
|
|
LL | #[no_mangle]
|
|
|
|
| ------------ help: remove this attribute
|
|
|
|
LL | extern "C" fn bar<T>() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: functions generic over types or consts must be mangled
|
|
|
|
--> $DIR/generic-no-mangle.rs:64:5
|
|
|
|
|
|
|
|
|
LL | #[no_mangle]
|
|
|
|
| ------------ help: remove this attribute
|
|
|
|
LL | fn foo() {}
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: functions generic over types or consts must be mangled
|
|
|
|
--> $DIR/generic-no-mangle.rs:67:5
|
|
|
|
|
|
|
|
|
LL | #[no_mangle]
|
|
|
|
| ------------ help: remove this attribute
|
|
|
|
LL | fn foo2<U>() {}
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: functions generic over types or consts must be mangled
|
|
|
|
--> $DIR/generic-no-mangle.rs:70:5
|
|
|
|
|
|
|
|
|
LL | #[no_mangle]
|
|
|
|
| ------------ help: remove this attribute
|
|
|
|
LL | extern "C" fn bar() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: functions generic over types or consts must be mangled
|
|
|
|
--> $DIR/generic-no-mangle.rs:73:5
|
|
|
|
|
|
|
|
|
LL | #[no_mangle]
|
|
|
|
| ------------ help: remove this attribute
|
|
|
|
LL | fn baz(x: &i32) -> &i32 { x }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: functions generic over types or consts must be mangled
|
|
|
|
--> $DIR/generic-no-mangle.rs:76:5
|
|
|
|
|
|
|
|
|
LL | #[no_mangle]
|
|
|
|
| ------------ help: remove this attribute
|
|
|
|
LL | fn qux<'a>(x: &'a i32) -> &i32 { x }
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: functions generic over types or consts must be mangled
|
|
|
|
--> $DIR/generic-no-mangle.rs:83:5
|
|
|
|
|
|
|
|
|
LL | #[no_mangle]
|
|
|
|
| ------------ help: remove this attribute
|
|
|
|
LL | pub fn foo() {}
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: functions generic over types or consts must be mangled
|
|
|
|
--> $DIR/generic-no-mangle.rs:86:5
|
|
|
|
|
|
|
|
|
LL | #[no_mangle]
|
|
|
|
| ------------ help: remove this attribute
|
|
|
|
LL | pub extern "C" fn bar() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: functions generic over types or consts must be mangled
|
|
|
|
--> $DIR/generic-no-mangle.rs:89:5
|
|
|
|
|
|
|
|
|
LL | #[no_mangle]
|
|
|
|
| ------------ help: remove this attribute
|
|
|
|
LL | pub fn baz<U>() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: functions generic over types or consts must be mangled
|
2021-08-12 16:11:44 +00:00
|
|
|
--> $DIR/generic-no-mangle.rs:105:5
|
2021-08-07 18:10:57 +00:00
|
|
|
|
|
|
|
|
LL | #[no_mangle]
|
|
|
|
| ------------ help: remove this attribute
|
|
|
|
LL | fn foo() {}
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: functions generic over types or consts must be mangled
|
2021-08-12 16:11:44 +00:00
|
|
|
--> $DIR/generic-no-mangle.rs:108:5
|
2021-08-07 18:10:57 +00:00
|
|
|
|
|
|
|
|
LL | #[no_mangle]
|
|
|
|
| ------------ help: remove this attribute
|
|
|
|
LL | extern "C" fn bar() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: functions generic over types or consts must be mangled
|
2021-08-12 16:11:44 +00:00
|
|
|
--> $DIR/generic-no-mangle.rs:111:5
|
2021-08-07 18:10:57 +00:00
|
|
|
|
|
|
|
|
LL | #[no_mangle]
|
|
|
|
| ------------ help: remove this attribute
|
|
|
|
LL | fn baz<U>() {}
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 17 previous errors
|
2018-08-08 12:28:26 +00:00
|
|
|
|