Skip to content

Commit

Permalink
rename RangeArgument->RangeBounds
Browse files Browse the repository at this point in the history
The collections_range FPC closed,
with the decision to rename to RangeBounds::start_bound().

rust-lang/rust#30877
  • Loading branch information
coryshrmn committed May 24, 2018
1 parent b903d1c commit 3736926
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/ui/needless_pass_by_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ trait FalsePositive {
// shouldn't warn on extern funcs
extern "C" fn ext(x: String) -> usize { x.len() }

// whitelist RangeArgument
fn range<T: ::std::collections::range::RangeArgument<usize>>(range: T) {
let _ = range.start();
// whitelist RangeBounds
fn range<T: ::std::ops::RangeBounds<usize>>(range: T) {
let _ = range.start_bound();
}

struct CopyWrapper(u32);
Expand Down

0 comments on commit 3736926

Please sign in to comment.