Make a bunch of trivial methods of NonNull be #[inline]#55426
Merged
bors merged 1 commit intorust-lang:masterfrom Oct 29, 2018
Merged
Make a bunch of trivial methods of NonNull be #[inline]#55426bors merged 1 commit intorust-lang:masterfrom
#[inline]#55426bors merged 1 commit intorust-lang:masterfrom
Conversation
Contributor
|
Looks good, thanks! @bors r+ rollup |
Collaborator
|
📌 Commit dc77d49 has been approved by |
emilyalbini
added a commit
to emilyalbini/rust
that referenced
this pull request
Oct 29, 2018
Make a bunch of trivial methods of NonNull be `#[inline]` I was seeing super trivial methods not getting inlined in some of my builds, so I went ahead and just marked all the methods inline where it seemed appropriate. r? @SimonSapin
bors
added a commit
that referenced
this pull request
Oct 29, 2018
Rollup of 9 pull requests Successful merges: - #54965 (update tcp stream documentation) - #55269 (fix typos in various places) - #55384 (Avoid unnecessary allocations in `float_lit` and `integer_lit`.) - #55423 (back out bogus `Ok`-wrapping suggestion on `?` arm type mismatch) - #55426 (Make a bunch of trivial methods of NonNull be `#[inline]`) - #55438 (Avoid directly catching BaseException in bootstrap configure script) - #55439 (Remove unused sys import from generate-deriving-span-tests) - #55440 (Remove unreachable code in hasClass function in Rustdoc) - #55447 (Fix invalid path in generate-deriving-span-tests.py.) Failed merges: r? @ghost
Member
|
These are all generic, aren't they? I thought we didn't usually mark generics are inline... |
Contributor
|
IIRC being generic makes metadata (MIR?) available to other crates such that cross-crate inlining is possible. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I was seeing super trivial methods not getting inlined in some of my builds, so I went ahead and just marked all the methods inline where it seemed appropriate.
r? @SimonSapin