Skip to content

Commit 3736926

Browse files
committed
rename RangeArgument->RangeBounds
The collections_range FPC closed, with the decision to rename to RangeBounds::start_bound(). rust-lang/rust#30877
1 parent b903d1c commit 3736926

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/ui/needless_pass_by_value.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ trait FalsePositive {
115115
// shouldn't warn on extern funcs
116116
extern "C" fn ext(x: String) -> usize { x.len() }
117117

118-
// whitelist RangeArgument
119-
fn range<T: ::std::collections::range::RangeArgument<usize>>(range: T) {
120-
let _ = range.start();
118+
// whitelist RangeBounds
119+
fn range<T: ::std::ops::RangeBounds<usize>>(range: T) {
120+
let _ = range.start_bound();
121121
}
122122

123123
struct CopyWrapper(u32);

0 commit comments

Comments
 (0)