Skip to content

Commit 3ab86fb

Browse files
committed
Fix some typos
1 parent 59f6b83 commit 3ab86fb

File tree

53 files changed

+83
-82
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+83
-82
lines changed

src/bootstrap/builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ impl<'a> Builder<'a> {
333333
StepDescription::run(&Builder::get_step_descriptions(Kind::Doc), self, paths);
334334
}
335335

336-
/// Obtain a compiler at a given stage and for a given host. Explictly does
336+
/// Obtain a compiler at a given stage and for a given host. Explicitly does
337337
/// not take `Compiler` since all `Compiler` instances are meant to be
338338
/// obtained through this function, since it ensures that they are valid
339339
/// (i.e., built and assembled).
@@ -501,7 +501,7 @@ impl<'a> Builder<'a> {
501501
// crates). Let's say, for example that rustc itself depends on the
502502
// bitflags crate. If an external crate then depends on the
503503
// bitflags crate as well, we need to make sure they don't
504-
// conflict, even if they pick the same verison of bitflags. We'll
504+
// conflict, even if they pick the same version of bitflags. We'll
505505
// want to make sure that e.g. a plugin and rustc each get their
506506
// own copy of bitflags.
507507

src/bootstrap/doc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ impl Step for Standalone {
306306
///
307307
/// This will list all of `src/doc` looking for markdown files and appropriately
308308
/// perform transformations like substituting `VERSION`, `SHORT_HASH`, and
309-
/// `STAMP` alongw ith providing the various header/footer HTML we've cutomized.
309+
/// `STAMP` along with providing the various header/footer HTML we've customized.
310310
///
311311
/// In the end, this is just a glorified wrapper around rustdoc!
312312
fn run(self, builder: &Builder) {

src/liballoc/allocator.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ impl Layout {
240240
///
241241
/// Returns `Some((k, offset))`, where `k` is layout of the concatenated
242242
/// record and `offset` is the relative location, in bytes, of the
243-
/// start of the `next` embedded witnin the concatenated record
243+
/// start of the `next` embedded within the concatenated record
244244
/// (assuming that the record itself starts at offset 0).
245245
///
246246
/// On arithmetic overflow, returns `None`.
@@ -297,7 +297,7 @@ impl Layout {
297297
///
298298
/// Returns `(k, offset)`, where `k` is layout of the concatenated
299299
/// record and `offset` is the relative location, in bytes, of the
300-
/// start of the `next` embedded witnin the concatenated record
300+
/// start of the `next` embedded within the concatenated record
301301
/// (assuming that the record itself starts at offset 0).
302302
///
303303
/// (The `offset` is always the same as `self.size()`; we use this
@@ -544,7 +544,7 @@ pub unsafe trait Alloc {
544544
/// practice this means implementors should eschew allocating,
545545
/// especially from `self` (directly or indirectly).
546546
///
547-
/// Implementions of the allocation and reallocation methods
547+
/// Implementations of the allocation and reallocation methods
548548
/// (e.g. `alloc`, `alloc_one`, `realloc`) are discouraged from
549549
/// panicking (or aborting) in the event of memory exhaustion;
550550
/// instead they should return an appropriate error from the

src/liballoc/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ impl String {
653653
/// * `capacity` needs to be the correct value.
654654
///
655655
/// Violating these may cause problems like corrupting the allocator's
656-
/// internal datastructures.
656+
/// internal data structures.
657657
///
658658
/// The ownership of `ptr` is effectively transferred to the
659659
/// `String` which may then deallocate, reallocate or change the

src/liballoc/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ impl<T> Vec<T> {
374374
/// * `capacity` needs to be the capacity that the pointer was allocated with.
375375
///
376376
/// Violating these may cause problems like corrupting the allocator's
377-
/// internal datastructures. For example it is **not** safe
377+
/// internal data structures. For example it is **not** safe
378378
/// to build a `Vec<u8>` from a pointer to a C `char` array and a `size_t`.
379379
///
380380
/// The ownership of `ptr` is effectively transferred to the

src/libcore/ops/place.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ pub trait Place<Data: ?Sized> {
6666
/// or `Copy`, since the `make_place` method takes `self` by value.
6767
#[unstable(feature = "placement_new_protocol", issue = "27779")]
6868
pub trait Placer<Data: ?Sized> {
69-
/// `Place` is the intermedate agent guarding the
69+
/// `Place` is the intermediate agent guarding the
7070
/// uninitialized state for `Data`.
7171
type Place: InPlace<Data>;
7272

src/libgraphviz/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ impl<'a> LabelText<'a> {
548548
}
549549

550550
/// Renders text as string suitable for a label in a .dot file.
551-
/// This includes quotes or suitable delimeters.
551+
/// This includes quotes or suitable delimiters.
552552
pub fn to_dot_string(&self) -> String {
553553
match self {
554554
&LabelStr(ref s) => format!("\"{}\"", s.escape_default()),

src/librustc/hir/intravisit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pub enum NestedVisitorMap<'this, 'tcx: 'this> {
8787
/// Do not visit nested item-like things, but visit nested things
8888
/// that are inside of an item-like.
8989
///
90-
/// **This is the most common choice.** A very commmon pattern is
90+
/// **This is the most common choice.** A very common pattern is
9191
/// to use `visit_all_item_likes()` as an outer loop,
9292
/// and to have the visitor that visits the contents of each item
9393
/// using this setting.

src/librustc/hir/map/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ pub struct Map<'hir> {
248248
pub forest: &'hir Forest,
249249

250250
/// Same as the dep_graph in forest, just available with one fewer
251-
/// deref. This is a gratuitious micro-optimization.
251+
/// deref. This is a gratuitous micro-optimization.
252252
pub dep_graph: DepGraph,
253253

254254
/// NodeIds are sequential integers from 0, so we can be

src/librustc/hir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ impl Crate {
496496
&self.impl_items[&id]
497497
}
498498

499-
/// Visits all items in the crate in some determinstic (but
499+
/// Visits all items in the crate in some deterministic (but
500500
/// unspecified) order. If you just need to process every item,
501501
/// but don't care about nesting, this method is the best choice.
502502
///

src/librustc/infer/at.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ impl<'a, 'gcx, 'tcx> At<'a, 'gcx, 'tcx> {
169169
}
170170

171171
/// Sets the "trace" values that will be used for
172-
/// error-repporting, but doesn't actually perform any operation
172+
/// error-reporting, but doesn't actually perform any operation
173173
/// yet (this is useful when you want to set the trace using
174174
/// distinct values from those you wish to operate upon).
175175
pub fn trace<T>(self,

src/librustc/infer/higher_ranked/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
589589
(result, map)
590590
}
591591

592-
/// Searches the region constriants created since `snapshot` was started
592+
/// Searches the region constraints created since `snapshot` was started
593593
/// and checks to determine whether any of the skolemized regions created
594594
/// in `skol_map` would "escape" -- meaning that they are related to
595595
/// other regions in some way. If so, the higher-ranked subtyping doesn't

src/librustc/infer/lattice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pub trait LatticeDir<'f, 'gcx: 'f+'tcx, 'tcx: 'f> : TypeRelation<'f, 'gcx, 'tcx>
4646
// the LUB/GLB of `a` and `b` as appropriate.
4747
//
4848
// Subtle hack: ordering *may* be significant here. This method
49-
// relates `v` to `a` first, which may help us to avoid unecessary
49+
// relates `v` to `a` first, which may help us to avoid unnecessary
5050
// type variable obligations. See caller for details.
5151
fn relate_bound(&mut self, v: Ty<'tcx>, a: Ty<'tcx>, b: Ty<'tcx>) -> RelateResult<'tcx, ()>;
5252
}

src/librustc/infer/region_inference/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ pub enum UndoLogEntry<'tcx> {
128128
/// We added the given `given`
129129
AddGiven(Region<'tcx>, ty::RegionVid),
130130

131-
/// We added a GLB/LUB "combinaton variable"
131+
/// We added a GLB/LUB "combination variable"
132132
AddCombination(CombineMapType, TwoRegions<'tcx>),
133133

134134
/// During skolemization, we sometimes purge entries from the undo

src/librustc/lint/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pub struct LintStore {
6969
/// is true if the lint group was added by a plugin.
7070
lint_groups: FxHashMap<&'static str, (Vec<LintId>, bool)>,
7171

72-
/// Extra info for future incompatibility lints, descibing the
72+
/// Extra info for future incompatibility lints, describing the
7373
/// issue or RFC that caused the incompatibility.
7474
future_incompatible: FxHashMap<LintId, FutureIncompatibleInfo>,
7575
}

src/librustc/mir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ impl<'tcx> Debug for TerminatorKind<'tcx> {
695695

696696
impl<'tcx> TerminatorKind<'tcx> {
697697
/// Write the "head" part of the terminator; that is, its name and the data it uses to pick the
698-
/// successor basic block, if any. The only information not inlcuded is the list of possible
698+
/// successor basic block, if any. The only information not included is the list of possible
699699
/// successors, which may be rendered differently between the text and the graphviz format.
700700
pub fn fmt_head<W: Write>(&self, fmt: &mut W) -> fmt::Result {
701701
use self::TerminatorKind::*;

src/librustc/session/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ pub struct Session {
112112

113113
/// Map from imported macro spans (which consist of
114114
/// the localized span for the macro body) to the
115-
/// macro name and defintion span in the source crate.
115+
/// macro name and definition span in the source crate.
116116
pub imported_macro_spans: RefCell<HashMap<Span, (String, Span)>>,
117117

118118
incr_comp_session: RefCell<IncrCompSession>,
@@ -828,7 +828,7 @@ pub fn compile_result_from_err_count(err_count: usize) -> CompileResult {
828828
#[inline(never)]
829829
pub fn bug_fmt(file: &'static str, line: u32, args: fmt::Arguments) -> ! {
830830
// this wrapper mostly exists so I don't have to write a fully
831-
// qualified path of None::<Span> inside the bug!() macro defintion
831+
// qualified path of None::<Span> inside the bug!() macro definition
832832
opt_span_bug_fmt(file, line, None::<Span>, args);
833833
}
834834

src/librustc/traits/error_reporting.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
111111
}
112112
}
113113

114-
// returns if `cond` not occuring implies that `error` does not occur - i.e. that
115-
// `error` occuring implies that `cond` occurs.
114+
// returns if `cond` not occurring implies that `error` does not occur - i.e. that
115+
// `error` occurring implies that `cond` occurs.
116116
fn error_implies(&self,
117117
cond: &ty::Predicate<'tcx>,
118118
error: &ty::Predicate<'tcx>)

src/librustc/traits/project.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@ impl<'tcx> ProjectionCache<'tcx> {
13641364
}
13651365

13661366
/// Try to start normalize `key`; returns an error if
1367-
/// normalization already occured (this error corresponds to a
1367+
/// normalization already occurred (this error corresponds to a
13681368
/// cache hit, so it's actually a good thing).
13691369
fn try_start(&mut self, key: ty::ProjectionTy<'tcx>)
13701370
-> Result<(), ProjectionCacheEntry<'tcx>> {

src/librustc/traits/specialize/specialization_graph.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl<'a, 'gcx, 'tcx> Children {
9595
}
9696

9797
/// Attempt to insert an impl into this set of children, while comparing for
98-
/// specialiation relationships.
98+
/// specialization relationships.
9999
fn insert(&mut self,
100100
tcx: TyCtxt<'a, 'gcx, 'tcx>,
101101
impl_def_id: DefId,
@@ -206,7 +206,7 @@ impl<'a, 'gcx, 'tcx> Graph {
206206

207207
// if the reference itself contains an earlier error (e.g., due to a
208208
// resolution failure), then we just insert the impl at the top level of
209-
// the graph and claim that there's no overlap (in order to supress
209+
// the graph and claim that there's no overlap (in order to suppress
210210
// bogus errors).
211211
if trait_ref.references_error() {
212212
debug!("insert: inserting dummy node for erroneous TraitRef {:?}, \

src/librustc/ty/inhabitedness/def_id_forest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use ty::{DefId, DefIdTree};
2424
#[derive(Clone)]
2525
pub struct DefIdForest {
2626
/// The minimal set of DefIds required to represent the whole set.
27-
/// If A and B are DefIds in the DefIdForest, and A is a desecendant
27+
/// If A and B are DefIds in the DefIdForest, and A is a descendant
2828
/// of B, then only B will be in root_ids.
2929
/// We use a SmallVec here because (for its use for cacheing inhabitedness)
3030
/// its rare that this will contain even two ids.
@@ -61,7 +61,7 @@ impl<'a, 'gcx, 'tcx> DefIdForest {
6161
self.root_ids.is_empty()
6262
}
6363

64-
/// Test whether the forest conains a given DefId.
64+
/// Test whether the forest contains a given DefId.
6565
pub fn contains(&self,
6666
tcx: TyCtxt<'a, 'gcx, 'tcx>,
6767
id: DefId) -> bool

src/librustc/ty/item_path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl<'a, 'gcx, 'tcx> TyCtxt<'a, 'gcx, 'tcx> {
125125

126126
/// If possible, this pushes a global path resolving to `external_def_id` that is visible
127127
/// from at least one local module and returns true. If the crate defining `external_def_id` is
128-
/// declared with an `extern crate`, the path is guarenteed to use the `extern crate`.
128+
/// declared with an `extern crate`, the path is guaranteed to use the `extern crate`.
129129
pub fn try_push_visible_item_path<T>(self, buffer: &mut T, external_def_id: DefId) -> bool
130130
where T: ItemPathBuffer
131131
{

src/librustc/ty/maps.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ macro_rules! define_maps {
587587
}
588588

589589
// FIXME(eddyb) Get more valid Span's on queries.
590-
// def_span guard is necesary to prevent a recursive loop,
590+
// def_span guard is necessary to prevent a recursive loop,
591591
// default_span calls def_span query internally.
592592
if span == DUMMY_SP && stringify!($name) != "def_span" {
593593
span = key.default_span(tcx)

src/librustc/util/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ pub trait MemoizationMap {
224224
type Key: Clone;
225225
type Value: Clone;
226226

227-
/// If `key` is present in the map, return the valuee,
227+
/// If `key` is present in the map, return the value,
228228
/// otherwise invoke `op` and store the value in the map.
229229
///
230230
/// NB: if the receiver is a `DepTrackingMap`, special care is

src/librustc_borrowck/borrowck/check_loans.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ impl<'a, 'tcx> CheckLoanCtxt<'a, 'tcx> {
472472

473473
if new_loan.span == old_loan.span {
474474
// Both borrows are happening in the same place
475-
// Meaning the borrow is occuring in a loop
475+
// Meaning the borrow is occurring in a loop
476476
err.span_label(
477477
new_loan.span,
478478
format!("mutable borrow starts here in previous \

src/librustc_const_eval/eval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl<'a, 'tcx> ConstContext<'a, 'tcx> {
106106
}
107107

108108
/// Evaluate a constant expression in a context where the expression isn't
109-
/// guaranteed to be evaluatable.
109+
/// guaranteed to be evaluable.
110110
pub fn eval(&self, e: &Expr) -> EvalResult<'tcx> {
111111
if self.tables.tainted_by_errors {
112112
signal!(e, TypeckError);

src/librustc_driver/driver.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ pub fn phase_3_run_analysis_passes<'tcx, F, R>(sess: &'tcx Session,
974974
passes.push_pass(MIR_CONST, mir::transform::type_check::TypeckMir);
975975
passes.push_pass(MIR_CONST, mir::transform::rustc_peek::SanityCheck);
976976

977-
// We compute "constant qualifications" betwen MIR_CONST and MIR_VALIDATED.
977+
// We compute "constant qualifications" between MIR_CONST and MIR_VALIDATED.
978978

979979
// What we need to run borrowck etc.
980980
passes.push_pass(MIR_VALIDATED, mir::transform::qualify_consts::QualifyAndPromoteConstants);

src/librustc_mir/build/scope.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ pub struct Scope<'tcx> {
113113
/// for unwinding, for several reasons:
114114
/// * clang doesn't emit llvm.lifetime.end for C++ unwinding
115115
/// * LLVM's memory dependency analysis can't handle it atm
116-
/// * pollutting the cleanup MIR with StorageDead creates
116+
/// * polluting the cleanup MIR with StorageDead creates
117117
/// landing pads even though there's no actual destructors
118118
/// * freeing up stack space has no effect during unwinding
119119
needs_cleanup: bool,

src/librustc_mir/dataflow/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,11 @@ pub trait BitDenotation {
333333
/// basic block) according to the effects of evaluating statement.
334334
///
335335
/// This is used, in particular, for building up the
336-
/// "transfer-function" represnting the overall-effect of the
336+
/// "transfer-function" representing the overall-effect of the
337337
/// block, represented via GEN and KILL sets.
338338
///
339339
/// The statement is identified as `bb_data[idx_stmt]`, where
340-
/// `bb_data` is the sequence of statements identifed by `bb` in
340+
/// `bb_data` is the sequence of statements identified by `bb` in
341341
/// the MIR.
342342
fn statement_effect(&self,
343343
sets: &mut BlockSets<Self::Idx>,
@@ -349,7 +349,7 @@ pub trait BitDenotation {
349349
/// the terminator.
350350
///
351351
/// This is used, in particular, for building up the
352-
/// "transfer-function" represnting the overall-effect of the
352+
/// "transfer-function" representing the overall-effect of the
353353
/// block, represented via GEN and KILL sets.
354354
///
355355
/// The effects applied here cannot depend on which branch the

src/librustc_mir/transform/erase_regions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! This pass erases all early-bound regions from the types occuring in the MIR.
11+
//! This pass erases all early-bound regions from the types occurring in the MIR.
1212
//! We want to do this once just before trans, so trans does not have to take
1313
//! care erasing regions all over the place.
1414
//! NOTE: We do NOT erase regions of statements that are relevant for

src/librustc_resolve/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1621,7 +1621,7 @@ impl<'a> Resolver<'a> {
16211621
return Some(module.parent.unwrap());
16221622
}
16231623

1624-
let mut module_expansion = module.expansion.modern(); // for backward compatability
1624+
let mut module_expansion = module.expansion.modern(); // for backward compatibility
16251625
while let Some(parent) = module.parent {
16261626
let parent_expansion = parent.expansion.modern();
16271627
if module_expansion.is_descendant_of(parent_expansion) &&

src/librustc_save_analysis/json_dumper.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl<'b, O: DumpOutput + 'b> JsonDumper<O> {
109109
}
110110
if data.kind == DefKind::Mod && data.span.file_name.to_str().unwrap() != data.value {
111111
// If the module is an out-of-line defintion, then we'll make the
112-
// defintion the first character in the module's file and turn the
112+
// definition the first character in the module's file and turn the
113113
// the declaration into a reference to it.
114114
let rf = Ref {
115115
kind: RefKind::Mod,

src/librustc_save_analysis/sig.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ impl Sig for ast::Item {
387387

388388
sig.text.push('(');
389389
for i in &decl.inputs {
390-
// FIXME shoudl descend into patterns to add defs.
390+
// FIXME should descend into patterns to add defs.
391391
sig.text.push_str(&pprust::pat_to_string(&i.pat));
392392
sig.text.push_str(": ");
393393
let nested = i.ty.make(offset + sig.text.len(), Some(i.id), scx)?;
@@ -922,7 +922,7 @@ fn make_method_signature(id: NodeId,
922922

923923
sig.text.push('(');
924924
for i in &m.decl.inputs {
925-
// FIXME shoudl descend into patterns to add defs.
925+
// FIXME should descend into patterns to add defs.
926926
sig.text.push_str(&pprust::pat_to_string(&i.pat));
927927
sig.text.push_str(": ");
928928
let nested = i.ty.make(sig.text.len(), Some(i.id), scx)?;

src/librustc_trans/base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ impl Lifetime {
488488
// on), and `ptr` is nonzero-sized, then extracts the size of `ptr`
489489
// and the intrinsic for `lt` and passes them to `emit`, which is in
490490
// charge of generating code to call the passed intrinsic on whatever
491-
// block of generated code is targetted for the intrinsic.
491+
// block of generated code is targeted for the intrinsic.
492492
//
493493
// If LLVM lifetime intrinsic support is disabled (i.e. optimizations
494494
// off) or `ptr` is zero-sized, then no-op (does not call `emit`).

src/librustc_trans/debuginfo/type_names.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub fn push_debuginfo_type_name<'a, 'tcx>(cx: &CrateContext<'a, 'tcx>,
3636
t: Ty<'tcx>,
3737
qualified: bool,
3838
output: &mut String) {
39-
// When targeting MSVC, emit C++ style type names for compatability with
39+
// When targeting MSVC, emit C++ style type names for compatibility with
4040
// .natvis visualizers (and perhaps other existing native debuggers?)
4141
let cpp_like_names = cx.sess().target.target.options.is_like_msvc;
4242

0 commit comments

Comments
 (0)