Skip to content

Commit ae907df

Browse files
committed
make RangeArgument #[fundamental]
This is necessary so that crates outside of libcore (e.g. libcollections) are allowed to write both `impl Index<usize> for _` and `impl<R: RangeArgument<usize>> Index<R> for _` without getting overlap errors (essentially, to assume that `usize: !RangeArgument<usize>`).
1 parent e157fa3 commit ae907df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/ops.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1896,6 +1896,7 @@ pub trait BoxPlace<Data: ?Sized> : Place<Data> {
18961896
#[unstable(feature = "collections_range",
18971897
reason = "waiting for dust to settle on inclusive ranges",
18981898
issue = "30877")]
1899+
#[fundamental]
18991900
pub trait RangeArgument<T> {
19001901
/// Start index (inclusive)
19011902
///

0 commit comments

Comments
 (0)