Deduplicate InstrumentFnAttr - #162097
Merged
Merged
Conversation
Collaborator
|
Some changes occurred in compiler/rustc_attr_ir cc @jdonszelmann, @JonathanBrouwer These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
Collaborator
|
rustbot has assigned @dingxiangfei2009. Use Why was this reviewer chosen?The reviewer was selected based on:
|
JonathanBrouwer
approved these changes
Sep 1, 2026
Member
There was a problem hiding this comment.
@bors r+ rollup
Thanks, less duplicated code makes me happy!
Contributor
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Sep 1, 2026
…Brouwer Deduplicate `InstrumentFnAttr` cc @pmur Instead of having a `Default` variant (which can't be specified in the attribute, it only does on/off), use an Option to model "no attribute used".
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Sep 1, 2026
…Brouwer Deduplicate `InstrumentFnAttr` cc @pmur Instead of having a `Default` variant (which can't be specified in the attribute, it only does on/off), use an Option to model "no attribute used".
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Sep 1, 2026
…Brouwer Deduplicate `InstrumentFnAttr` cc @pmur Instead of having a `Default` variant (which can't be specified in the attribute, it only does on/off), use an Option to model "no attribute used".
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Sep 1, 2026
…Brouwer Deduplicate `InstrumentFnAttr` cc @pmur Instead of having a `Default` variant (which can't be specified in the attribute, it only does on/off), use an Option to model "no attribute used".
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Sep 1, 2026
…Brouwer Deduplicate `InstrumentFnAttr` cc @pmur Instead of having a `Default` variant (which can't be specified in the attribute, it only does on/off), use an Option to model "no attribute used".
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Sep 1, 2026
…Brouwer Deduplicate `InstrumentFnAttr` cc @pmur Instead of having a `Default` variant (which can't be specified in the attribute, it only does on/off), use an Option to model "no attribute used".
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Sep 1, 2026
…Brouwer Deduplicate `InstrumentFnAttr` cc @pmur Instead of having a `Default` variant (which can't be specified in the attribute, it only does on/off), use an Option to model "no attribute used".
rust-bors Bot
pushed a commit
that referenced
this pull request
Sep 1, 2026
…uwer Rollup of 16 pull requests Successful merges: - #137720 (support `#[target_feature(enable = ...)]` on `#[naked]` functions) - #160534 (stabilize smart pointer map functions) - #160551 (mir_build: Clearly distinguish or/refutable/irrefutable patterns during match lowering) - #160989 (Make sin, cos, exp, exp2, log, log2, log10 generic) - #161861 (mir_build: Clarify parts of if-condition lowering) - #161929 (explicitly track inherent const generic args kind) - #162040 (bootstrap: stage0 to cbae9b4) - #162063 (Switch dist-aarch64-linux to EC2 and update dist-x86_64-linux) - #161353 (Add test for parallel compiler reproducible build) - #161937 (A series of Polonius Alpha refactors) - #162051 (`rustc_feature` cleanups) - #162055 (remove `_{style}` recovery for diagnostic structs) - #162075 (Move track_caller on closures gating to attribute parsing) - #162079 (std: implement `File::fsync` for Hermit) - #162097 (Deduplicate `InstrumentFnAttr`) - #162115 (fix typo in feature documentation)
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.
cc @pmur
Instead of having a
Defaultvariant (which can't be specified in the attribute, it only does on/off), use an Option to model "no attribute used".