a more general version of https://github.com/rust-lang/rust/pull/146080. after a bit of hacking in [`fluent.rs`](https://github.com/rust-lang/rust/blob/master/compiler/rustc_fluent_macro/src/fluent.rs), i discovered that i'm not the only one that is bad at following guidelines 😅. this pr lowercases the first letter of all the error messages in the codebase. (i did not change things that are traditionally uppercased such as _MIR_, _ABI_ or _C_) i think it's reasonable to run a `@bors try` so all the test suite is checked, as i cannot run some of the tests on my machine. i double checked (and replaced manually) all the old error messages, but better be safe than sorry. in the future i will try to add a check in `x test tidy` that errors if an error message starts with an uppercase letter.
19 lines
627 B
Rust
19 lines
627 B
Rust
//! Test that linking a no_std application still outputs the
|
|
//! `native-static-libs: ` note, even though it is empty.
|
|
|
|
//@ compile-flags: -Cpanic=abort --print=native-static-libs
|
|
//@ build-pass
|
|
//@ dont-check-compiler-stderr (libcore links `/defaultlib:msvcrt` or `/defaultlib:libcmt` on MSVC)
|
|
//@ ignore-pass (the note is emitted later in the compilation pipeline, needs build)
|
|
|
|
#![crate_type = "staticlib"]
|
|
#![no_std]
|
|
|
|
#[panic_handler]
|
|
fn panic(_info: &core::panic::PanicInfo) -> ! {
|
|
loop {}
|
|
}
|
|
|
|
//~? NOTE native-static-libs:
|
|
//~? NOTE link against the following native artifacts when linking against this static library
|