-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
The war of symbol and symbol (the PR dedicated to duplicate symbols breaking rustc in unexpected ways) #23011
Merged
Commits on Apr 3, 2015
-
It emits the same symbol – `transmute` – from the same crate twice.
Configuration menu - View commit details
-
Copy full SHA for b9a11f0 - Browse repository at this point
Copy the full SHA b9a11f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 723ca4b - Browse repository at this point
Copy the full SHA 723ca4bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2198969 - Browse repository at this point
Copy the full SHA 2198969View commit details -
Abort creating wrapper fn for multiple inner fns
This discovers another class of mis-trans where we wrap multiple native functions into a single wrapper, which is wrong.
Configuration menu - View commit details
-
Copy full SHA for baa52ca - Browse repository at this point
Copy the full SHA baa52caView commit details -
Configuration menu - View commit details
-
Copy full SHA for d36c4db - Browse repository at this point
Copy the full SHA d36c4dbView commit details -
Extract attribute handling code into a module
This commit causes no change in trans semantics, it just moves some functions around and deduplicates them.
Configuration menu - View commit details
-
Copy full SHA for c71970e - Browse repository at this point
Copy the full SHA c71970eView commit details -
Move get_extern_fn and get_res_dtor out of base
These functions have only a single use and functionally belong to foreign and glue respectively anyway
Configuration menu - View commit details
-
Copy full SHA for cb45703 - Browse repository at this point
Copy the full SHA cb45703View commit details -
Configuration menu - View commit details
-
Copy full SHA for deb097a - Browse repository at this point
Copy the full SHA deb097aView commit details -
Configuration menu - View commit details
-
Copy full SHA for caea044 - Browse repository at this point
Copy the full SHA caea044View commit details -
We provide tools to tell what exact symbols to emit for any fn or static, but don’t quite check if that won’t cause any issues later on. Some of the issues include LLVM mangling our names again and our names pointing to wrong locations, us generating dumb foreign call wrappers, linker errors, extern functions resolving to different symbols altogether (extern {fn fail();} fail(); in some cases calling fail1()), etc. Before the commit we had a function called note_unique_llvm_symbol, so it is clear somebody was aware of the issue at some point, but the function was barely used, mostly in irrelevant locations. Along with working on it I took liberty to start refactoring trans/base into a few smaller modules. The refactoring is incomplete and I hope I will find some motivation to carry on with it. This is possibly a [breaking-change] because it makes dumbly written code properly invalid.
Configuration menu - View commit details
-
Copy full SHA for f1dabed - Browse repository at this point
Copy the full SHA f1dabedView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8943709 - Browse repository at this point
Copy the full SHA 8943709View commit details -
Configuration menu - View commit details
-
Copy full SHA for d8d59a9 - Browse repository at this point
Copy the full SHA d8d59a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for ea04cdf - Browse repository at this point
Copy the full SHA ea04cdfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 000db38 - Browse repository at this point
Copy the full SHA 000db38View commit details
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.