Skip to content

Commit 81083b9

Browse files
authored
Rollup merge of #95461 - nyurik:spelling, r=lcnr
Spellchecking some comments This PR attempts to clean up some minor spelling mistakes in comments
2 parents c519b85 + 74edcb8 commit 81083b9

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ A secondary goal is to check if using the gcc backend will provide any run-time
1212
## Building
1313

1414
**This requires a patched libgccjit in order to work.
15-
The patches in [this repostory](https://github.com/antoyo/libgccjit-patches) need to be applied.
15+
The patches in [this repository](https://github.com/antoyo/libgccjit-patches) need to be applied.
1616
(Those patches should work when applied on master, but in case it doesn't work, they are known to work when applied on 079c23cfe079f203d5df83fea8e92a60c7d7e878.)
1717
You can also use my [fork of gcc](https://github.com/antoyo/gcc) which already includes these patches.**
1818

example/arbitrary_self_types_pointers_and_wrappers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ impl<T: DispatchFromDyn<U>, U> DispatchFromDyn<Wrapper<U>> for Wrapper<T> {}
3737

3838
trait Trait {
3939
// This method isn't object-safe yet. Unsized by-value `self` is object-safe (but not callable
40-
// without unsized_locals), but wrappers arond `Self` currently are not.
40+
// without unsized_locals), but wrappers around `Self` currently are not.
4141
// FIXME (mikeyhew) uncomment this when unsized rvalues object-safety is implemented
4242
// fn wrapper(self: Wrapper<Self>) -> i32;
4343
fn ptr_wrapper(self: Ptr<Wrapper<Self>>) -> i32;

src/builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
508508
}
509509

510510
fn exactsdiv(&mut self, a: RValue<'gcc>, b: RValue<'gcc>) -> RValue<'gcc> {
511-
// TODO(antoyo): posion if not exact.
511+
// TODO(antoyo): poison if not exact.
512512
// FIXME(antoyo): rustc_codegen_ssa::mir::intrinsic uses different types for a and b but they
513513
// should be the same.
514514
let typ = a.get_type().to_signed(self);
@@ -1252,7 +1252,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
12521252
}
12531253

12541254
fn do_not_inline(&mut self, _llret: RValue<'gcc>) {
1255-
// FIMXE(bjorn3): implement
1255+
// FIXME(bjorn3): implement
12561256
}
12571257

12581258
fn set_span(&mut self, _span: Span) {}

src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ pub struct CodegenCx<'gcc, 'tcx> {
110110
/// NOTE: a hack is used because the rustc API is not suitable to libgccjit and as such,
111111
/// `const_undef()` returns struct as pointer so that they can later be assigned a value.
112112
/// As such, this set remembers which of these pointers were returned by this function so that
113-
/// they can be deferenced later.
113+
/// they can be dereferenced later.
114114
/// FIXME(antoyo): fix the rustc API to avoid having this hack.
115115
pub structs_as_pointer: RefCell<FxHashSet<RValue<'gcc>>>,
116116
}

src/intrinsic/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ impl<'a, 'gcc, 'tcx> IntrinsicCallMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {
340340
}
341341

342342
fn assume(&mut self, value: Self::Value) {
343-
// TODO(antoyo): switch to asumme when it exists.
343+
// TODO(antoyo): switch to assume when it exists.
344344
// Or use something like this:
345345
// #define __assume(cond) do { if (!(cond)) __builtin_unreachable(); } while (0)
346346
self.expect(value, true);

0 commit comments

Comments
 (0)