From 7f5f92218a799027909c2ec29c08b45bdc783526 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Thu, 17 Aug 2017 16:15:40 +0200 Subject: [PATCH 1/2] Upgrade a comment to a doc comment --- src/librustc/lint/context.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/librustc/lint/context.rs b/src/librustc/lint/context.rs index 40d78d0138bb2..4351907f4ee18 100644 --- a/src/librustc/lint/context.rs +++ b/src/librustc/lint/context.rs @@ -121,10 +121,10 @@ pub enum FindLintError { pub enum CheckLintNameResult<'a> { Ok(&'a [LintId]), - // Lint doesn't exist + /// Lint doesn't exist NoLint, - // The lint is either renamed or removed. This is the warning - // message. + /// The lint is either renamed or removed. This is the warning + /// message. Warning(String), } From 9346fe9d6e6a3b9868cd82b459066f383f6c1beb Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Thu, 17 Aug 2017 16:21:55 +0200 Subject: [PATCH 2/2] Upgrade a comment to a doc comment --- src/librustc/lint/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/lint/context.rs b/src/librustc/lint/context.rs index 4351907f4ee18..62798d6f66402 100644 --- a/src/librustc/lint/context.rs +++ b/src/librustc/lint/context.rs @@ -253,7 +253,7 @@ impl LintStore { } } - // Checks the validity of lint names derived from the command line + /// Checks the validity of lint names derived from the command line pub fn check_lint_name_cmdline(&self, sess: &Session, lint_name: &str,