From 2c034e3eed0e510ca01e613607d9215d96d2ada7 Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Mon, 17 Apr 2017 13:32:11 -0400 Subject: [PATCH] Update Unstable Book links to reflect to new layout. Fixes https://github.com/rust-lang/rust/pull/41295. --- first-edition/src/unsafe.md | 2 +- first-edition/src/using-rust-without-the-standard-library.md | 4 +++- redirects/compiler-plugins.md | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/first-edition/src/unsafe.md b/first-edition/src/unsafe.md index 17bfe398..0331c953 100644 --- a/first-edition/src/unsafe.md +++ b/first-edition/src/unsafe.md @@ -139,4 +139,4 @@ I’ll repeat again: even though you _can_ do arbitrary things in unsafe blocks and functions doesn’t mean you should. The compiler will act as though you’re upholding its invariants, so be careful! -[intrinsics]: ../../unstable-book/intrinsics.html +[intrinsics]: ../../unstable-book/language-features/intrinsics.html diff --git a/first-edition/src/using-rust-without-the-standard-library.md b/first-edition/src/using-rust-without-the-standard-library.md index 941269dc..c1dcfea1 100644 --- a/first-edition/src/using-rust-without-the-standard-library.md +++ b/first-edition/src/using-rust-without-the-standard-library.md @@ -9,7 +9,7 @@ don’t want to use the standard library via an attribute: `#![no_std]`. > Note: This feature is technically stable, but there are some caveats. For > one, you can build a `#![no_std]` _library_ on stable, but not a _binary_. > For details on binaries without the standard library, see [the nightly -> chapter on 'lang items'](../../unstable-book/lang-items.html#using-libc) +> chapter on 'lang items'][unstable book lang items] To use `#![no_std]`, add it to your crate root: @@ -40,3 +40,5 @@ fn may_fail(failure: bool) -> Result<(), &'static str> { } } ``` + +[unstable book lang items]: ../../unstable-book/language-features/lang-items.html#using-libc diff --git a/redirects/compiler-plugins.md b/redirects/compiler-plugins.md index b1c7f144..f92738f4 100644 --- a/redirects/compiler-plugins.md +++ b/redirects/compiler-plugins.md @@ -1,4 +1,6 @@ % The Rust Programming Language Has Moved This chapter of the book has moved to [a chapter in the Unstable -Book](../unstable-book/plugin.html). Please check it out there. +Book][unstable book plugins]. Please check it out there. + +[unstable book plugins]: ../unstable-book/language-features/plugin.html