rust/src/test
kennytm b384b18d5d
Refactor: Move the mutable parts out of LintStore. Fix #42007.
* #42007 happens because the Session LintStore is emptied when linting.
* The Session LintStore is emptied because the checker (Early/LateContext)
  wants ownership.
* The checker wants ownership because it wants to mutate the pass objects
  and lint levels.

The ownership of the whole store is not essential, only the lint levels and
pass objects need to be owned. Therefore, these parts are extracted out of
the LintStore into a separate structure `LintSession`. The "check crates"
methods can operate on `&mut LintSession` instead of `&mut LintStore`.

This is a minor BREAKING CHANGE for lint writers since the `LintContext`
trait is changed: the `mut_lints` and `level_stack` methods are removed.
But no one outside of `librustc/lint/context.rs` is using these functions,
so it should be safe.
2017-05-17 16:09:39 +08:00
..
codegen Add simple [repr(align)] codegen test. 2017-05-01 23:13:22 +10:00
codegen-units translate drop glue using MIR 2017-03-18 02:53:08 +02:00
compile-fail Auto merge of #41907 - est31:macro_unused, r=jseyfried 2017-05-16 23:27:36 +00:00
compile-fail-fulldeps Add test, and fix the other tests 2017-05-13 16:02:29 +02:00
debuginfo update gdbr tests 2017-03-09 22:12:36 +01:00
incremental ICH: Handle case of removed FileMaps. 2017-05-10 12:35:36 +02:00
mir-opt remove compile-flags 2017-05-15 21:12:40 -04:00
parse-fail Disallow ._ in float literal. 2017-05-12 22:00:06 +09:00
pretty Update pretty test for derive attributes 2017-02-05 12:22:29 +10:30
run-fail Unignore tests which work fine now. 2017-04-28 22:31:10 -06:00
run-fail-fulldeps Implement a file-path remapping feature in support of debuginfo and reproducible builds. 2017-04-26 15:44:02 +02:00
run-make Fix run-make/llvm-pass 2017-05-15 15:09:05 +02:00
run-pass Refactor: Move the mutable parts out of LintStore. Fix #42007. 2017-05-17 16:09:39 +08:00
run-pass-fulldeps add regression test for issue #24106 2017-05-04 19:34:48 -04:00
run-pass-valgrind Removes FIXMEs related to #22405 2017-01-31 21:27:13 -05:00
rustdoc rustdoc: Display extern "C" fn instead of extern fn 2017-05-15 00:52:17 +01:00
ui Make unsatisfied trait bounds note multiline 2017-05-14 20:38:26 -07:00
ui-fulldeps/custom-derive Separate "ui-fulldeps" tests from "ui" tests 2017-03-04 21:38:26 +03:00
COMPILER_TESTS.md Move COMPILER_TESTS.md out of the root directory 2017-02-25 00:13:00 -06:00