mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-10 08:57:36 +00:00

add suggestion on how to add a panic breakpoint Co-authored-by: Pat Pannuto <pat.pannuto@gmail.com> delete no_mangle from ui/panic-handler/panic-handler-wrong-location test issue an error for the usage of #[no_mangle] on internal language items delete the comments add newline rephrase note Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com> update error not to leak implementation details delete no_mangle_span Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com> delete commented code
15 lines
286 B
Rust
15 lines
286 B
Rust
// Issue a error when the user uses #[no_mangle] on internal language items
|
|
//@ edition:2024
|
|
|
|
#![feature(rustc_attrs)]
|
|
|
|
#[rustc_std_internal_symbol]
|
|
#[unsafe(no_mangle)] //~ERROR `#[no_mangle]` cannot be used on internal language items
|
|
fn internal_lang_function () {
|
|
|
|
}
|
|
|
|
fn main() {
|
|
|
|
}
|