about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2021-01-30 13:36:58 +0900
committerGitHub <noreply@github.com>2021-01-30 13:36:58 +0900
commitba40cea48727a57b4c740ae769bb3d142659b503 (patch)
tree7c654106c4d91e0586fd61c2e63392317a163cd9 /compiler/rustc_resolve/src
parent6090c571286057e52b96ecd1139039911670b464 (diff)
parentfd5fb86f05ac7d8f561c2177a5d3e5c80c93dfc7 (diff)
downloadrust-ba40cea48727a57b4c740ae769bb3d142659b503.tar.gz
rust-ba40cea48727a57b4c740ae769bb3d142659b503.zip
Rollup merge of #81505 - henryboisdequin:cold_path-not-pub, r=sanxiyn
`fn cold_path` doesn't need to be pub

Fixes #81429

Note: this PR also fixes a small typo that I found
Diffstat (limited to 'compiler/rustc_resolve/src')
-rw-r--r--compiler/rustc_resolve/src/diagnostics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/diagnostics.rs b/compiler/rustc_resolve/src/diagnostics.rs
index 69fb6870d2c..9d55bafd286 100644
--- a/compiler/rustc_resolve/src/diagnostics.rs
+++ b/compiler/rustc_resolve/src/diagnostics.rs
@@ -977,7 +977,7 @@ impl<'a> Resolver<'a> {
         });
         if let Some(def_span) = def_span {
             if span.overlaps(def_span) {
-                // Don't suggest typo suggestion for itself like in the followoing:
+                // Don't suggest typo suggestion for itself like in the following:
                 // error[E0423]: expected function, tuple struct or tuple variant, found struct `X`
                 //   --> $DIR/issue-64792-bad-unicode-ctor.rs:3:14
                 //    |