We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
builtin.rs
1 parent 0b19227 commit 6ffecd2Copy full SHA for 6ffecd2
3 files changed
compiler/rustc_error_messages/locales/en-US/lint.ftl
@@ -433,6 +433,13 @@ lint_builtin_deref_nullptr = dereferencing a null pointer
433
434
lint_builtin_asm_labels = avoid using named labels in inline assembly
435
436
+lint_builtin_special_module_name_used_lib = found module declaration for lib.rs
437
+ .note = lib.rs is the root of this crate's library target
438
+ .help = to refer to it from other targets, use the library's name as the path
439
+
440
+lint_builtin_special_module_name_used_main = found module declaration for main.rs
441
+ .note = a binary crate cannot be used as library
442
443
lint_overruled_attribute = {$lint_level}({$lint_source}) incompatible with previous forbid
444
.label = overruled by previous forbid
445
0 commit comments