File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
rustc_error_codes/src/error_codes Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1828,7 +1828,7 @@ pub struct PointeeInfo {
18281828 pub safe : Option < PointerKind > ,
18291829 /// If `safe` is `Some`, then the pointer is either null or dereferenceable for this many bytes.
18301830 /// On a function argument, "dereferenceable" here means "dereferenceable for the entire duration
1831- /// of this function call", i.e. it is UB for the memory that this pointer points to to be freed
1831+ /// of this function call", i.e. it is UB for the memory that this pointer points to be freed
18321832 /// while this function is still running.
18331833 /// The size can be zero if the pointer is not dereferenceable.
18341834 pub size : Size ,
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ impl<'a> Contains for Foo {
195195Please note that unconstrained lifetime parameters are not supported if they are
196196being used by an associated type.
197197
198- In cases where the associated type's lifetime is meant to be tied to the the
198+ In cases where the associated type's lifetime is meant to be tied to the
199199self type, and none of the methods on the trait need ownership or different
200200mutability, then an option is to implement the trait on a borrowed type:
201201
Original file line number Diff line number Diff line change @@ -427,7 +427,7 @@ pub unsafe trait CloneToUninit {
427427 /// read or dropped, because even if it was previously valid, it may have been partially
428428 /// overwritten.
429429 ///
430- /// The caller may wish to to take care to deallocate the allocation pointed to by `dest`,
430+ /// The caller may wish to take care to deallocate the allocation pointed to by `dest`,
431431 /// if applicable, to avoid a memory leak (but this is not a requirement).
432432 ///
433433 /// Implementors should avoid leaking values by, upon unwinding, dropping all component values
Original file line number Diff line number Diff line change @@ -1744,7 +1744,7 @@ pub(crate) mod builtin {
17441744 }
17451745
17461746 /// Provide a list of type aliases and other opaque-type-containing type definitions.
1747- /// This list will be used in the body of the item it is applied to to define opaque
1747+ /// This list will be used in the body of the item it is applied to define opaque
17481748 /// types' hidden types.
17491749 /// Can only be applied to things that have bodies.
17501750 #[ unstable(
You can’t perform that action at this time.
0 commit comments