Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 89f9349

Browse files
committed
Small corrections of documentation
1 parent 72196ee commit 89f9349

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_mir_dataflow/src/value_analysis.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -560,12 +560,12 @@ impl<V: Clone + HasTop + HasBottom> State<V> {
560560
}
561561
}
562562

563-
/// Retrieve the value stored for a place, or if it is not tracked.
563+
/// Retrieve the value stored for a place, or if it is not tracked.
564564
pub fn get(&self, place: PlaceRef<'_>, map: &Map) -> V {
565565
map.find(place).map(|place| self.get_idx(place, map)).unwrap_or(V::top())
566566
}
567567

568-
/// Retrieve the value stored for a place index, or if it is not tracked.
568+
/// Retrieve the value stored for a place index, or if it is not tracked.
569569
pub fn get_idx(&self, place: PlaceIndex, map: &Map) -> V {
570570
match &self.0 {
571571
StateData::Reachable(values) => {
@@ -652,7 +652,7 @@ impl Map {
652652
mut filter: impl FnMut(Ty<'tcx>) -> bool,
653653
exclude: &FxHashSet<Place<'tcx>>,
654654
) {
655-
// This is used to tell whether a type is `!Freeze`.
655+
// This is used to tell whether a type is `Freeze`.
656656
let param_env = tcx.param_env_reveal_all_normalized(body.source.def_id());
657657

658658
let mut projection = Vec::new();

0 commit comments

Comments
 (0)