Rollup merge of #134957 - peicuiping:master, r=lqd

chore: fix some typos
This commit is contained in:
Jacob Pratt 2024-12-31 03:38:04 -05:00 committed by GitHub
commit 77926e68d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View file

@ -21,7 +21,7 @@
/// }
/// ```
///
/// But this shoudln't produce a warning:
/// But this shouldn't produce a warning:
/// ```rust,no_run
/// # extern crate pub_trait;
/// # use pub_trait::Trait;

View file

@ -6,7 +6,7 @@ fn func(func_arg: &mut V) {
|| {
// Declaring `x` separately instead of using
// a destructuring binding like `let V(x) = ...`
// becaue only `V(x) = ...` triggers the ICE
// because only `V(x) = ...` triggers the ICE
let x;
V(x) = func_arg; //~ ERROR: mismatched types
func_arg.0 = 0;

View file

@ -6,7 +6,7 @@
// to process this `'r` region bound. In particular, to be WF, the
// region bound must meet the requirements of the trait, and hence we
// got `for<'r> { 'r: 'static }`. This would ICE because the `Binder`
// constructor we were using was assering that no higher-ranked
// constructor we were using was asserting that no higher-ranked
// regions were involved (because the WF code is supposed to skip
// those). The error (if debug-asserions were disabled) came because
// we obviously cannot prove that `'r: 'static` for any region `'r`.

View file

@ -17,7 +17,7 @@
// `__rust_{begin,end}_short_backtrace` markers, which only appear in full
// backtraces. The rest of the backtrace is filtered out.
//
// Ignored on msvc becaue the `__rust_{begin,end}_short_backtrace` symbols
// Ignored on msvc because the `__rust_{begin,end}_short_backtrace` symbols
// aren't reliable.
fn main() { missing_ident; }