optimize attribute applied to things other than methods/functions/c…#131814
optimize attribute applied to things other than methods/functions/c…#131814bors merged 1 commit intorust-lang:masterfrom
optimize attribute applied to things other than methods/functions/c…#131814Conversation
|
@rustbot label +T-compiler +T-lang |
|
@jieyouxu:
And niko said:
And speaking for T-lang, TC said:
So my understanding of the gestalt is that this attribute should
The former need not await the latter. |
|
Fair enough. In that sense I would recommend rejecting the mod case and only accept function-like targets. |
|
Note also the comment from pnkfelix here:
This would apply to nightly |
a75d7e6 to
1e79649
Compare
jieyouxu
left a comment
There was a problem hiding this comment.
Thanks, just one missing test case then r=me.
|
@rustbot author |
1e79649 to
080103f
Compare
|
Thank you for your mentorship in getting this thing in. Here's to future collaboration. @rustbot review |
|
@bors r+ rollup |
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#131814 (`optimize` attribute applied to things other than methods/functions/c…) - rust-lang#131927 (Check for filecheck directives in files marked `skip-filecheck`) - rust-lang#131967 (Remove `lower_mono_bounds`) - rust-lang#131973 (fix(rustdoc-json-types): document rustc-hash feature) - rust-lang#131976 (feat(rustdoc-json-types): mark simple enums as copy) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#131814 - Borgerr:misapplied-optimize-attribute, r=jieyouxu `optimize` attribute applied to things other than methods/functions/c… …losures gives an error (rust-lang#128488) Duplicate of rust-lang#128943, which I had accidentally closed when rebasing. cc. `@jieyouxu` `@compiler-errors` `@nikomatsakis` `@traviscross` `@pnkfelix.`
…losures gives an error (#128488)
Duplicate of #128943, which I had accidentally closed when rebasing.
cc. @jieyouxu @compiler-errors @nikomatsakis @traviscross @pnkfelix.