Skip to content
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

minor improvements everywhere #18

Merged
merged 9 commits into from
Mar 19, 2020
Merged

Conversation

CAD97
Copy link
Collaborator

@CAD97 CAD97 commented Mar 14, 2020

Because none of this was quite specific enough to break into its own PR

  • Update translation docs
  • Officially compiler_error!-forbid cfg(target_pointer_width = "16")
  • TextRange::before (alt options: TextRange::to, TextRange::up_to, TextRangeTo, TextSize::prefix)
  • TextRange::after (alt options: TextSize::suffix)
  • TextRange::offset (alt options: TextRange::add, Add::add, TextRange::reanchor)
  • TextSize::one (alt options: )
  • TextSize::ONE (alt options: TextSize::ASCII
  • #[inline] capability for a bunch of things

This PR is mainly just to get opinions on all of these little things, then I'll re-force-push with a commit just with those.

@CAD97
Copy link
Collaborator Author

CAD97 commented Mar 14, 2020

I consider TextRange::after good enough to close #15.

@CAD97 CAD97 linked an issue Mar 14, 2020 that may be closed by this pull request
@CAD97 CAD97 force-pushed the minor-changes-0 branch from 04eca43 to 2c09462 Compare March 15, 2020 01:57
@CAD97 CAD97 marked this pull request as ready for review March 15, 2020 02:15
@CAD97 CAD97 requested a review from matklad March 15, 2020 02:15
@matklad
Copy link
Member

matklad commented Mar 15, 2020 via email

@CAD97 CAD97 force-pushed the minor-changes-0 branch from 22d0418 to f9d7005 Compare March 18, 2020 21:21
@matklad
Copy link
Member

matklad commented Mar 19, 2020

it would have made sense to send #[inline] and API changes in separate PRs :D It's important to separate bikeshedable and non-bikeshedable changes.

@CAD97
Copy link
Collaborator Author

CAD97 commented Mar 19, 2020

separate PRs

Yeah I know I just sort of ended up lumping everything in this PR by accident.

@CAD97
Copy link
Collaborator Author

CAD97 commented Mar 19, 2020

I think I've pruned this back to the approved changes now.

@CAD97 CAD97 removed a link to an issue Mar 19, 2020
@matklad
Copy link
Member

matklad commented Mar 19, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 19, 2020

Build succeeded

@bors bors bot merged commit 4b68ff2 into rust-analyzer:master Mar 19, 2020
@CAD97 CAD97 deleted the minor-changes-0 branch March 19, 2020 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants