Llvm test#3
Closed
reddevilmidzy wants to merge 2 commits intomainfrom
Closed
Conversation
Co-authored-by: Boxy <rust@boxyuwu.dev>
…eneric_const_exprs/lit_type_mismatch.rs
e48004b to
a824429
Compare
reddevilmidzy
commented
Feb 10, 2026
| @@ -0,0 +1,8 @@ | |||
| //! Regression test for <https://github.com/rust-lang/rust/issues/133966> | |||
Owner
Author
There was a problem hiding this comment.
이게 crashes에 있다가 빠져나온거. 이슈 체크하기.
Owner
Author
|
아 그리고 -1u32 ,,, 전에 이슈에서 언급한 테스트 추가하기 |
rust-cloud-vms Bot
pushed a commit
that referenced
this pull request
Mar 24, 2026
…rochenkov Avoid prematurely choosing a glob import Fixes rust-lang#153842 Use the following without introducing trait to explain: ```rust mod a { pub use crate::x::y as x; // single import #1 } mod b { pub mod x { pub mod y {} } } use a::x; // single import #2 use b::*; // glob import #3 fn main() {} ``` In current implementation, when `#1` is first resolved, `crate::x` is temporarily taken from glob import `#3` as `crate::b::x`. This happens because `single_import_can_define_name` will see that `#2` cannot define `x` (because it depends on `#1` and `#1` is ignored) and then return `false`. Later, during finalization, `crate::x` in `#1` resolves through single import `#2` instead, which no longer matches the initially cached module `crate::b::x` and triggers the ICE. I think the resolver should keep this unresolved because `#2` may still define `x` to avoid prematurely choosing a glob import. r? petrochenkov
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
for llvm test