Skip to content

Commit 6ffecd2

Browse files
committed
migrate(wip): builtin.rs
1 parent 0b19227 commit 6ffecd2

File tree

3 files changed

+383
-229
lines changed

3 files changed

+383
-229
lines changed

compiler/rustc_error_messages/locales/en-US/lint.ftl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,13 @@ lint_builtin_deref_nullptr = dereferencing a null pointer
433433
434434
lint_builtin_asm_labels = avoid using named labels in inline assembly
435435
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+
436443
lint_overruled_attribute = {$lint_level}({$lint_source}) incompatible with previous forbid
437444
.label = overruled by previous forbid
438445

0 commit comments

Comments
 (0)