1
Fork 0

Rollup merge of #110153 - DaniPopes:compiler-typos, r=Nilstrieb

Fix typos in compiler

I ran [`typos -w compiler`](https://github.com/crate-ci/typos) to fix typos in the `compiler` directory.

Refs #110150
This commit is contained in:
Matthias Krüger 2023-04-12 20:56:21 +02:00 committed by GitHub
commit 331e7c3659
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
70 changed files with 138 additions and 136 deletions

View file

@ -58,7 +58,7 @@ impl<'tcx> Bounds<'tcx> {
pub fn push_sized(&mut self, tcx: TyCtxt<'tcx>, ty: Ty<'tcx>, span: Span) {
let sized_def_id = tcx.require_lang_item(LangItem::Sized, Some(span));
let trait_ref = ty::Binder::dummy(tcx.mk_trait_ref(sized_def_id, [ty]));
// Preferrable to put this obligation first, since we report better errors for sized ambiguity.
// Preferable to put this obligation first, since we report better errors for sized ambiguity.
self.predicates.insert(0, (trait_ref.without_const().to_predicate(tcx), span));
}