about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/coverage/json.rs
diff options
context:
space:
mode:
authorAndre Richter <andre.o.richter@gmail.com>2020-02-28 21:51:16 +0100
committerAndre Richter <andre.o.richter@gmail.com>2020-02-28 21:51:16 +0100
commit7cf2bfb6578281b568735847549305059a3d6a48 (patch)
treedab0e3dc1d4aa59941d8e87c759b7cf1623275ad /src/test/rustdoc-ui/coverage/json.rs
parenteaa02f599f651246d5d1b99e7a4c6fa8d04bc9dc (diff)
downloadrust-7cf2bfb6578281b568735847549305059a3d6a48.tar.gz
rust-7cf2bfb6578281b568735847549305059a3d6a48.zip
Fix no_std detection for target triples
The current check for wether a target is no_std or not is matching for the
string "-none-" in a target triple. This doesn't work for triples that end in
"-none", like "aarch64-unknown-none".

Fix this by matching for "-none" instead.

I checked for all the current target triples containing "none", and this should
not generate any false positives.

This fixes an issue encountered in https://github.com/rust-lang/rust/pull/68334
Diffstat (limited to 'src/test/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions