Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
0603a73
Add test case for #50865 regression.
FelixMcFelix Jul 20, 2018
f285876
Logging for rustc_privacy.
FelixMcFelix Aug 10, 2018
8a72954
Window Mutex: make sure we properly initialize the SRWLock
RalfJung Aug 13, 2018
b7a49e7
fixed wording
RalfJung Aug 14, 2018
00b2606
Mark impl Trait Functions as reachable. (Fixes #50865)
FelixMcFelix Aug 20, 2018
81684bf
New AccessLevel and accompanying propagation.
FelixMcFelix Aug 20, 2018
54b096a
Fixes for code review.
FelixMcFelix Aug 21, 2018
3536359
Further fixes.
FelixMcFelix Aug 21, 2018
17eb64a
add macro check for lint
Dylan-DPC Aug 21, 2018
a6201f9
add testcase to existing macro testcase
Dylan-DPC Aug 21, 2018
11f3918
docs: std::string::String.repeat(): slightly rephrase to be more in-l…
matthiaskrgr Aug 22, 2018
f07245c
Update RELEASES.md
Aaronepower Aug 22, 2018
c9c4f5e
Fix a grammatical mistake in "expected generic arguments" errors
varkor Aug 22, 2018
276253e
update nomicon and book
RalfJung Aug 22, 2018
200c6d9
Update RELEASES.md
Aaronepower Aug 22, 2018
8fbcb9c
add warning for missing docs
Dylan-DPC Aug 22, 2018
a15b617
tidy: Stop requiring a license header
joshtriplett Aug 22, 2018
b188c2a
Lament the invincibility of the Turbofish
varkor Aug 21, 2018
ede1f7d
use String::new() instead of String::from(""), "".to_string(), "".to_…
matthiaskrgr Aug 23, 2018
85a05d1
Light restructuring.
FelixMcFelix Aug 23, 2018
9e0ff24
Prefer `.nth(n)` over `.skip(n).next()`.
frewsxcv Aug 23, 2018
e7709b3
Discourage overuse of mem::forget
kornelski Aug 19, 2018
747722e
fix testcase
Dylan-DPC Aug 23, 2018
2cc2e01
Add missing fmt examples
GuillaumeGomez Aug 22, 2018
25a83e3
Use SmallVec for SmallCStr
llogiq Aug 23, 2018
ab5a71b
Rollup merge of #53311 - RalfJung:windows-mutex, r=retep998
kennytm Aug 24, 2018
973428d
Rollup merge of #53503 - kornelski:master, r=dtolnay
kennytm Aug 24, 2018
7f396ba
Rollup merge of #53559 - Dylan-DPC:fix/missing-doc-lint, r=kennytm
kennytm Aug 24, 2018
714e5b3
Rollup merge of #53562 - varkor:bastion-of-the-turbofish, r=nagisa
kennytm Aug 24, 2018
d13c612
Rollup merge of #53563 - matthiaskrgr:String, r=varkor
kennytm Aug 24, 2018
b24a30e
Remove unnecessary closure in rustc_mir/build/mod.rs
IsaacWoods Aug 24, 2018
c802be6
Added rustc_codegen_llvm to compiler documentation.
davidtwco Aug 24, 2018
c51903c
Rollup merge of #53592 - matthiaskrgr:str_doc, r=alexcrichton
kennytm Aug 24, 2018
3fbd72e
Rollup merge of #53594 - rust-lang:Aaronepower-patch-1, r=Mark-Simula…
kennytm Aug 24, 2018
7d990fa
Rollup merge of #53600 - varkor:expected-generic-arg-s, r=eddyb
kennytm Aug 24, 2018
ff4500c
Rollup merge of #53614 - RalfJung:nomicon, r=kennytm
kennytm Aug 24, 2018
cf90fd0
Rollup merge of #53617 - joshtriplett:tidy-no-license-header, r=Mark-…
kennytm Aug 24, 2018
a37b69d
Rollup merge of #53618 - GuillaumeGomez:fmt-examples, r=QuietMisdreavus
kennytm Aug 24, 2018
9dfb95b
Rollup merge of #53636 - frewsxcv:frewsxcv-nth, r=rkruppe
kennytm Aug 24, 2018
0009fad
Rollup merge of #53644 - llogiq:smallvec-for-small-c-str, r=estebank
kennytm Aug 24, 2018
62f29c4
Rollup merge of #53664 - IsaacWoods:fix_53608, r=oli-obk
kennytm Aug 24, 2018
a1ec2f7
Rollup merge of #53545 - FelixMcFelix:fix-50865-beta, r=petrochenkov
kennytm Aug 24, 2018
c6039de
Rollup merge of #53666 - davidtwco:issue-51737, r=Mark-Simulacrum
kennytm Aug 24, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Further fixes.
  • Loading branch information
FelixMcFelix committed Aug 21, 2018
commit 3536359ad8b02933018a7b26f0ad6c3ed6f0c50e
4 changes: 2 additions & 2 deletions src/librustc_privacy/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl<'a, 'tcx> Visitor<'tcx> for EmbargoVisitor<'a, 'tcx> {
}

fn visit_item(&mut self, item: &'tcx hir::Item) {
debug!("Walked item {:?}", item);
debug!("visit_item({:?})", item);
let inherited_item_level = match item.node {
// Impls inherit level from their types and traits
hir::ItemKind::Impl(..) => {
Expand Down Expand Up @@ -184,7 +184,7 @@ impl<'a, 'tcx> Visitor<'tcx> for EmbargoVisitor<'a, 'tcx> {
// Update level of the item itself
let item_level = self.update(item.id, inherited_item_level);

debug!("Its privacy is believed to be: {:?}", item_level);
debug!("item_level = {:?}", item_level);

// Update levels of nested things
match item.node {
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/issue-50865-private-impl-trait/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// function which references another private item, `foo` (in this case)
// wouldn't be codegenned until main.rs used `bar`, as with impl Trait
// it is not cast to `fn()` automatically to satisfy e.g.
// `fn foo() -> fn() { ... }`.
// `fn foo() -> fn() { ... }`.

extern crate lib;

Expand Down