1
Fork 0

chore: fix some typos

Signed-off-by: acceptacross <csqcqs@gmail.com>
This commit is contained in:
acceptacross 2024-12-18 23:23:44 +08:00
parent 3378a5e084
commit 6734a04c0a
6 changed files with 6 additions and 6 deletions

View file

@ -4325,7 +4325,7 @@ impl<'a, 'ast, 'ra: 'ast, 'tcx> LateResolutionVisitor<'a, 'ast, 'ra, 'tcx> {
#[inline]
/// If we're actually rustdoc then avoid giving a name resolution error for `cfg()` items or
// an invalid `use foo::*;` was found, which can cause unbounded ammounts of "item not found"
// an invalid `use foo::*;` was found, which can cause unbounded amounts of "item not found"
// errors. We silence them all.
fn should_report_errs(&self) -> bool {
!(self.r.tcx.sess.opts.actually_rustdoc && self.in_func_body)