Issue 1:
Rust code on SO right now looks pretty nasty. Most egregiously it interprets the lifetime syntax as the start of a string, yielding hilarious results.

Here's the project that SO uses to highlight code:

https://code.google.com/p/google-code-prettify/

It has no "Rust" option, so I have no idea what language SO is currently using to highlight our code. Implement proper Rust support, and once it's accepted into Prettify we'll try to contact SO to get them to update their version.

Issue 2:
Hi, I'm trying to make a really really simple hello world program in Rust using a custom library through Cargo, and I'm getting the error:

Compiling rstestlib v0.0.1 (file:///Users/benanderson/Desktop/rstest)
Compiling rstest v0.0.1 (file:///Users/benanderson/Desktop/rstest)
error: linking with `cc` failed: exit code: 1
note: cc '-m64' '-L' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib' '-o' '/Users/benanderson/Desktop/rstest/target/rstest' '/Users/benanderson/Desktop/rstest/target/rstest.o' '-Wl,-force_load,/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libmorestack.a' '-nodefaultlibs' '-fno-lto' '-Wl,-dead_strip' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libnative-4e7c5e5c.rlib' '/Users/benanderson/Desktop/rstest/target/deps/librstestlib-1806f5315b450877.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libstd-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/librand-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libsync-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/librustrt-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libcollections-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libunicode-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/liballoc-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/liblibc-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libcore-4e7c5e5c.rlib' '-L' '/Users/benanderson/Desktop/rstest/target' '-L' '/Users/benanderson/Desktop/rstest/target/deps' '-L' '/Users/benanderson/Desktop/rstest/.rust' '-L' '/Users/benanderson/Desktop/rstest' '-lSystem' '-lpthread' '-lc' '-lm' '-lcompiler-rt'
note: ld: warning: directory not found for option '-L/Users/benanderson/Desktop/rstest/.rust'
ld: archive has no table of contents file '/Users/benanderson/Desktop/rstest/target/deps/librstestlib-1806f5315b450877.rlib' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: aborting due to previous error
Could not compile `rstest`.

I have a lib rstestlib, containing a lib.rs with this inside it:

pub fn test() {
println!("Test");
}

And the rstest program has a main.rs with:

extern crate rstestlib;
fn main() {
rstestlib::test();
}

The rstest program has this as a Cargo.toml file:

[package]
name = "rstest"
version = "0.0.1"
authors = ["GravityScore <gravityscore@gmail.com>"]

[dependencies.rstestlib]
path = "../rstestlib"

And the rstestlib program has this as a Cargo.toml:

[package]
name = "rstestlib"
version = "0.0.1"
authors = ["GravityScore <gravityscore@gmail.com>"]

I've just reinstalled rust using the 1 line console command from the Cargo website. The output of rustc -v is rustc 0.13.0-nightly (0a5e7f359 2014-11-03 23:16:55 +0000). I've had this problem for a while now, and it's really disappointing because I love rust so much, but I can't use it at all anymore.

I've tried running ranlib target/deps/librstestlib* as some internet sources (eg. here) suggest, but when I do this I get a bunch of undefined symbols for architecture, and a note saying the .rlib file was not built for the current architecture I'm trying to build for (which is x86_64):

Bens-MacBook-Pro-4:rstest benanderson$ ranlib target/deps/librstestlib*
Bens-MacBook-Pro-4:rstest benanderson$ cargo build
Compiling rstest v0.0.1 (file:///Users/benanderson/Desktop/rstest)
error: linking with `cc` failed: exit code: 1
note: cc '-m64' '-L' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib' '-o' '/Users/benanderson/Desktop/rstest/target/rstest' '/Users/benanderson/Desktop/rstest/target/rstest.o' '-Wl,-force_load,/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libmorestack.a' '-nodefaultlibs' '-fno-lto' '-Wl,-dead_strip' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libnative-4e7c5e5c.rlib' '/Users/benanderson/Desktop/rstest/target/deps/librstestlib-1806f5315b450877.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libstd-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libsync-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/librustrt-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libcollections-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libunicode-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/liballoc-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/liblibc-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/librand-4e7c5e5c.rlib' '/usr/local/lib/rustlib/x86_64-apple-darwin/lib/libcore-4e7c5e5c.rlib' '-L' '/Users/benanderson/Desktop/rstest/target' '-L' '/Users/benanderson/Desktop/rstest/target/deps' '-L' '/Users/benanderson/Desktop/rstest/.rust' '-L' '/Users/benanderson/Desktop/rstest' '-lSystem' '-lpthread' '-lc' '-lm' '-lcompiler-rt'
note: ld: warning: directory not found for option '-L/Users/benanderson/Desktop/rstest/.rust'

ld: warning: ignoring file /Users/benanderson/Desktop/rstest/target/deps/librstestlib-1806f5315b450877.rlib, file was built for archive which is not the architecture being linked (x86_64): /Users/benanderson/Desktop/rstest/target/deps/librstestlib-1806f5315b450877.rlib

Undefined symbols for architecture x86_64:
"test::hb3734900dfb5a78ddaa", referenced from:
main::h7d8e0789b2179c99faa in rstest.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: aborting due to previous error
Could not compile `rstest`.

But, if I run lipo -info target/deps/librstestlib*, it says the archive file was built for x86_64:

input file target/deps/librstestlib-1806f5315b450877.rlib is not a fat file
Non-fat file: target/deps/librstestlib-1806f5315b450877.rlib is architecture: x86_64

This happens with any library I try and link, ones from GitHub or locally. I'm running OSX Yosemite (10.10), with the latest Xcode (6.1) and OSX SDKs installed. I get the same problem if I bypass Cargo and compile using rustc directly as well, so it's not a Cargo problem. I used the command rustc -L"../rstestlib/target" src/main.rs.

Does someone know what's going on here? I'm really stuck and can't figure out why this is happening. I really love Rust and really appreciate all the hard work that's gone into making it - it is fantastic. But it's not working at the moment, which is really disappointing and very limiting if I can't link against libraries.