Skip to content

auto-ref and auto-slice should not be mutually exclusive #3514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nikomatsakis opened this issue Sep 17, 2012 · 0 comments
Closed

auto-ref and auto-slice should not be mutually exclusive #3514

nikomatsakis opened this issue Sep 17, 2012 · 0 comments
Labels
A-type-system Area: Type system

Comments

@nikomatsakis
Copy link
Contributor

Right now, if the method lookup encounters a type ~str, it will attempt to "auto-slice" it to &str, but it will not attempt to "auto-ref" to &mut ~str. This hinders us from defining methods like push_str() on strings and vectors. There is no deep reason, I just didn't see why it'd be useful. But it is.

RalfJung pushed a commit to RalfJung/rust that referenced this issue Apr 25, 2024
CI: run benches with hyperfine rather than bash

The hyperfine installation is cached so this should not cost a lot of CI time.

This is step 1/2 to getting rid of the BASH variable hack.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-type-system Area: Type system
Projects
None yet
Development

No branches or pull requests

1 participant