about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJannis Christopher Köhl <mail@koehl.dev>2022-11-07 10:33:28 +0100
committerJannis Christopher Köhl <mail@koehl.dev>2022-11-07 10:35:26 +0100
commit89f934917da364d1b9e32dc57a085014a6465bfb (patch)
tree7b9b24e0490d986513dbaa7dbdfa73cfc01ecfa2
parent72196ee6661a38cb640d66c2a8d9941f9d6c6bf4 (diff)
downloadrust-89f934917da364d1b9e32dc57a085014a6465bfb.tar.gz
rust-89f934917da364d1b9e32dc57a085014a6465bfb.zip
Small corrections of documentation
-rw-r--r--compiler/rustc_mir_dataflow/src/value_analysis.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_mir_dataflow/src/value_analysis.rs b/compiler/rustc_mir_dataflow/src/value_analysis.rs
index 8e0fc77ec99..2c631a937b6 100644
--- a/compiler/rustc_mir_dataflow/src/value_analysis.rs
+++ b/compiler/rustc_mir_dataflow/src/value_analysis.rs
@@ -560,12 +560,12 @@ impl<V: Clone + HasTop + HasBottom> State<V> {
         }
     }
 
-    /// Retrieve the value stored for a place, or ⊥ if it is not tracked.
+    /// Retrieve the value stored for a place, or ⊤ if it is not tracked.
     pub fn get(&self, place: PlaceRef<'_>, map: &Map) -> V {
         map.find(place).map(|place| self.get_idx(place, map)).unwrap_or(V::top())
     }
 
-    /// Retrieve the value stored for a place index, or ⊥ if it is not tracked.
+    /// Retrieve the value stored for a place index, or ⊤ if it is not tracked.
     pub fn get_idx(&self, place: PlaceIndex, map: &Map) -> V {
         match &self.0 {
             StateData::Reachable(values) => {
@@ -652,7 +652,7 @@ impl Map {
         mut filter: impl FnMut(Ty<'tcx>) -> bool,
         exclude: &FxHashSet<Place<'tcx>>,
     ) {
-        // This is used to tell whether a type is `!Freeze`.
+        // This is used to tell whether a type is `Freeze`.
         let param_env = tcx.param_env_reveal_all_normalized(body.source.def_id());
 
         let mut projection = Vec::new();