mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
compiler: fix typos
librustdoc: fix typos
This commit is contained in:
parent
e51e98dde6
commit
b2db793f30
@ -1698,7 +1698,7 @@ pub enum Level {
|
|||||||
/// internal overflows, some file operation errors.
|
/// internal overflows, some file operation errors.
|
||||||
///
|
///
|
||||||
/// Its `EmissionGuarantee` is `FatalAbort`, except in the non-aborting "almost fatal" case
|
/// Its `EmissionGuarantee` is `FatalAbort`, except in the non-aborting "almost fatal" case
|
||||||
/// that is occasionaly used, where it is `FatalError`.
|
/// that is occasionally used, where it is `FatalError`.
|
||||||
Fatal,
|
Fatal,
|
||||||
|
|
||||||
/// An error in the code being compiled, which prevents compilation from finishing. This is the
|
/// An error in the code being compiled, which prevents compilation from finishing. This is the
|
||||||
|
@ -85,7 +85,7 @@ impl<'tcx> FnCtxt<'_, 'tcx> {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// not setting the `fallback_has_occured` field here because
|
// not setting the `fallback_has_occurred` field here because
|
||||||
// that field is only used for type fallback diagnostics.
|
// that field is only used for type fallback diagnostics.
|
||||||
for effect in unsolved_effects {
|
for effect in unsolved_effects {
|
||||||
let expected = self.tcx.consts.true_;
|
let expected = self.tcx.consts.true_;
|
||||||
|
@ -244,7 +244,7 @@ fn find_resolution(resolutions: &DocLinkResMap, path: &str) -> Option<Res<NodeId
|
|||||||
.find_map(|ns| resolutions.get(&(Symbol::intern(path), ns)).copied().flatten())
|
.find_map(|ns| resolutions.get(&(Symbol::intern(path), ns)).copied().flatten())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Collects all neccessary data of link.
|
/// Collects all necessary data of link.
|
||||||
fn collect_link_data(offset_iter: &mut OffsetIter<'_, '_>) -> LinkData {
|
fn collect_link_data(offset_iter: &mut OffsetIter<'_, '_>) -> LinkData {
|
||||||
let mut resolvable_link = None;
|
let mut resolvable_link = None;
|
||||||
let mut resolvable_link_range = None;
|
let mut resolvable_link_range = None;
|
||||||
|
Loading…
Reference in New Issue
Block a user