summary refs log tree commit diff
path: root/src/librustc_codegen_utils/symbol_names.rs
AgeCommit message (Collapse)AuthorLines
2019-02-08librustc_codegen_utils => 2018Taiki Endo-1/+3
2019-01-28SymbolPathBuffer shallow refactoringDenys Zariaiev-80/+76
2019-01-27Create `nvptx64-nvidia-cuda` target specificationDenys Zariaiev-15/+42
2019-01-13Querify local plugin_registrar_fnIgor Matuszewski-2/+2
2019-01-13Querify local proc_macro_decls_staticIgor Matuszewski-1/+1
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-1/+1
2018-12-06Use a function to access the Hir map to be able to turn it into a query laterJohn Kåre Alsaker-2/+2
2018-12-04cleanup: remove static lifetimes from constsljedrz-1/+1
2018-11-30proc_macro: introduce a "bridge" between clients (proc macros) and servers ↵Eduard-Mihai Burtescu-2/+2
(compiler front-ends).
2018-11-13fix various typos in doc commentsAndy Russell-1/+1
2018-10-24Include InstanceDef's discriminant in the symbol hash.Masaki Hara-2/+4
2018-10-24Distinguish vtable shims in symbol paths.Masaki Hara-1/+10
2018-10-02Attempt to resolve linking issues.David Wood-1/+1
This commit takes a different approach to add the `crate::` prefix to item paths than previous commits. Previously, recursion was stopped after a prelude crate name was pushed to the path. It is theorized that this was the cause of the linking issues since the same path logic is used for symbol names and that not recursing meant that details were being missed that affect symbol names. As of this commit, instead of ceasing recursion, a flag is passed through to any subsequent recursive calls so that the same effect can be achieved by checking that flag.
2018-10-02Add `crate::` to trait suggestions in Rust 2018.David Wood-0/+1
In the 2018 edition, when suggesting traits to import that implement a given method that is being invoked, suggestions will now include the `crate::` prefix if the suggested trait is local to the current crate.
2018-08-27Rename hir::map::NodeKind to hir::Nodevarkor-2/+2
2018-08-27Remove path prefixes from NodeKindvarkor-2/+2
2018-08-27Rename hir::map::Node to hir::map::NodeKindvarkor-1/+1
2018-08-26rustc: Continue to tweak "std internal symbols"Alex Crichton-10/+5
In investigating [an issue][1] with `panic_implementation` defined in an executable that's optimized I once again got to rethinking a bit about the `rustc_std_internal_symbol` attribute as well as weak lang items. We've sort of been non-stop tweaking these items ever since their inception, and this continues to the trend. The crux of the bug was that in the reachability we have a [different branch][2] for non-library builds which meant that weak lang items (and std internal symbols) weren't considered reachable, causing them to get eliminiated by ThinLTO passes. The fix was to basically tweak that branch to consider these symbols to ensure that they're propagated all the way to the linker. Along the way I've attempted to erode the distinction between std internal symbols and weak lang items by having weak lang items automatically configure fields of `CodegenFnAttrs`. That way most code no longer even considers weak lang items and they're simply considered normal functions with attributes about the ABI. In the end this fixes the final comment of #51342 [1]: https://github.com/rust-lang/rust/issues/51342#issuecomment-414368019 [2]: https://github.com/rust-lang/rust/blob/35bf1ae25799a4e62131159f052e0a3cbd27c960/src/librustc/middle/reachable.rs#L225-L238
2018-08-22Remove Ty prefix from ↵varkor-1/+1
Ty{Adt|Array|Slice|RawPtr|Ref|FnDef|FnPtr|Dynamic|Closure|Generator|GeneratorWitness|Never|Tuple|Projection|Anon|Infer|Error}
2018-08-04Move share_generics getter onto options directlyMark Rousskov-1/+1
2018-06-26migrate codebase to `..=` inclusive range patternsZack M. Davis-1/+1
These were stabilized in March 2018's #47813, and are the Preferred Way to Do It going forward (q.v. #51043).
2018-06-14rustc: rename ty::maps to ty::query.Eduard-Mihai Burtescu-1/+1
2018-05-26Add `Ident::as_str` helperVadim Petrochenkov-1/+1
2018-05-17Added extra hashing step.iancormac84-0/+7
2018-05-17Code structure edits.iancormac84-57/+61
2018-05-17Removed use of TypeIdHasher in symbol hash generation and replaced it with ↵iancormac84-14/+13
StableHasher.
2018-05-17Rename trans to codegen everywhere.Irina Popa-0/+435