Skip to content

mark glue functions with unnamed_addr - #6787

Closed
thestinger wants to merge 2 commits into
rust-lang:incomingfrom
thestinger:unnamed_addr
Closed

mark glue functions with unnamed_addr#6787
thestinger wants to merge 2 commits into
rust-lang:incomingfrom
thestinger:unnamed_addr

Conversation

@thestinger

Copy link
Copy Markdown
Contributor

This doesn't do anything with our current LLVM passes, but it's easy to do, and with -mergefunc enabled it no longer has to output stubs to maintain addresses for each glue function.

Comment thread src/librustc/lib/llvm.rs

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this follow the same convention as all the other bindings? That is SetUnnamedAddr

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, that seems like a legacy wart since we're using that convention for types now. I'm open to changing it though if we really want to be using that convention.

@thestinger thestinger closed this May 29, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Mar 11, 2021
tests: add test that roughly ensures that our lint messages conform with the diagnostics convention of the rustc dev guide

lint message should not start with uppercase letters
lint messages should not have punctuation at the end of the last line

https://rustc-dev-guide.rust-lang.org/diagnostics.html#diagnostic-structure

The test reads through all the .stderr files in the testsuit and checks lint messages that start with "help: ", "error: " etc.
There is also an exception list for special messages that are deemed acceptable.

changelog: make sure lint messages conform with the rustc dev guide and add test
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
6907: Lifetime reference search  r=matklad a=Veykril

PR rust-lang#6787 but rewritten to make use of the HIR now. This only applies to Lifetimes, not labels. Also Higher-Ranked Trait Bounds aren't supported yet, but I feel like this PR is big enough as is which is why I left them out after noticing I forgot about them.

Supporting renaming required slight changes in the renaming module as lifetime names aren't allowed for anything but lifetimes(and labels) and vice versa for normal names.

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants