Skip to content

Commit 85b0950

Browse files
committed
Fix some comments
Signed-off-by: pwdcd <[email protected]>
1 parent 6f2ca60 commit 85b0950

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

compiler/rustc_abi/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1806,7 +1806,7 @@ pub struct PointeeInfo {
18061806
pub safe: Option<PointerKind>,
18071807
/// If `safe` is `Some`, then the pointer is either null or dereferenceable for this many bytes.
18081808
/// On a function argument, "dereferenceable" here means "dereferenceable for the entire duration
1809-
/// of this function call", i.e. it is UB for the memory that this pointer points to to be freed
1809+
/// of this function call", i.e. it is UB for the memory that this pointer points to be freed
18101810
/// while this function is still running.
18111811
/// The size can be zero if the pointer is not dereferenceable.
18121812
pub size: Size,

compiler/rustc_hir_typeck/src/pat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2640,7 +2640,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
26402640
detailed_label: &str,
26412641
) {
26422642
// Try to trim the span we're labeling to just the `&` or binding mode that's an issue.
2643-
// If the subpattern's span is is from an expansion, the emitted label will not be trimmed.
2643+
// If the subpattern's span is from an expansion, the emitted label will not be trimmed.
26442644
let source_map = self.tcx.sess.source_map();
26452645
let cutoff_span = source_map
26462646
.span_extend_prev_while(cutoff_span, char::is_whitespace)

compiler/rustc_middle/src/mir/syntax.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ pub enum MirPhase {
7474
/// - Unwinding: in analysis MIR, unwinding from a function which may not unwind aborts. In runtime
7575
/// MIR, this is UB.
7676
/// - Retags: If `-Zmir-emit-retag` is enabled, analysis MIR has "implicit" retags in the same way
77-
/// that Rust itself has them. Where exactly these are is generally subject to change, and so we
77+
/// that Rust itself has them. Where exactly these are generally subject to change, and so we
7878
/// don't document this here. Runtime MIR has most retags explicit (though implicit retags
7979
/// can still occur at `Rvalue::{Ref,AddrOf}`).
8080
/// - Coroutine bodies: In analysis MIR, locals may actually be behind a pointer that user code has

src/doc/rustc-dev-guide/src/solve/opaque-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ For opaque types in the defining scope and in the implicit-negative coherence mo
3333
always done in two steps. Outside of the defining scope `normalizes-to` for opaques always
3434
returns `Err(NoSolution)`.
3535

36-
We start by trying to to assign the expected type as a hidden type.
36+
We start by trying to assign the expected type as a hidden type.
3737

3838
In the implicit-negative coherence mode, this currently always results in ambiguity without
3939
interacting with the opaque types storage. We could instead add allow 'defining' all opaque types,

0 commit comments

Comments
 (0)