]> git.lizzy.rs Git - rust.git/commit
Reduce the aggressiveness of reachability
authorAlex Crichton <alex@alexcrichton.com>
Fri, 1 Nov 2013 03:47:23 +0000 (20:47 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 1 Nov 2013 03:47:23 +0000 (20:47 -0700)
commit681fda016979786da5d60a5c6d7fcf5c6c649c86
treef1ec995ac2f6c763853d3a09d207ad54e5d96fca
parent23df6f9775eee7a59e98873ae168a199efb4d649
Reduce the aggressiveness of reachability

Previously, all functions called by a reachable function were considered
reachable, but this is only the case if the original function was possibly
inlineable (if it's type generic or #[inline]-flagged).
src/librustc/middle/reachable.rs
src/librustc/middle/trans/base.rs
src/test/auxiliary/linkage-visibility.rs [new file with mode: 0644]
src/test/run-pass/linkage-visibility.rs [new file with mode: 0644]