mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
fix some typos
This commit is contained in:
parent
b1ab3b738a
commit
62a2a1d257
@ -27,7 +27,7 @@ pub struct SsoHashSet<T> {
|
||||
map: SsoHashMap<T, ()>,
|
||||
}
|
||||
|
||||
/// Adapter function used ot return
|
||||
/// Adapter function used to return
|
||||
/// result if SsoHashMap functions into
|
||||
/// result SsoHashSet should return.
|
||||
#[inline(always)]
|
||||
|
@ -51,7 +51,7 @@ impl<'tcx> TyCtxt<'tcx> {
|
||||
|
||||
match ty::Instance::resolve_opt_const_arg(
|
||||
self, param_env,
|
||||
// FIXME: maybe have a seperate version for resolving mir::UnevaluatedConst?
|
||||
// FIXME: maybe have a separate version for resolving mir::UnevaluatedConst?
|
||||
ct.def, ct.substs,
|
||||
) {
|
||||
Ok(Some(instance)) => {
|
||||
|
@ -264,7 +264,7 @@ fn project_and_unify_type<'cx, 'tcx>(
|
||||
};
|
||||
debug!(?normalized, ?obligations, "project_and_unify_type result");
|
||||
let actual = obligation.predicate.term;
|
||||
// For an example where this is neccessary see src/test/ui/impl-trait/nested-return-type2.rs
|
||||
// For an example where this is necessary see src/test/ui/impl-trait/nested-return-type2.rs
|
||||
// This allows users to omit re-mentioning all bounds on an associated type and just use an
|
||||
// `impl Trait` for the assoc type to add more bounds.
|
||||
let InferOk { value: actual, obligations: new } =
|
||||
|
@ -1,7 +1,7 @@
|
||||
// check-fail
|
||||
// known-bug
|
||||
|
||||
// We almost certaintly want this to pass, but
|
||||
// We almost certainly want this to pass, but
|
||||
// it's particularly difficult currently, because we need a way of specifying
|
||||
// that `<Self::Base as Functor>::With<T> = Self` without using that when we have
|
||||
// a `U`. See `https://github.com/rust-lang/rust/pull/92728` for a (hacky)
|
||||
|
@ -11,7 +11,7 @@ fn main() {
|
||||
|
||||
// Ensure that uninhabited types do not "diverge".
|
||||
// This might be relaxed in the future, but when it is,
|
||||
// it should be an explicitly wanted descision.
|
||||
// it should be an explicitly wanted decision.
|
||||
let Some(x) = Some(1) else { foo::<Uninhabited>() }; //~ ERROR does not diverge
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/multiple-occurence-ambiguousity.rs:21:26
|
||||
--> $DIR/multiple-occurrence-ambiguousity.rs:21:26
|
||||
|
|
||||
LL | let t: &dyn Bar<_> = s;
|
||||
| ----------- ^ expected trait `Bar`, found trait `Foo`
|
Loading…
Reference in New Issue
Block a user