We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6090c57 + fd5fb86 commit ba40ceaCopy full SHA for ba40cea
compiler/rustc_arena/src/lib.rs
@@ -32,7 +32,7 @@ use std::slice;
32
33
#[inline(never)]
34
#[cold]
35
-pub fn cold_path<F: FnOnce() -> R, R>(f: F) -> R {
+fn cold_path<F: FnOnce() -> R, R>(f: F) -> R {
36
f()
37
}
38
compiler/rustc_resolve/src/diagnostics.rs
@@ -977,7 +977,7 @@ impl<'a> Resolver<'a> {
977
});
978
if let Some(def_span) = def_span {
979
if span.overlaps(def_span) {
980
- // Don't suggest typo suggestion for itself like in the followoing:
+ // Don't suggest typo suggestion for itself like in the following:
981
// error[E0423]: expected function, tuple struct or tuple variant, found struct `X`
982
// --> $DIR/issue-64792-bad-unicode-ctor.rs:3:14
983
// |
0 commit comments