1. 26 10月, 2018 2 次提交
  2. 23 10月, 2018 3 次提交
  3. 20 10月, 2018 1 次提交
  4. 19 10月, 2018 3 次提交
  5. 18 10月, 2018 1 次提交
  6. 14 10月, 2018 1 次提交
  7. 12 10月, 2018 2 次提交
  8. 10 10月, 2018 1 次提交
  9. 07 10月, 2018 1 次提交
    • A
      rustc: Allow `#[no_mangle]` anywhere in a crate · d7d70453
      Alex Crichton 提交于
      This commit updates the compiler to allow the `#[no_mangle]` (and
      `#[export_name]` attributes) to be located anywhere within a crate.
      These attributes are unconditionally processed, causing the compiler to
      always generate an exported symbol with the appropriate name.
      
      After some discussion on #54135 it was found that not a great reason
      this hasn't been allowed already, and it seems to match the behavior
      that many expect! Previously the compiler would only export a
      `#[no_mangle]` symbol if it were *publicly reachable*, meaning that it
      itself is `pub` and it's otherwise publicly reachable from the root of
      the crate. This new definition is that `#[no_mangle]` *is always
      reachable*, no matter where it is in a crate or whether it has `pub` or
      not.
      
      This should make it much easier to declare an exported symbol with a
      known and unique name, even when it's an internal implementation detail
      of the crate itself. Note that these symbols will persist beyond LTO as
      well, always making their way to the linker.
      
      Along the way this commit removes the `private_no_mangle_functions` lint
      (also for statics) as there's no longer any need to lint these
      situations. Furthermore a good number of tests were updated now that
      symbol visibility has been changed.
      
      Closes #54135
      d7d70453
  10. 05 10月, 2018 1 次提交
  11. 04 10月, 2018 1 次提交
  12. 03 10月, 2018 1 次提交
  13. 02 10月, 2018 2 次提交
  14. 01 10月, 2018 1 次提交
  15. 30 9月, 2018 1 次提交
    • Z
      don't elide lifetimes in paths in librustc/ · 5b22d9b2
      Zack M. Davis 提交于
      This seemed like a good way to kick the tires on the
      elided-lifetimes-in-paths lint (#52069)—seems to work! This was also
      pretty tedious—it sure would be nice if `cargo fix` worked on this
      codebase (#53896)!
      5b22d9b2
  16. 26 9月, 2018 1 次提交
  17. 25 9月, 2018 3 次提交
  18. 22 9月, 2018 1 次提交
  19. 21 9月, 2018 1 次提交
  20. 20 9月, 2018 3 次提交
  21. 19 9月, 2018 1 次提交
    • D
      Use full name to identify a macro in a `FileName`. · 2d7edf90
      Diogo Sousa 提交于
      Before this two macros with same name would be indistinguishable inside a
      `FileName`.  This caused a bug in incremental compilation (see #53097) since
      two different macros would map out to the same `StableFilemapId`.
      
      Fixes #53097.
      2d7edf90
  22. 13 9月, 2018 1 次提交
  23. 12 9月, 2018 1 次提交
  24. 11 9月, 2018 2 次提交
  25. 07 9月, 2018 4 次提交