Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
99e0d8ed
R
Rust
项目概览
int
/
Rust
接近 1 年 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
99e0d8ed
编写于
4月 03, 2020
作者:
Y
Yuki Okushi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Minor follow-up after renaming librustc(_middle)
上级
548afdbe
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
23 addition
and
18 deletion
+23
-18
src/libcore/clone.rs
src/libcore/clone.rs
+2
-1
src/libcore/marker.rs
src/libcore/marker.rs
+2
-1
src/libcore/raw.rs
src/libcore/raw.rs
+2
-1
src/librustc_infer/infer/lexical_region_resolve/graphviz.rs
src/librustc_infer/infer/lexical_region_resolve/graphviz.rs
+1
-1
src/librustc_mir/borrow_check/region_infer/mod.rs
src/librustc_mir/borrow_check/region_infer/mod.rs
+1
-1
src/librustc_mir/borrow_check/type_check/mod.rs
src/librustc_mir/borrow_check/type_check/mod.rs
+1
-1
src/librustc_passes/region.rs
src/librustc_passes/region.rs
+2
-2
src/librustc_passes/stability.rs
src/librustc_passes/stability.rs
+1
-1
src/librustc_session/filesearch.rs
src/librustc_session/filesearch.rs
+2
-2
src/librustc_session/lint.rs
src/librustc_session/lint.rs
+3
-2
src/librustc_trait_selection/traits/project.rs
src/librustc_trait_selection/traits/project.rs
+1
-1
src/librustc_traits/implied_outlives_bounds.rs
src/librustc_traits/implied_outlives_bounds.rs
+2
-1
src/librustc_ty/instance.rs
src/librustc_ty/instance.rs
+1
-1
src/libstd/alloc.rs
src/libstd/alloc.rs
+2
-2
未找到文件。
src/libcore/clone.rs
浏览文件 @
99e0d8ed
...
...
@@ -169,7 +169,8 @@ pub struct AssertParamIsCopy<T: Copy + ?Sized> {
/// Implementations of `Clone` for primitive types.
///
/// Implementations that cannot be described in Rust
/// are implemented in `SelectionContext::copy_clone_conditions()` in librustc_middle.
/// are implemented in `traits::SelectionContext::copy_clone_conditions()`
/// in `rustc_trait_selection`.
mod
impls
{
use
super
::
Clone
;
...
...
src/libcore/marker.rs
浏览文件 @
99e0d8ed
...
...
@@ -759,7 +759,8 @@ impl<T: ?Sized> Unpin for *mut T {}
/// Implementations of `Copy` for primitive types.
///
/// Implementations that cannot be described in Rust
/// are implemented in `SelectionContext::copy_clone_conditions()` in librustc_middle.
/// are implemented in `traits::SelectionContext::copy_clone_conditions()`
/// in `rustc_trait_selection`.
mod
copy_impls
{
use
super
::
Copy
;
...
...
src/libcore/raw.rs
浏览文件 @
99e0d8ed
...
...
@@ -6,7 +6,8 @@
//! They can be used as targets of transmutes in unsafe code for manipulating
//! the raw representations directly.
//!
//! Their definition should always match the ABI defined in `rustc_target::abi`.
//! Their definition should always match the ABI defined in
//! `rustc_middle::ty::layout`.
/// The representation of a trait object like `&SomeTrait`.
///
...
...
src/librustc_infer/infer/lexical_region_resolve/graphviz.rs
浏览文件 @
99e0d8ed
//! This module provides linkage between libgraphviz traits and
//! `rustc_
middle::middle::typeck
::infer::region_constraints`, generating a
//! `rustc_
trait_selection
::infer::region_constraints`, generating a
//! rendering of the graph represented by the list of `Constraint`
//! instances (which make up the edges of the graph), as well as the
//! origin for each constraint (which are attached to the labels on
...
...
src/librustc_mir/borrow_check/region_infer/mod.rs
浏览文件 @
99e0d8ed
...
...
@@ -202,7 +202,7 @@ pub(crate) enum Cause {
///
/// For more information about this translation, see
/// `InferCtxt::process_registered_region_obligations` and
/// `InferCtxt::type_must_outlive` in `rustc_
middle::infer::outlives
`.
/// `InferCtxt::type_must_outlive` in `rustc_
infer::infer::InferCtxt
`.
#[derive(Clone,
Debug)]
pub
struct
TypeTest
<
'tcx
>
{
/// The type `T` that must outlive the region.
...
...
src/librustc_mir/borrow_check/type_check/mod.rs
浏览文件 @
99e0d8ed
...
...
@@ -1053,7 +1053,7 @@ fn check_user_type_annotations(&mut self) {
/// regions which are extracted and stored as having occurred at
/// `locations`.
///
/// **Any `rustc_
middle
::infer` operations that might generate region
/// **Any `rustc_
infer
::infer` operations that might generate region
/// constraints should occur within this method so that those
/// constraints can be properly localized!**
fn
fully_perform_op
<
R
>
(
...
...
src/librustc_passes/region.rs
浏览文件 @
99e0d8ed
...
...
@@ -27,8 +27,8 @@ pub struct Context {
/// of the innermost fn body. Each fn forms its own disjoint tree
/// in the region hierarchy. These fn bodies are themselves
/// arranged into a tree. See the "Modeling closures" section of
/// the README in `
infer::region_constraints` for more
/// details.
/// the README in `
rustc_trait_selection::infer::region_constraints`
///
for more
details.
root_id
:
Option
<
hir
::
ItemLocalId
>
,
/// The scope that contains any new variables declared, plus its depth in
...
...
src/librustc_passes/stability.rs
浏览文件 @
99e0d8ed
...
...
@@ -438,7 +438,7 @@ fn new_index(tcx: TyCtxt<'tcx>) -> Index<'tcx> {
// If the `-Z force-unstable-if-unmarked` flag is passed then we provide
// a parent stability annotation which indicates that this is private
// with the `rustc_private` feature. This is intended for use when
// compiling
librustc_middle
crates themselves so we can leverage crates.io
// compiling
`librustc_*`
crates themselves so we can leverage crates.io
// while maintaining the invariant that all sysroot crates are unstable
// by default and are unable to be used.
if
tcx
.sess.opts.debugging_opts.force_unstable_if_unmarked
{
...
...
src/librustc_session/filesearch.rs
浏览文件 @
99e0d8ed
...
...
@@ -143,8 +143,8 @@ fn find_libdir(sysroot: &Path) -> Cow<'static, str> {
// FIXME: This is a quick hack to make the rustc binary able to locate
// Rust libraries in Linux environments where libraries might be installed
// to lib64/lib32. This would be more foolproof by basing the sysroot off
// of the directory where
librustc_middle is located, rather than where the rustc
// binary is.
// of the directory where
`librustc_driver` is located, rather than
//
where the rustc
binary is.
// If --libdir is set during configuration to the value other than
// "lib" (i.e., non-default), this value is used (see issue #16552).
...
...
src/librustc_session/lint.rs
浏览文件 @
99e0d8ed
...
...
@@ -195,7 +195,7 @@ pub enum BuiltinLintDiagnostics {
}
/// Lints that are buffered up early on in the `Session` before the
/// `LintLevels` is calculated.
These are later passed to `librustc_middle`.
/// `LintLevels` is calculated.
#[derive(PartialEq)]
pub
struct
BufferedEarlyLint
{
/// The span of code that we are linting on.
...
...
@@ -207,7 +207,8 @@ pub struct BufferedEarlyLint {
/// The `NodeId` of the AST node that generated the lint.
pub
node_id
:
NodeId
,
/// A lint Id that can be passed to `rustc_session::lint::Lint::from_parser_lint_id`.
/// A lint Id that can be passed to
/// `rustc_lint::early::EarlyContextAndPass::check_id`.
pub
lint_id
:
LintId
,
/// Customization of the `DiagnosticBuilder<'_>` for the lint.
...
...
src/librustc_trait_selection/traits/project.rs
浏览文件 @
99e0d8ed
...
...
@@ -1010,7 +1010,7 @@ fn assemble_candidates_from_impls<'cx, 'tcx>(
// type.
//
// NOTE: This should be kept in sync with the similar code in
// `rustc_
middle::
ty::instance::resolve_associated_item()`.
// `rustc_ty::instance::resolve_associated_item()`.
let
node_item
=
assoc_ty_def
(
selcx
,
impl_data
.impl_def_id
,
obligation
.predicate.item_def_id
)
.map_err
(|
ErrorReported
|
())
?
;
...
...
src/librustc_traits/implied_outlives_bounds.rs
浏览文件 @
99e0d8ed
//! Provider for the `implied_outlives_bounds` query.
//! Do not call this query directory. See [`rustc_middle::traits::query::implied_outlives_bounds`].
//! Do not call this query directory. See
//! [`rustc_trait_selection::traits::query::type_op::implied_outlives_bounds`].
use
rustc_hir
as
hir
;
use
rustc_infer
::
infer
::
canonical
::{
self
,
Canonical
};
...
...
src/librustc_ty/instance.rs
浏览文件 @
99e0d8ed
...
...
@@ -118,7 +118,7 @@ fn resolve_associated_item<'tcx>(
// Since this is a trait item, we need to see if the item is either a trait default item
// or a specialization because we can't resolve those unless we can `Reveal::All`.
// NOTE: This should be kept in sync with the similar code in
// `rustc_
middle
::traits::project::assemble_candidates_from_impls()`.
// `rustc_
trait_selection
::traits::project::assemble_candidates_from_impls()`.
let
eligible
=
if
leaf_def
.is_final
()
{
// Non-specializable items are always projectable.
true
...
...
src/libstd/alloc.rs
浏览文件 @
99e0d8ed
...
...
@@ -289,10 +289,10 @@ pub fn rust_oom(layout: Layout) -> ! {
pub
mod
__
default_lib_allocator
{
use
super
::{
GlobalAlloc
,
Layout
,
System
};
// These magic symbol names are used as a fallback for implementing the
// `__rust_alloc` etc symbols (see `src/liballoc/alloc.rs) when there is
// `__rust_alloc` etc symbols (see `src/liballoc/alloc.rs
`
) when there is
// no `#[global_allocator]` attribute.
// for symbol names src/librustc_
middle/middle
/allocator.rs
// for symbol names src/librustc_
ast/expand
/allocator.rs
// for signatures src/librustc_allocator/lib.rs
// linkage directives are provided as part of the current compiler allocator
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录