Skip to content

Commit 7889a89

Browse files
committed
Address comments
1 parent 745bbaf commit 7889a89

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

library/core/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@
230230
#![feature(unboxed_closures)]
231231
#![feature(unsized_fn_params)]
232232
#![feature(with_negative_coherence)]
233+
// Required for Kani loop contracts, which are annotated as custom stmt attributes.
233234
#![feature(proc_macro_hygiene)]
234235
// tidy-alphabetical-end
235236
//

library/core/src/str/lossy.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ impl<'a> Iterator for Utf8Chunks<'a> {
209209
let mut valid_up_to = 0;
210210
// TODO: remove `LEN` and use `self.source.len()` directly once
211211
// fix the issue that Kani loop contracts doesn't support `self`.
212+
// Tracked in https://github.com/model-checking/kani/issues/3700
212213
#[cfg(kani)]
213214
let LEN = self.source.len();
214215
#[safety::loop_invariant(i <= LEN && valid_up_to == i)]
@@ -301,9 +302,7 @@ impl FusedIterator for Utf8Chunks<'_> {}
301302
#[stable(feature = "utf8_chunks", since = "1.79.0")]
302303
impl fmt::Debug for Utf8Chunks<'_> {
303304
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
304-
f.debug_struct("Utf8Chunks")
305-
.field("source", &self.debug())
306-
.finish()
305+
f.debug_struct("Utf8Chunks").field("source", &self.debug()).finish()
307306
}
308307
}
309308

0 commit comments

Comments
 (0)