Skip to content

Commit 24b3688

Browse files
committed
Rollup merge of rust-lang#55901 - euclio:speling, r=petrochenkov
fix various typos in doc comments
2 parents 3d48823 + 4e35cbb commit 24b3688

File tree

48 files changed

+67
-67
lines changed

Some content is hidden

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

48 files changed

+67
-67
lines changed

src/liballoc/collections/btree/node.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ struct LeafNode<K, V> {
6969

7070
/// This node's index into the parent node's `edges` array.
7171
/// `*node.parent.edges[node.parent_idx]` should be the same thing as `node`.
72-
/// This is only guaranteed to be initialized when `parent` is nonnull.
72+
/// This is only guaranteed to be initialized when `parent` is non-null.
7373
parent_idx: MaybeUninit<u16>,
7474

7575
/// The number of keys and values this node stores.

src/liballoc/raw_vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ use boxed::Box;
4444
/// This enables you to use capacity growing logic catch the overflows in your length
4545
/// that might occur with zero-sized types.
4646
///
47-
/// However this means that you need to be careful when roundtripping this type
47+
/// However this means that you need to be careful when round-tripping this type
4848
/// with a `Box<[T]>`: `cap()` won't yield the len. However `with_capacity`,
4949
/// `shrink_to_fit`, and `from_box` will actually set RawVec's private capacity
5050
/// field. This allows zero-sized types to not be special-cased by consumers of

src/libcore/num/f32.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ impl f32 {
445445
/// signaling NaNs on MIPS are quiet NaNs on x86, and vice-versa.
446446
///
447447
/// Rather than trying to preserve signaling-ness cross-platform, this
448-
/// implementation favours preserving the exact bits. This means that
448+
/// implementation favors preserving the exact bits. This means that
449449
/// any payloads encoded in NaNs will be preserved even if the result of
450450
/// this method is sent over the network from an x86 machine to a MIPS one.
451451
///

src/libcore/task/wake.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ impl Drop for Waker {
108108
/// is ready to be run.
109109
///
110110
/// This is similar to the `Waker` type, but cannot be sent across threads.
111-
/// Task executors can use this type to implement more optimized singlethreaded wakeup
111+
/// Task executors can use this type to implement more optimized single-threaded wakeup
112112
/// behavior.
113113
#[repr(transparent)]
114114
#[derive(Clone)]

src/libproc_macro/lib.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ impl TokenTree {
535535
}
536536
}
537537

538-
/// Prints token treee in a form convenient for debugging.
538+
/// Prints token tree in a form convenient for debugging.
539539
#[stable(feature = "proc_macro_lib2", since = "1.29.0")]
540540
impl fmt::Debug for TokenTree {
541541
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
@@ -730,7 +730,7 @@ impl fmt::Debug for Group {
730730

731731
/// An `Punct` is an single punctuation character like `+`, `-` or `#`.
732732
///
733-
/// Multicharacter operators like `+=` are represented as two instances of `Punct` with different
733+
/// Multi-character operators like `+=` are represented as two instances of `Punct` with different
734734
/// forms of `Spacing` returned.
735735
#[stable(feature = "proc_macro_lib2", since = "1.29.0")]
736736
#[derive(Clone)]
@@ -788,7 +788,7 @@ impl Punct {
788788

789789
/// Returns the spacing of this punctuation character, indicating whether it's immediately
790790
/// followed by another `Punct` in the token stream, so they can potentially be combined into
791-
/// a multicharacter operator (`Joint`), or it's followed by some other token or whitespace
791+
/// a multi-character operator (`Joint`), or it's followed by some other token or whitespace
792792
/// (`Alone`) so the operator has certainly ended.
793793
#[stable(feature = "proc_macro_lib2", since = "1.29.0")]
794794
pub fn spacing(&self) -> Spacing {
@@ -947,7 +947,7 @@ macro_rules! suffixed_int_literals {
947947
/// This function will create an integer like `1u32` where the integer
948948
/// value specified is the first part of the token and the integral is
949949
/// also suffixed at the end.
950-
/// Literals created from negative numbers may not survive rountrips through
950+
/// Literals created from negative numbers may not survive round-trips through
951951
/// `TokenStream` or strings and may be broken into two tokens (`-` and positive literal).
952952
///
953953
/// Literals created through this method have the `Span::call_site()`
@@ -1047,7 +1047,7 @@ impl Literal {
10471047

10481048
/// Creates a new suffixed floating-point literal.
10491049
///
1050-
/// This consturctor will create a literal like `1.0f32` where the value
1050+
/// This constructor will create a literal like `1.0f32` where the value
10511051
/// specified is the preceding part of the token and `f32` is the suffix of
10521052
/// the token. This token will always be inferred to be an `f32` in the
10531053
/// compiler.
@@ -1096,7 +1096,7 @@ impl Literal {
10961096

10971097
/// Creates a new suffixed floating-point literal.
10981098
///
1099-
/// This consturctor will create a literal like `1.0f64` where the value
1099+
/// This constructor will create a literal like `1.0f64` where the value
11001100
/// specified is the preceding part of the token and `f64` is the suffix of
11011101
/// the token. This token will always be inferred to be an `f64` in the
11021102
/// compiler.

src/librustc/dep_graph/cgu_reuse_tracker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
//! Some facilities for tracking how codegen-units are reused during incremental
12-
//! compilition. This is used for incremental compiliation tests and debug
12+
//! compilation. This is used for incremental compilation tests and debug
1313
//! output.
1414
1515
use session::Session;

src/librustc/hir/def.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub enum NonMacroAttrKind {
3636
Tool,
3737
/// Single-segment custom attribute registered by a derive macro (`#[serde(default)]`).
3838
DeriveHelper,
39-
/// Single-segment custom attriubte registered by a legacy plugin (`register_attribute`).
39+
/// Single-segment custom attribute registered by a legacy plugin (`register_attribute`).
4040
LegacyPluginHelper,
4141
/// Single-segment custom attribute not registered in any way (`#[my_attr]`).
4242
Custom,

src/librustc/infer/canonical/canonicalizer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
//! This module contains the "canonicalizer" itself.
1212
//!
13-
//! For an overview of what canonicaliation is and how it fits into
13+
//! For an overview of what canonicalization is and how it fits into
1414
//! rustc, check out the [chapter in the rustc guide][c].
1515
//!
1616
//! [c]: https://rust-lang-nursery.github.io/rustc-guide/traits/canonicalization.html

src/librustc/infer/canonical/query_response.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ impl<'cx, 'gcx, 'tcx> InferCtxt<'cx, 'gcx, 'tcx> {
556556
}
557557

558558
/// Given two sets of values for the same set of canonical variables, unify them.
559-
/// The second set is produced lazilly by supplying indices from the first set.
559+
/// The second set is produced lazily by supplying indices from the first set.
560560
fn unify_canonical_vars(
561561
&self,
562562
cause: &ObligationCause<'tcx>,

src/librustc/infer/canonical/substitute.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! This module contains code to substitute new values into a
1212
//! `Canonical<'tcx, T>`.
1313
//!
14-
//! For an overview of what canonicaliation is and how it fits into
14+
//! For an overview of what canonicalization is and how it fits into
1515
//! rustc, check out the [chapter in the rustc guide][c].
1616
//!
1717
//! [c]: https://rust-lang-nursery.github.io/rustc-guide/traits/canonicalization.html

src/librustc/infer/error_reporting/nice_region_error/outlives_closure.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use util::common::ErrorReported;
2020
use infer::lexical_region_resolve::RegionResolutionError::SubSupConflict;
2121

2222
impl<'a, 'gcx, 'tcx> NiceRegionError<'a, 'gcx, 'tcx> {
23-
/// Print the error message for lifetime errors when binding excapes a closure.
23+
/// Print the error message for lifetime errors when binding escapes a closure.
2424
///
2525
/// Consider a case where we have
2626
///

src/librustc/infer/higher_ranked/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
428428
///
429429
/// This routine is only intended to be used when the leak-check has
430430
/// passed; currently, it's used in the trait matching code to create
431-
/// a set of nested obligations frmo an impl that matches against
431+
/// a set of nested obligations from an impl that matches against
432432
/// something higher-ranked. More details can be found in
433433
/// `librustc/middle/traits/README.md`.
434434
///

src/librustc/infer/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1160,10 +1160,10 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
11601160
}
11611161

11621162
/// Takes ownership of the list of variable regions. This implies
1163-
/// that all the region constriants have already been taken, and
1163+
/// that all the region constraints have already been taken, and
11641164
/// hence that `resolve_regions_and_report_errors` can never be
11651165
/// called. This is used only during NLL processing to "hand off" ownership
1166-
/// of the set of region vairables into the NLL region context.
1166+
/// of the set of region variables into the NLL region context.
11671167
pub fn take_region_var_origins(&self) -> VarInfos {
11681168
let (var_infos, data) = self.region_constraints
11691169
.borrow_mut()
@@ -1478,7 +1478,7 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
14781478
}
14791479

14801480
/// Clears the selection, evaluation, and projection caches. This is useful when
1481-
/// repeatedly attemping to select an Obligation while changing only
1481+
/// repeatedly attempting to select an Obligation while changing only
14821482
/// its ParamEnv, since FulfillmentContext doesn't use 'probe'
14831483
pub fn clear_caches(&self) {
14841484
self.selection_cache.clear();

src/librustc/infer/type_variable.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ impl<'tcx> TypeVariableTable<'tcx> {
320320
/// but which have only been unified since `s` started, and
321321
/// return the types with which they were unified. So if we had
322322
/// a type variable `V0`, then we started the snapshot, then we
323-
/// created a type variable `V1`, unifed `V0` with `T0`, and
323+
/// created a type variable `V1`, unified `V0` with `T0`, and
324324
/// unified `V1` with `T1`, this function would return `{T0}`.
325325
pub fn types_escaping_snapshot(&mut self, s: &Snapshot<'tcx>) -> Vec<Ty<'tcx>> {
326326
let mut new_elem_threshold = u32::MAX;

src/librustc/lint/levels.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ impl<'a> LintLevelsBuilder<'a> {
189189
/// This function will perform a number of tasks:
190190
///
191191
/// * It'll validate all lint-related attributes in `attrs`
192-
/// * It'll mark all lint-related attriutes as used
192+
/// * It'll mark all lint-related attributes as used
193193
/// * Lint levels will be updated based on the attributes provided
194194
/// * Lint attributes are validated, e.g. a #[forbid] can't be switched to
195195
/// #[allow]

src/librustc/session/config.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ impl Default for ErrorOutputType {
224224

225225
// Use tree-based collections to cheaply get a deterministic Hash implementation.
226226
// DO NOT switch BTreeMap out for an unsorted container type! That would break
227-
// dependency tracking for commandline arguments.
227+
// dependency tracking for command-line arguments.
228228
#[derive(Clone, Hash)]
229229
pub struct OutputTypes(BTreeMap<OutputType, Option<PathBuf>>);
230230

@@ -273,7 +273,7 @@ impl OutputTypes {
273273

274274
// Use tree-based collections to cheaply get a deterministic Hash implementation.
275275
// DO NOT switch BTreeMap or BTreeSet out for an unsorted container type! That
276-
// would break dependency tracking for commandline arguments.
276+
// would break dependency tracking for command-line arguments.
277277
#[derive(Clone, Hash)]
278278
pub struct Externs(BTreeMap<String, BTreeSet<Option<String>>>);
279279

@@ -339,7 +339,7 @@ macro_rules! top_level_options {
339339
);
340340
}
341341

342-
// The top-level commandline options struct
342+
// The top-level command-line options struct
343343
//
344344
// For each option, one has to specify how it behaves with regard to the
345345
// dependency tracking system of incremental compilation. This is done via the
@@ -2377,11 +2377,11 @@ impl fmt::Display for CrateType {
23772377
}
23782378
}
23792379

2380-
/// Commandline arguments passed to the compiler have to be incorporated with
2380+
/// Command-line arguments passed to the compiler have to be incorporated with
23812381
/// the dependency tracking system for incremental compilation. This module
23822382
/// provides some utilities to make this more convenient.
23832383
///
2384-
/// The values of all commandline arguments that are relevant for dependency
2384+
/// The values of all command-line arguments that are relevant for dependency
23852385
/// tracking are hashed into a single value that determines whether the
23862386
/// incremental compilation cache can be re-used or not. This hashing is done
23872387
/// via the DepTrackingHash trait defined below, since the standard Hash
@@ -2394,7 +2394,7 @@ impl fmt::Display for CrateType {
23942394
/// impl_dep_tracking_hash_via_hash!() macro that allows to simply reuse the
23952395
/// Hash implementation for DepTrackingHash. It's important though that
23962396
/// we have an opt-in scheme here, so one is hopefully forced to think about
2397-
/// how the hash should be calculated when adding a new commandline argument.
2397+
/// how the hash should be calculated when adding a new command-line argument.
23982398
mod dep_tracking {
23992399
use lint;
24002400
use middle::cstore;

src/librustc/traits/query/dropck_outlives.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ impl_stable_hash_for!(struct DtorckConstraint<'tcx> {
200200
/// trivial for dropck-outlives.
201201
///
202202
/// Note also that `needs_drop` requires a "global" type (i.e., one
203-
/// with erased regions), but this funtcion does not.
203+
/// with erased regions), but this function does not.
204204
pub fn trivial_dropck_outlives<'tcx>(tcx: TyCtxt<'_, '_, 'tcx>, ty: Ty<'tcx>) -> bool {
205205
match ty.sty {
206206
// None of these types have a destructor and hence they do not

src/librustc/ty/fold.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ pub fn shift_vars<'a, 'gcx, 'tcx, T>(
781781
///
782782
/// Note that what I'm calling an "escaping var" is often just called a "free var". However,
783783
/// we already use the term "free var". It refers to the regions or types that we use to represent
784-
/// bound regions or type params on a fn definition while we are typechecking its body.
784+
/// bound regions or type params on a fn definition while we are type checking its body.
785785
///
786786
/// To clarify, conceptually there is no particular difference between
787787
/// an "escaping" var and a "free" var. However, there is a big
@@ -857,7 +857,7 @@ struct LateBoundRegionsCollector {
857857

858858
/// If true, we only want regions that are known to be
859859
/// "constrained" when you equate this type with another type. In
860-
/// partcular, if you have e.g. `&'a u32` and `&'b u32`, equating
860+
/// particular, if you have e.g. `&'a u32` and `&'b u32`, equating
861861
/// them constraints `'a == 'b`. But if you have `<&'a u32 as
862862
/// Trait>::Foo` and `<&'b u32 as Trait>::Foo`, normalizing those
863863
/// types may mean that `'a` and `'b` don't appear in the results,

src/librustc/ty/layout.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,7 @@ impl<'a, 'tcx> LayoutCx<'tcx, TyCtxt<'a, 'tcx, 'tcx>> {
12871287
/// Type size "skeleton", i.e. the only information determining a type's size.
12881288
/// While this is conservative, (aside from constant sizes, only pointers,
12891289
/// newtypes thereof and null pointer optimized enums are allowed), it is
1290-
/// enough to statically check common usecases of transmute.
1290+
/// enough to statically check common use cases of transmute.
12911291
#[derive(Copy, Clone, Debug)]
12921292
pub enum SizeSkeleton<'tcx> {
12931293
/// Any statically computable Layout.

src/librustc/ty/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2400,7 +2400,7 @@ impl<'a, 'gcx, 'tcx> FieldDef {
24002400

24012401
/// Represents the various closure traits in the Rust language. This
24022402
/// will determine the type of the environment (`self`, in the
2403-
/// desuaring) argument that the closure expects.
2403+
/// desugaring) argument that the closure expects.
24042404
///
24052405
/// You can get the environment type of a closure using
24062406
/// `tcx.closure_env_ty()`.

src/librustc_codegen_llvm/base.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ pub fn codegen_crate<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
942942
///
943943
/// In the process of working on rust-lang/rust#55238 a mysterious segfault was
944944
/// stumbled upon. The segfault was never reproduced locally, but it was
945-
/// suspected to be releated to the fact that codegen worker threads were
945+
/// suspected to be related to the fact that codegen worker threads were
946946
/// sticking around by the time the main thread was exiting, causing issues.
947947
///
948948
/// This structure is an attempt to fix that issue where the `codegen_aborted`

src/librustc_codegen_utils/symbol_names.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
//! - In order to be able to also use symbols from two versions of the same
8080
//! crate (which naturally also have the same name), a stronger measure is
8181
//! required: The compiler accepts an arbitrary "disambiguator" value via the
82-
//! `-C metadata` commandline argument. This disambiguator is then fed into
82+
//! `-C metadata` command-line argument. This disambiguator is then fed into
8383
//! the symbol hash of every exported item. Consequently, the symbols in two
8484
//! identical crates but with different disambiguators are not in conflict
8585
//! with each other. This facility is mainly intended to be used by build

src/librustc_data_structures/graph/scc/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct SccData<S: Idx> {
3838
/// successors can be found.
3939
ranges: IndexVec<S, Range<usize>>,
4040

41-
/// Contains the succcessors for all the Sccs, concatenated. The
41+
/// Contains the successors for all the Sccs, concatenated. The
4242
/// range of indices corresponding to a given SCC is found in its
4343
/// SccData.
4444
all_successors: Vec<S>,

src/librustc_data_structures/owning_ref/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ impl<O, T: ?Sized> OwningRef<O, T> {
452452
/// use owning_ref::{OwningRef, Erased};
453453
///
454454
/// fn main() {
455-
/// // NB: Using the concrete types here for explicitnes.
455+
/// // NB: Using the concrete types here for explicitness.
456456
/// // For less verbose code type aliases like `BoxRef` are provided.
457457
///
458458
/// let owning_ref_a: OwningRef<Box<[i32; 4]>, [i32; 4]>
@@ -722,7 +722,7 @@ impl<O, T: ?Sized> OwningRefMut<O, T> {
722722
/// use owning_ref::{OwningRefMut, Erased};
723723
///
724724
/// fn main() {
725-
/// // NB: Using the concrete types here for explicitnes.
725+
/// // NB: Using the concrete types here for explicitness.
726726
/// // For less verbose code type aliases like `BoxRef` are provided.
727727
///
728728
/// let owning_ref_mut_a: OwningRefMut<Box<[i32; 4]>, [i32; 4]>

src/librustc_data_structures/sorted_map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use std::mem;
1515
use std::ops::{RangeBounds, Bound, Index, IndexMut};
1616

1717
/// `SortedMap` is a data structure with similar characteristics as BTreeMap but
18-
/// slightly different trade-offs: lookup, inseration, and removal are O(log(N))
18+
/// slightly different trade-offs: lookup, insertion, and removal are O(log(N))
1919
/// and elements can be iterated in order cheaply.
2020
///
2121
/// `SortedMap` can be faster than a `BTreeMap` for small sizes (<50) since it

src/librustc_driver/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -643,8 +643,8 @@ impl Compilation {
643643
}
644644
}
645645

646-
/// A trait for customising the compilation process. Offers a number of hooks for
647-
/// executing custom code or customising input.
646+
/// A trait for customizing the compilation process. Offers a number of hooks for
647+
/// executing custom code or customizing input.
648648
pub trait CompilerCalls<'a> {
649649
/// Hook for a callback early in the process of handling arguments. This will
650650
/// be called straight after options have been parsed but before anything

src/librustc_incremental/persist/dirty_clean.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const LABELS_FN_IN_TRAIT: &[&[&str]] = &[
160160
EXTRA_TRAIT,
161161
];
162162

163-
/// For generic cases like inline-assemply/mod/etc
163+
/// For generic cases like inline-assembly/mod/etc
164164
const LABELS_HIR_ONLY: &[&[&str]] = &[
165165
BASE_HIR,
166166
];

src/librustc_lint/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ declare_lint! {
14861486
"detects edition keywords being used as an identifier"
14871487
}
14881488

1489-
/// Checks for uses of edtion keywords used as an identifier
1489+
/// Checks for uses of edition keywords used as an identifier
14901490
#[derive(Clone)]
14911491
pub struct KeywordIdents;
14921492

src/librustc_mir/borrow_check/nll/type_check/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ mod relate_tys;
112112
/// - `liveness` -- results of a liveness computation on the MIR; used to create liveness
113113
/// constraints for the regions in the types of variables
114114
/// - `flow_inits` -- results of a maybe-init dataflow analysis
115-
/// - `move_data` -- move-data constructed when performing the maybe-init dataflow analysiss
115+
/// - `move_data` -- move-data constructed when performing the maybe-init dataflow analysis
116116
pub(crate) fn type_check<'gcx, 'tcx>(
117117
infcx: &InferCtxt<'_, 'gcx, 'tcx>,
118118
param_env: ty::ParamEnv<'gcx>,

src/librustc_mir/borrow_check/places_conflict.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ struct PlaceComponents<'p, 'tcx: 'p> {
262262
impl<'p, 'tcx> PlaceComponents<'p, 'tcx> {
263263
/// Converts a list of `Place` components into an iterator; this
264264
/// iterator yields up a never-ending stream of `Option<&Place>`.
265-
/// These begin with the "innermst" place and then with each
265+
/// These begin with the "innermost" place and then with each
266266
/// projection therefrom. So given a place like `a.b.c` it would
267267
/// yield up:
268268
///

src/librustc_mir/build/matches/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use std::cmp::Ordering;
3131
impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
3232
/// Identifies what test is needed to decide if `match_pair` is applicable.
3333
///
34-
/// It is a bug to call this with a simplifyable pattern.
34+
/// It is a bug to call this with a simplifiable pattern.
3535
pub fn test<'pat>(&mut self, match_pair: &MatchPair<'pat, 'tcx>) -> Test<'tcx> {
3636
match *match_pair.pattern.kind {
3737
PatternKind::Variant { ref adt_def, substs: _, variant_index: _, subpatterns: _ } => {

0 commit comments

Comments
 (0)