Commit c129d3c
committed
Always make
`compiler_builtins` is always available as an injected dependency,
introduced in AST as `extern crate compiler_builtins as _`. This makes
it indistinguishable from any other user-specified `extern crate`,
meaning `is_private_dep` does not see it as a dependency that should be
marked private; this is the reason that `compiler_builtins` sometimes
leaks into diagnostics, and has slightly different behavior from other
stdlib dependencies tested in [1].
There is no easy way to know that an instance of `extern crate
compiler_builtins` was the injected version; however,
`compiler_builtins`
To get around this, always mark `compiler_builtins` private. The items
in this crate are never used directly, and this is the most
[1]: #135278compiler_builtins a private dependency1 parent fdd1a3b commit c129d3c
File tree
2 files changed
+8
-0
lines changed- compiler
- rustc_builtin_macros/src
- rustc_metadata/src
2 files changed
+8
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
417 | 423 | | |
418 | 424 | | |
419 | 425 | | |
| |||
0 commit comments