@@ -1921,7 +1921,7 @@ pub struct CopyNonOverlapping<'tcx> {
1921
1921
/// pointee type is unsized, the pointer additionally stored the value of the metadata.
1922
1922
///
1923
1923
/// Computing a place may cause UB. One possibility is that the pointer used for a `Deref` may not
1924
- /// be suitably aligned. Another possibility is that the place is not in bouns , meaning it does not
1924
+ /// be suitably aligned. Another possibility is that the place is not in bounds , meaning it does not
1925
1925
/// point to an actual allocation.
1926
1926
///
1927
1927
/// However, if this is actually UB and when the UB kicks in is undecided. This is being discussed
@@ -2315,10 +2315,9 @@ pub struct SourceScopeLocalData {
2315
2315
/// This is what is implemented in miri today. Are these the semantics we want for MIR? Is this
2316
2316
/// something we can even decide without knowing more about Rust's memory model?
2317
2317
///
2318
- /// Loading a place that has its variant index set is not well-formed. However, note that this rule
2319
- /// only applies to places appearing in MIR bodies. Many functions, such as [`Place::ty`], still
2320
- /// accept such a place. If you write a function for which it might be ambiguous whether such a
2321
- /// thing is accepted, make sure to document your choice clearly.
2318
+ /// **Needs clarifiation:** Is loading a place that has its variant index set well-formed? Miri
2319
+ /// currently implements it, but it seems like this may be something to check against in the
2320
+ /// validator.
2322
2321
#[ derive( Clone , PartialEq , TyEncodable , TyDecodable , Hash , HashStable ) ]
2323
2322
pub enum Operand < ' tcx > {
2324
2323
/// Creates a value by loading the given place. The type of the place must be `Copy`
0 commit comments