mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
da26317a8a
When writing a no_std binary, you'll be greeted with nonsensical errors mentioning lang items like eh_personality and start. That's pretty bad because it makes you think that you need to define them somewhere! But oh no, now you're getting the `internal_features` lint telling you that you shouldn't use them! But you need a no_std binary! What now? No problem! Writing a no_std binary is super easy. Just use panic=abort and supply your own platform specific entrypoint symbol (like `main`) and you're good to go. Would be nice if the compiler told you that, right? This makes it so that it does do that.
36 lines
1.6 KiB
Plaintext
36 lines
1.6 KiB
Plaintext
monomorphize_consider_type_length_limit =
|
|
consider adding a `#![type_length_limit="{$type_length}"]` attribute to your crate
|
|
|
|
monomorphize_couldnt_dump_mono_stats =
|
|
unexpected error occurred while dumping monomorphization stats: {$error}
|
|
|
|
monomorphize_encountered_error_while_instantiating =
|
|
the above error was encountered while instantiating `{$formatted_item}`
|
|
|
|
monomorphize_large_assignments =
|
|
moving {$size} bytes
|
|
.label = value moved from here
|
|
.note = The current maximum size is {$limit}, but it can be customized with the move_size_limit attribute: `#![move_size_limit = "..."]`
|
|
|
|
monomorphize_no_optimized_mir =
|
|
missing optimized MIR for an item in the crate `{$crate_name}`
|
|
.note = missing optimized MIR for this item (was the crate `{$crate_name}` compiled with `--emit=metadata`?)
|
|
|
|
monomorphize_recursion_limit =
|
|
reached the recursion limit while instantiating `{$shrunk}`
|
|
.note = `{$def_path_str}` defined here
|
|
|
|
monomorphize_start_not_found = using `fn main` requires the standard library
|
|
.help = use `#![no_main]` to bypass the Rust generated entrypoint and declare a platform specific entrypoint yourself, usually with `#[no_mangle]`
|
|
|
|
monomorphize_symbol_already_defined = symbol `{$symbol}` is already defined
|
|
|
|
monomorphize_type_length_limit = reached the type-length limit while instantiating `{$shrunk}`
|
|
|
|
monomorphize_unknown_cgu_collection_mode =
|
|
unknown codegen-item collection mode '{$mode}', falling back to 'lazy' mode
|
|
|
|
monomorphize_unused_generic_params = item has unused generic parameters
|
|
|
|
monomorphize_written_to_path = the full type name has been written to '{$path}'
|