about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-04-07 21:56:02 +0200
committerSimon Sapin <simon.sapin@exyr.org>2018-04-21 09:47:37 +0200
commitf0705bf033363757a8a2901cd1a7bd76f0fea820 (patch)
treeacf32897096a473c675c4112efcbce258c3c91e2 /src/test
parent90f29fbdb105b65e8ddb2b5c8b834b8db32ef9ef (diff)
downloadrust-f0705bf033363757a8a2901cd1a7bd76f0fea820.tar.gz
rust-f0705bf033363757a8a2901cd1a7bd76f0fea820.zip
Replace StrExt with inherent str methods in libcore
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/single-primitive-inherent-impl.rs2
-rw-r--r--src/test/rustdoc/issue-23511.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/single-primitive-inherent-impl.rs b/src/test/compile-fail/single-primitive-inherent-impl.rs
index 365387c3e5e..0a0f9ce4bd1 100644
--- a/src/test/compile-fail/single-primitive-inherent-impl.rs
+++ b/src/test/compile-fail/single-primitive-inherent-impl.rs
@@ -15,7 +15,7 @@
 #![no_std]
 
 // OK
-#[lang = "str"]
+#[lang = "str_alloc"]
 impl str {}
 
 impl str {
diff --git a/src/test/rustdoc/issue-23511.rs b/src/test/rustdoc/issue-23511.rs
index 50c31d309ee..ee0a5c1aa1b 100644
--- a/src/test/rustdoc/issue-23511.rs
+++ b/src/test/rustdoc/issue-23511.rs
@@ -14,7 +14,7 @@
 pub mod str {
     #![doc(primitive = "str")]
 
-    #[lang = "str"]
+    #[lang = "str_alloc"]
     impl str {
         // @has search-index.js foo
         pub fn foo(&self) {}