Skip to content

Commit 16db0e2

Browse files
committed
Remove obsolete and confusing comment
This comment from 2017 says "every error should have an associated error code" However, a more recent rustc-dev-guide doc from 2020 suggests that this is not the case, and that errorcode-less errors are fine and sometimes even preferable to errorcode-full ones: rust-lang/rustc-dev-guide#967
1 parent 3559e0a commit 16db0e2

File tree

1 file changed

+0
-1
lines changed
  • compiler/rustc_errors/src

1 file changed

+0
-1
lines changed

compiler/rustc_errors/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,6 @@ impl<'a> DiagCtxtHandle<'a> {
13041304
self.create_almost_fatal(fatal).emit()
13051305
}
13061306

1307-
// FIXME: This method should be removed (every error should have an associated error code).
13081307
#[rustc_lint_diagnostics]
13091308
#[track_caller]
13101309
pub fn struct_err(self, msg: impl Into<DiagMessage>) -> Diag<'a> {

0 commit comments

Comments
 (0)