Skip to content

Commit a9cdf8d

Browse files
committed
---
yaml --- r: 132479 b: refs/heads/dist-snap c: c586bf2 h: refs/heads/master i: 132477: 9292e05 132475: 09ab5d5 132471: 9755de5 132463: 128fbc2 132447: 7f084fa 132415: bddfe6a 132351: 3d2453d v: v3
1 parent 40cb8a1 commit a9cdf8d

File tree

6 files changed

+7
-42
lines changed

6 files changed

+7
-42
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 457a3c991d79b971be07fce75f9d0c12848fb37c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 795f6ae829ab1bfd72394a5da9096e2717ec0f62
9+
refs/heads/dist-snap: c586bf21aa56ec6ec0619137155c4cc83334808f
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/doc/guide.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2565,9 +2565,9 @@ It gives an error:
25652565

25662566
```{notrust,ignore}
25672567
Compiling modules v0.1.0 (file:/home/you/projects/modules)
2568-
src/modules.rs:2:5: 2:23 error: function `print_hello` is private
2569-
src/modules.rs:2 hello::print_hello();
2570-
^~~~~~~~~~~~~~~~~~
2568+
src/main.rs:2:5: 2:23 error: function `print_hello` is private
2569+
src/main.rs:2 hello::print_hello();
2570+
^~~~~~~~~~~~~~~~~~
25712571
```
25722572

25732573
To make it public, we use the `pub` keyword:

branches/dist-snap/src/librustc/middle/trans/common.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ pub fn C_cstr(cx: &CrateContext, s: InternedString, null_terminated: bool) -> Va
574574
!null_terminated as Bool);
575575

576576
let gsym = token::gensym("str");
577-
let g = format!("str{}", gsym.uint()).with_c_str(|buf| {
577+
let g = format!("str{}", gsym).with_c_str(|buf| {
578578
llvm::LLVMAddGlobal(cx.llmod, val_ty(sc).to_ref(), buf)
579579
});
580580
llvm::LLVMSetInitializer(g, sc);
@@ -603,7 +603,7 @@ pub fn C_binary_slice(cx: &CrateContext, data: &[u8]) -> ValueRef {
603603
let lldata = C_bytes(cx, data);
604604

605605
let gsym = token::gensym("binary");
606-
let g = format!("binary{}", gsym.uint()).with_c_str(|buf| {
606+
let g = format!("binary{}", gsym).with_c_str(|buf| {
607607
llvm::LLVMAddGlobal(cx.llmod, val_ty(lldata).to_ref(), buf)
608608
});
609609
llvm::LLVMSetInitializer(g, lldata);

branches/dist-snap/src/librustc/middle/trans/meth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ pub fn make_vtable<I: Iterator<ValueRef>>(ccx: &CrateContext,
528528
unsafe {
529529
let tbl = C_struct(ccx, components.as_slice(), false);
530530
let sym = token::gensym("vtable");
531-
let vt_gvar = format!("vtable{}", sym.uint()).with_c_str(|buf| {
531+
let vt_gvar = format!("vtable{}", sym).with_c_str(|buf| {
532532
llvm::LLVMAddGlobal(ccx.llmod, val_ty(tbl).to_ref(), buf)
533533
});
534534
llvm::LLVMSetInitializer(vt_gvar, tbl);

branches/dist-snap/src/test/run-make/symbols-are-reasonable/Makefile

Lines changed: 0 additions & 15 deletions
This file was deleted.

branches/dist-snap/src/test/run-make/symbols-are-reasonable/lib.rs

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)