about summary refs log tree commit diff
path: root/src/tools/tidy
diff options
context:
space:
mode:
authorcodehorseman <cricis@yeah.net>2022-03-16 20:12:30 +0800
committercodehorseman <cricis@yeah.net>2022-03-16 20:12:30 +0800
commit01dbfb3eb264135c432cef223848416f90dac290 (patch)
tree67e0a6d5e9a26aa88fe06b38651fe030d994f508 /src/tools/tidy
parentd8e564715e0eb17130e99e8fcc92a36fce7feaf5 (diff)
downloadrust-01dbfb3eb264135c432cef223848416f90dac290.tar.gz
rust-01dbfb3eb264135c432cef223848416f90dac290.zip
resolve the conflict in compiler/rustc_session/src/parse.rs
Signed-off-by: codehorseman <cricis@yeah.net>
Diffstat (limited to 'src/tools/tidy')
-rw-r--r--src/tools/tidy/src/pal.rs4
-rw-r--r--src/tools/tidy/src/style.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/tidy/src/pal.rs b/src/tools/tidy/src/pal.rs
index f5ff3860afe..c5414233f09 100644
--- a/src/tools/tidy/src/pal.rs
+++ b/src/tools/tidy/src/pal.rs
@@ -132,7 +132,7 @@ fn check_cfgs(
             continue;
         }
 
-        let preceeded_by_doc_comment = {
+        let preceded_by_doc_comment = {
             let pre_contents = &contents[..idx];
             let pre_newline = pre_contents.rfind('\n');
             let pre_doc_comment = pre_contents.rfind("///");
@@ -143,7 +143,7 @@ fn check_cfgs(
             }
         };
 
-        if preceeded_by_doc_comment {
+        if preceded_by_doc_comment {
             continue;
         }
 
diff --git a/src/tools/tidy/src/style.rs b/src/tools/tidy/src/style.rs
index 9861cba410d..5a061009b6b 100644
--- a/src/tools/tidy/src/style.rs
+++ b/src/tools/tidy/src/style.rs
@@ -396,7 +396,7 @@ pub fn check(path: &Path, bad: &mut bool) {
             };
             suppressible_tidy_err!(err, skip_file_length, "");
         } else if lines > (LINES * 7) / 10 {
-            // Just set it to something that doesn't trigger the "unneccessarily ignored" warning.
+            // Just set it to something that doesn't trigger the "unnecessarily ignored" warning.
             skip_file_length = Directive::Ignore(true);
         }