1. 13 1月, 2016 1 次提交
  2. 06 1月, 2016 2 次提交
  3. 30 12月, 2015 2 次提交
  4. 17 12月, 2015 2 次提交
  5. 27 11月, 2015 2 次提交
  6. 19 11月, 2015 3 次提交
  7. 17 10月, 2015 1 次提交
  8. 13 10月, 2015 3 次提交
  9. 29 9月, 2015 2 次提交
  10. 23 9月, 2015 1 次提交
  11. 17 9月, 2015 6 次提交
  12. 16 9月, 2015 1 次提交
  13. 13 9月, 2015 1 次提交
  14. 03 9月, 2015 2 次提交
  15. 25 8月, 2015 1 次提交
    • B
      Respect `--color` when printing early errors · 71f39c1a
      Barosl Lee 提交于
      Currently, `early_error` and `early_warn` in `librustc::session` always
      use `ColorConfig::Auto`. Modify them to follow the color configuration
      set by the `--color` option.
      
      As colored output is also printed during the early stage, parsing the
      `--color` option should be done as early as possible. However, there are
      still some cases when the output needs to be colored before knowing the
      exact color settings. In these cases, it will be defaulted to
      `ColorConfig::Auto`, which is the same as before.
      
      Fixes #27879.
      71f39c1a
  16. 29 7月, 2015 1 次提交
  17. 16 7月, 2015 1 次提交
  18. 19 6月, 2015 1 次提交
    • B
      Make a better error message for using #[feature] on stable rust · f14a0e2d
      Brian Anderson 提交于
      It now says '#[feature] may not be used on the stable release channel'.
      
      I had to convert this error from a lint to a normal compiler error.
      
      I left the lint previously-used for this in place since removing it is
      a breaking change. It will just go unused until the end of time.
      
      Fixes #24125
      f14a0e2d
  19. 11 6月, 2015 1 次提交
  20. 24 3月, 2015 1 次提交
  21. 12 3月, 2015 1 次提交
  22. 03 3月, 2015 1 次提交
    • I
      Enable recursion for visit_ty in lint visitor · 2b037186
      Ivan Petkov 提交于
      * The lint visitor's visit_ty method did not recurse, and had a
        reference to the now closed #10894
      * The newly enabled recursion has only affected the `deprectated` lint
        which now detects uses of deprecated items in trait impls and
        function return types
      * Renamed some references to `CowString` and `CowVec` to `Cow<str>` and
        `Cow<[T]>`, respectively, which appear outside of the crate which
        defines them
      * Replaced a few instances of `InvariantType<T>` with
        `PhantomData<Cell<T>>`
      * Disabled the `deprecated` lint in several places that
        reference/implement traits on deprecated items which will get cleaned
        up in the future
      * Disabled the `exceeding_bitshifts` lint for
        compile-fail/huge-array-simple test so it doesn't shadow the expected
        error on 32bit systems
      * Unfortunately, this means that if a library declares
        `#![deny(deprecated)]` and marks anything as deprecated, it will have
        to disable the lint for any uses of said item, e.g. any impl the now
        deprecated item
      
      For any library that denies deprecated items but has deprecated items
      of its own, this is a [breaking-change]
      2b037186
  23. 01 3月, 2015 1 次提交
  24. 28 2月, 2015 1 次提交
    • H
      Separate most of rustc::lint::builtin into a separate crate. · 532cd5f8
      Huon Wilson 提交于
      This pulls out the implementations of most built-in lints into a
      separate crate, to reduce edit-compile-test iteration times with
      librustc_lint and increase parallelism. This should enable lints to be
      refactored, added and deleted much more easily as it slashes the
      edit-compile cycle to get a minimal working compiler to test with (`make
      rustc-stage1`) from
      
          librustc -> librustc_typeck -> ... -> librustc_driver ->
              libcore -> ... -> libstd
      
      to
      
          librustc_lint -> librustc_driver -> libcore -> ... libstd
      
      which is significantly faster, mainly due to avoiding the librustc build
      itself.
      
      The intention would be to move as much as possible of the infrastructure
      into the crate too, but the plumbing is deeply intertwined with librustc
      itself at the moment. Also, there are lints for which diagnostics are
      registered directly in the compiler code, not in their own crate
      traversal, and their definitions have to remain in librustc.
      
      This is a [breaking-change] for direct users of the compiler APIs:
      callers of `rustc::session::build_session` or
      `rustc::session::build_session_` need to manually call
      `rustc_lint::register_builtins` on their return value.
      
      This should make #22206 easier.
      532cd5f8
  25. 24 2月, 2015 1 次提交