Update Rust documentation (1.50.0)

pull/1477/head
Simon Legner 4 years ago
parent 86d23b7127
commit aebc4f8151

@ -63,6 +63,11 @@ module Docs
end
css('> .impl-items', '> .docblock', 'pre > pre', '.tooltiptext', '.tooltip').each do |node|
# see .tooltip.ignore::after in https://doc.rust-lang.org/rustdoc1.50.0.css
node.content += ' This example is not tested' if node['class'].include?('ignore')
node.content += ' This example deliberately fails to compile' if node['class'].include?('compile_fail')
node.content += ' This example panics' if node['class'].include?('should_panic')
node.content += ' This code runs with edition ' + node['data-edition'] if node['class'].include?('edition')
node.before(node.children).remove
end

@ -3,7 +3,7 @@
module Docs
class Rust < UrlScraper
self.type = 'rust'
self.release = '1.49.0'
self.release = '1.50.0'
self.base_url = 'https://doc.rust-lang.org/'
self.root_path = 'book/index.html'
self.initial_paths = %w(

Loading…
Cancel
Save