diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-29 12:24:19 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-29 12:24:19 +0000 |
commit | cdcb3d3833d3d5b37b2cd4dac91a6e9366f20aea (patch) | |
tree | c9750e1ef8079a691caed3dc941392c99fda1524 /xtask/tests/tidy-tests/cli.rs | |
parent | c5a48bea1218afb63d7932a6816f34c810bbab6b (diff) | |
parent | 9fd2c813ca355c3a1f10f54993c16e81778b867b (diff) |
Merge #2667
2667: Visibility r=matklad a=flodiebold
This adds the infrastructure for handling visibility (for fields and methods, not in name resolution) in the HIR and code model, and as a first application hides struct fields from completions if they're not visible from the current module. (We might want to relax this again later, but I think it's ok for now?)
Co-authored-by: Florian Diebold <[email protected]>
Diffstat (limited to 'xtask/tests/tidy-tests/cli.rs')
-rw-r--r-- | xtask/tests/tidy-tests/cli.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xtask/tests/tidy-tests/cli.rs b/xtask/tests/tidy-tests/cli.rs index 573ffadbf..f9ca45292 100644 --- a/xtask/tests/tidy-tests/cli.rs +++ b/xtask/tests/tidy-tests/cli.rs | |||
@@ -43,7 +43,7 @@ fn no_todo() { | |||
43 | return; | 43 | return; |
44 | } | 44 | } |
45 | let text = std::fs::read_to_string(e.path()).unwrap(); | 45 | let text = std::fs::read_to_string(e.path()).unwrap(); |
46 | if text.contains("TODO") || text.contains("TOOD") { | 46 | if text.contains("TODO") || text.contains("TOOD") || text.contains("todo!") { |
47 | panic!( | 47 | panic!( |
48 | "\nTODO markers should not be committed to the master branch,\n\ | 48 | "\nTODO markers should not be committed to the master branch,\n\ |
49 | use FIXME instead\n\ | 49 | use FIXME instead\n\ |