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